yumapro  23.10T-10
YumaPro SDK
Loading...
Searching...
No Matches
yangapi.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2008 - 2012, Andy Bierman, All Rights Reserved.
3 * Copyright (c) 2012 - 2024, YumaWorks, Inc., All Rights Reserved.
4 *
5 * Unless required by applicable law or agreed to in writing,
6 * software distributed under the License is distributed on an
7 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
8 * KIND, either express or implied. See the License for the
9 * specific language governing permissions and limitations
10 * under the License.
11 */
12#ifndef _H_yangapi
13#define _H_yangapi
14/* FILE: yangapi.h
15*********************************************************************
16* *
17* P U R P O S E *
18* *
19*********************************************************************/
20
26/*********************************************************************
27* *
28* C H A N G E H I S T O R Y *
29* *
30*********************************************************************
31
32date init comment
33----------------------------------------------------------------------
3411-apr-12 abb Begun.
35*/
36
37/* used by the agent for the xmlTextReader interface */
38#include <xmlreader.h>
39
40#ifndef _H_dlq
41#include "dlq.h"
42#endif
43
44#ifndef _H_ncxtypes
45#include "ncxtypes.h"
46#endif
47
48#ifndef _H_op
49#include "op.h"
50#endif
51
52#ifndef _H_obj
53#include "obj.h"
54#endif
55
56#ifndef _H_val
57#include "val.h"
58#endif
59
60#ifndef _H_xpath
61#include "xpath.h"
62#endif
63
64#ifdef __cplusplus
65extern "C" {
66#endif
67
68
69/* Header only */
70
88/********************************************************************
89* *
90* C O N S T A N T S *
91* *
92*********************************************************************/
93
95#define YANGAPI_RET_OK 200
96
98#define YANGAPI_RET_CREATE_OK 201
99
101#define YANGAPI_RET_BAD_METHOD 405
102
103
104/********************************************************************
105* *
106* T Y P E S *
107* *
108*********************************************************************/
109
111typedef enum yangapi_method_t_ {
121
122
126typedef enum yangapi_launchpt_t_ {
129
132
135
138
141
144
147
150
153
156
159
162
165
168
173
176
180
181
183typedef struct yangapi_param_t_ {
185 dlq_hdr_t qhdr;
186
188 xmlChar *name;
189
191 xmlChar *value;
193
194
196typedef struct yangapi_accept_t_ {
198 dlq_hdr_t qhdr;
199
201 xmlChar *media_type;
202
205
207 xmlChar *format;
208
210 xmlChar *qvalue_str;
212
213
215typedef enum restconf_content_t_ {
221
223typedef enum restconf_qparam_t_ {
224 RESTCONF_QPARAM_CONTENT,
225 RESTCONF_QPARAM_DEPTH,
226 RESTCONF_QPARAM_FIELDS,
227 RESTCONF_QPARAM_FILTER,
228 RESTCONF_QPARAM_INSERT,
229 RESTCONF_QPARAM_POINT,
230 RESTCONF_QPARAM_START_TIME,
231 RESTCONF_QPARAM_STOP_TIME,
232 RESTCONF_QPARAM_WITH_DEFAULTS,
237
241typedef struct yangapi_cb_t_ {
242
243/************************* COMMON RCB entries *****************************/
244
246 dlq_hdr_t qhdr;
247
249 dlq_hdr_t paramQ;
250
252 dlq_hdr_t keyvalQ;
253
255 dlq_hdr_t acceptQ;
256
258 dlq_hdr_t sorted_acceptQ;
259
261 xmlChar *accept;
262
265
267 xmlChar *request_uri;
268
271
274
277
280
283
286
289
292
295
298
301
304
307
310
313
316
319
322
325
328
331
334
336 xmlChar *query_point;
337
339 xmlChar *query_select;
340
343
346
349
351 xmlChar *query_start;
352
355
358
360 xmlChar *query_test;
361
364
367
370
376
379
382
385
387 xmlChar *content_type;
388
391
394
397
399 xmlChar *if_match;
400
403
406
409
411 xmlChar *fragment;
412
414 uint32 pathlen;
415
418
420 boolean get2_read;
421
423 dlq_hdr_t get2_lookupQ;
424
426 dlq_hdr_t get2_selectQ;
427
430
433
436
440 boolean skip_read;
441
445 boolean empty_read;
446
448 boolean is_delta;
449
452
453/********************** Accept header entries ***************************/
454
457
459 boolean norm_header;
460
461/************************* RESTCONF entries *****************************/
462
466 boolean is_restconf;
467
472
475
477 xmlChar *query_filter;
478
485
488
495
497 xmlChar *stoptime_utc;
498
500 boolean futurestop;
501
504
508 const xmlChar *query_fields;
509
511 xmlChar *fields_buff;
512
515
517 xmlChar *index_string;
518
520 boolean empty_edit;
521
523 boolean is_action;
524
527
530
533
540
541
542/********************* YANG-PATCH entries *****************************/
543
545 boolean yang_patch;
546
548 xmlChar *patch_id;
549
551 xmlChar *edit_id;
552
553/********************* YP-COAP entries *****************************/
554
556 boolean is_ypcoap;
557
558 uint16 http_status;
562 xmlChar *coap_etag;
563 xmlChar *http_location;
564 xmlChar *http_etag;
565 xmlChar *coap_data;
567 boolean coap_save;
570 boolean coap_block_m;
572
573/********************* SNMP entries *****************************/
574
576 boolean is_snmp;
577
578 /*** NOTE: ALL SIL AND SIL-SA CODE MUST BE BUILT WITH THE CORRECT
579 *** MATCHING MAKE FLAGS BECAUSE THIS STRUCT HAS CONDITIONAL MEMBERS
580 ***/
581
582#if defined(WITH_SNMP) && defined(WITH_RESTCONF)
583 netsnmp_variable_list *variables;
584
600
603
611
616
622
623/********************* SNMP Index entries *****************************/
624
638
644
651
654
660
663
664/********************* SNMP GET2 entries *****************************/
665
671
676
677#endif
678
679
680/********************* GNMI entries *****************************/
681
683 boolean is_gnmi;
684
687
689 boolean lock_done;
690
692 boolean gnmi_patch;
693
694
695/********************* NMDA Support entries *****************************/
696
699
701 boolean nmda_req;
702
707
710
711 struct cfg_template_t_ *nmda_source_cfg;
712
714 boolean with_origin;
715
717
718
722/********************************************************************
723* *
724* F U N C T I O N S *
725* *
726*********************************************************************/
727
746extern yangapi_param_t *
747 yangapi_new_param (const xmlChar *parmname,
748 uint32 parmnamelen,
749 const xmlChar *parmval,
750 uint32 parmvallen);
751
752
758extern void
760
761
775extern yangapi_accept_t *
776 yangapi_new_accept (const xmlChar *mediatype,
777 uint32 media_type_len,
778 const xmlChar *submediatype,
779 uint32 submediatype_len,
780 const xmlChar *acc_format,
781 uint32 acc_format_len,
782 const xmlChar *qvalue,
783 uint32 qvalue_len);
784
785
791extern void
793
794
802extern void
804
805
812extern void
814 ses_cb_t *scb);
815
816
822extern void
824
825
831extern yangapi_cb_t *
832 yangapi_new_rcb (void);
833
834
840extern void
842
843
849extern void
851
852
859extern const xmlChar *
861
862
869extern uint8
871
872
880 yangapi_get_content_enum (const xmlChar *content);
881
882
889extern const xmlChar *
891
899 yangapi_get_restconf_qparam_enum (const xmlChar *param);
900
904#ifdef __cplusplus
905} /* end extern 'C' */
906#endif
907
908#endif /* _H_yangapi */
dlq provides general double-linked list and queue support:
op_insertop_t
YANG insert operation types.
Definition: op.h:137
op_editop_t
NETCONF edit-config operation types.
Definition: op.h:122
void yangapi_clean_target_keyvalQ(yangapi_cb_t *rcb)
Free all the snmp target keyval entries.
Definition: yangapi.c:288
void yangapi_free_accept(yangapi_accept_t *accept_entry)
Free a YANGAPI accept header entries.
Definition: yangapi.c:213
void yangapi_clean_rcb(yangapi_cb_t *rcb)
Clean a YANGAPI/RESTCONF control block.
Definition: yangapi.c:470
void yangapi_free_rcb(yangapi_cb_t *rcb)
Free a YANGAPI control block.
Definition: yangapi.c:343
const xmlChar * yangapi_get_content_name(restconf_content_t content)
Get the keyword for the specified restconf_content_t enumeration.
Definition: yangapi.c:636
const xmlChar * yangapi_get_method_name(yangapi_method_t method_enum)
Get the method name from its enum.
Definition: yangapi.c:531
restconf_qparam_t yangapi_get_restconf_qparam_enum(const xmlChar *param)
Get the enum for a query parameter from the query URI part.
Definition: yangapi.c:665
yangapi_param_t * yangapi_new_param(const xmlChar *parmname, uint32 parmnamelen, const xmlChar *parmval, uint32 parmvallen)
Create a new YANGAPI paramater.
Definition: yangapi.c:81
void yangapi_clean_keyvalQ(yangapi_cb_t *rcb)
Clean the key value Q in a request control block.
Definition: yangapi.c:236
uint8 yangapi_cvt_method_coap(yangapi_method_t method_enum)
Get the libcoap numeric value for the HTTP method enum.
Definition: yangapi.c:569
void yangapi_clean_getnext_listQ(yangapi_cb_t *rcb, ses_cb_t *scb)
Free all the snmp getnext list entries.
Definition: yangapi.c:258
void yangapi_free_param(yangapi_param_t *param)
Free a YANG-API parameter.
Definition: yangapi.c:120
yangapi_cb_t * yangapi_new_rcb(void)
Create a new YANG-API control block.
Definition: yangapi.c:309
restconf_content_t yangapi_get_content_enum(const xmlChar *content)
Get the enum for the content query parameter from the query URI part.
Definition: yangapi.c:605
yangapi_accept_t * yangapi_new_accept(const xmlChar *mediatype, uint32 media_type_len, const xmlChar *submediatype, uint32 submediatype_len, const xmlChar *acc_format, uint32 acc_format_len, const xmlChar *qvalue, uint32 qvalue_len)
Create a new YANGAPI paramater.
Definition: yangapi.c:146
restconf_content_t
RESTCONF content query param enumeration.
Definition: yangapi.h:215
restconf_qparam_t
RESTCONF query param enumeration.
Definition: yangapi.h:223
yangapi_launchpt_t
describes the type of node indicated by the RequestURI path Used internally in the server to process ...
Definition: yangapi.h:126
yangapi_method_t
HTTP methods used by YANG-API and RESTCONF.
Definition: yangapi.h:111
@ RESTCONF_CONTENT_NONCONFIG
only non-configuration data nodes
Definition: yangapi.h:218
@ RESTCONF_CONTENT_CONFIG
return only configuration data nodes
Definition: yangapi.h:217
@ RESTCONF_CONTENT_NONE
not set
Definition: yangapi.h:216
@ RESTCONF_CONTENT_ALL
all descendant data nodes
Definition: yangapi.h:219
@ RESTCONF_QPARAM_UNKNOWN
used for unexpected or invalid parameters
Definition: yangapi.h:235
@ RESTCONF_QPARAM_WITH_ORIGIN
control origin metadata retrieval
Definition: yangapi.h:233
@ RESTCONF_QPARAM_EXTENSION
YumaWorks confirmed-commit extension.
Definition: yangapi.h:234
@ YANGAPI_LAUNCHPT_EVENTS
events launch point.
Definition: yangapi.h:172
@ YANGAPI_LAUNCHPT_OPERATION
/restconf/operations/some-operation launch point
Definition: yangapi.h:152
@ YANGAPI_LAUNCHPT_NONE
not set
Definition: yangapi.h:128
@ YANGAPI_LAUNCHPT_NEW_DATA
/restconf/data/foo/new-bar launch point
Definition: yangapi.h:140
@ YANGAPI_LAUNCHPT_YANGLIB_VERSION
/restconf/yang-library-version launch point
Definition: yangapi.h:175
@ YANGAPI_LAUNCHPT_ACTION
action launch point
Definition: yangapi.h:178
@ YANGAPI_LAUNCHPT_STREAMS
streams launch point
Definition: yangapi.h:164
@ YANGAPI_LAUNCHPT_DATA
/restconf/data/foo launch point
Definition: yangapi.h:137
@ YANGAPI_LAUNCHPT_YANG_PLAIN
RESTCONF 'schema' resource class.
Definition: yangapi.h:158
@ YANGAPI_LAUNCHPT_VERSION
version launch point
Definition: yangapi.h:161
@ YANGAPI_LAUNCHPT_DATASTORE
/restconf/data launch point
Definition: yangapi.h:134
@ YANGAPI_LAUNCHPT_OPERATIONS
/restconf/operations launch point
Definition: yangapi.h:149
@ YANGAPI_LAUNCHPT_MODULES
modules launch point
Definition: yangapi.h:143
@ YANGAPI_LAUNCHPT_MODULE
modules/module launch point
Definition: yangapi.h:146
@ YANGAPI_LAUNCHPT_YANG
YANG launch point.
Definition: yangapi.h:155
@ YANGAPI_LAUNCHPT_STREAM
streams/stream launch point
Definition: yangapi.h:167
@ YANGAPI_LAUNCHPT_TOP
/restconf launch point
Definition: yangapi.h:131
@ YANGAPI_METHOD_DELETE
DELETE method.
Definition: yangapi.h:119
@ YANGAPI_METHOD_HEAD
HEAD method.
Definition: yangapi.h:114
@ YANGAPI_METHOD_POST
POST method.
Definition: yangapi.h:116
@ YANGAPI_METHOD_GET
GET method.
Definition: yangapi.h:115
@ YANGAPI_METHOD_NONE
not set
Definition: yangapi.h:112
@ YANGAPI_METHOD_OPTIONS
OPTIONS method.
Definition: yangapi.h:113
@ YANGAPI_METHOD_PATCH
PATCH method.
Definition: yangapi.h:118
@ YANGAPI_METHOD_PUT
PUT method.
Definition: yangapi.h:117
status_t
global error return code
Definition: status_enum.h:210
uint32 ncx_etag_t
The ETag used in RESTCONF messages is the lower 32 bits of a ncx_transaction_id_t.
Definition: ncxtypes.h:767
ncx_cfg_t
hardwire the 3 standard configs
Definition: ncxtypes.h:548
ncx_nmda_ds_t
internal enumerations for standard NMDA datastores
Definition: ncxtypes.h:1627
ncx_display_mode_t
enumeration of val_dump_value display modes Some RESTCONF code uses this field incorrectly for messag...
Definition: ncxtypes.h:617
ncx_withdefaults_t
enum for with-defaults enum values
Definition: ncxtypes.h:1274
YANG module data structures Many internal representations of YANG module constructs.
Data Object Support.
NETCONF protocol operations.
defines the snmp oid value, stored as an array of integers for easier comparision when performing AVL...
Definition: obj.h:1206
One YANG data-def-stmt.
Definition: obj.h:1220
Session Control Block.
Definition: ses.h:573
one value to match one type
Definition: val.h:912
XPath parser control block.
Definition: xpath.h:754
XPath expression result.
Definition: xpath.h:705
Restapi Accept header string entries.
Definition: yangapi.h:196
xmlChar * media_type
media type
Definition: yangapi.h:201
dlq_hdr_t qhdr
queue header in case added to a queue
Definition: yangapi.h:198
xmlChar * submedia_type
sub-media type
Definition: yangapi.h:204
xmlChar * format
format requested
Definition: yangapi.h:207
xmlChar * qvalue_str
Q value string.
Definition: yangapi.h:210
Restapi Control Block Used by RESTCONF to hold parse and request processing state.
Definition: yangapi.h:241
val_value_t * request_sm_mpival
backptr inside root_tree to SM MPI value
Definition: yangapi.h:294
boolean is_replace_datastore
TRUE if Replace a Datastore Resource.
Definition: yangapi.h:532
xpath_result_t * request_xpath_result
search result for request URI
Definition: yangapi.h:282
xmlChar * edit_id
value represents failed edit ID
Definition: yangapi.h:551
size_t coap_datalen
output message body len
Definition: yangapi.h:566
xmlChar * http_location
if Location-Path needed
Definition: yangapi.h:563
xmlChar * http_etag
output CoAP ETag (not binary)
Definition: yangapi.h:564
xmlChar * request_uri
saved request URI
Definition: yangapi.h:267
boolean coap_block_m
filled if coap_is_block1
Definition: yangapi.h:570
obj_oid_t * snmp_target_oid
Requested OID, for snmpget is the actual requested OID, For snmpgetnext will be the next OID wether n...
Definition: yangapi.h:610
uint8 coap_block_szx
filled if coap_is_block1
Definition: yangapi.h:569
xmlChar * query_start
back-ptr into request_uri, start parameter
Definition: yangapi.h:351
boolean nmda_ds_parsed
FALSE if still need to process /ds/datastore nodes TRUE if already done processing new resources.
Definition: yangapi.h:706
val_value_t * snmp_target_list
malloced requested list value that holds all keys
Definition: yangapi.h:653
val_value_t * action_val
backptr inside targroot to action node
Definition: yangapi.h:529
boolean is_snmp
request header used for SNMP
Definition: yangapi.h:576
val_value_t * request_launch
backptr inside root tree to launch point
Definition: yangapi.h:312
yangapi_method_t method
HTTP method enumeration.
Definition: yangapi.h:408
boolean is_ypcoap
request from RESTCONF over CoAP
Definition: yangapi.h:556
dlq_hdr_t paramQ
Q of yangapi_param_t.
Definition: yangapi.h:249
ncx_nmda_ds_t nmda_ds
NMDA datastore to use.
Definition: yangapi.h:698
xmlChar * query_starttime
used to trigger the notification replay feature and indicate that the replay should start at the time...
Definition: yangapi.h:484
xmlChar * query_persist_id
persist-id parameter for the confirmed-commit
Definition: yangapi.h:378
xmlChar * request_patch_path
request patch path
Definition: yangapi.h:270
dlq_hdr_t snmp_target_keyvalQ
Q of malloced val_value_t.
Definition: yangapi.h:650
uint32 return_code
HTTP return code to send to client.
Definition: yangapi.h:429
boolean gnmi_patch
gNMI patch request
Definition: yangapi.h:692
xpath_pcb_t * query_select_xpath
select parameter parsed as XPath
Definition: yangapi.h:342
boolean get2_read
TRUE if a GET2 read needed.
Definition: yangapi.h:420
boolean snmpget2_index_match
GET2 boolean TRUE if found matching list entry FALSE, if no entry found.
Definition: yangapi.h:670
val_value_t * request_terminal
backptr inside root tree to tarminal val_value_t found
Definition: yangapi.h:318
ncx_display_mode_t query_format
format query parameter
Definition: yangapi.h:330
uint32 request_xpath_result_count
search result count for request URI
Definition: yangapi.h:285
xmlChar * stoptime_utc
utc converted query_stoptime
Definition: yangapi.h:497
xmlChar * index_string
index string used to build Location header for list
Definition: yangapi.h:517
boolean snmp_return_value_set
TRUE if instance node and value found and set FALSE otherwise.
Definition: yangapi.h:621
boolean netconf_getbulk
RESTCONF get-bulk active, not RESTCONF at all!
Definition: yangapi.h:276
yangapi_launchpt_t request_launchpt
request launch point
Definition: yangapi.h:309
xmlChar * fields_buff
malloced URL-decoded query_fields
Definition: yangapi.h:511
xmlChar * if_match
If-Match parameter.
Definition: yangapi.h:399
boolean query_confirmed
flag that confirm-commit is be completed
Definition: yangapi.h:384
xmlChar * starttime_utc
utc converted query_starttime
Definition: yangapi.h:487
boolean norm_header
TRUE if header entry is normative.
Definition: yangapi.h:459
uint8 snmp_pdu_code
SNMP PDU command code:
Definition: yangapi.h:599
boolean nmda_req
TRUE if this is NMDA datastore request.
Definition: yangapi.h:701
xmlChar * fragment
back-ptr to fragment if any
Definition: yangapi.h:411
obj_template_t * request_target_obj
backptr inside schema_tree
Definition: yangapi.h:303
boolean is_restconf
TRUE if RESTCONF method or a NETCONF <get-bulk> is in progress FALSE if a YANG-API method is in progr...
Definition: yangapi.h:466
xmlChar * if_none_match
If-None-Match parameter.
Definition: yangapi.h:402
op_editop_t editop
edit operation
Definition: yangapi.h:432
dlq_hdr_t get2_selectQ
Q of getcb_get2_select_t.
Definition: yangapi.h:426
obj_template_t * request_target_obj_term
final GET2 target
Definition: yangapi.h:306
dlq_hdr_t qhdr
queue header in case added to a queue
Definition: yangapi.h:246
ncx_display_mode_t accept_format
accepted output encoding
Definition: yangapi.h:456
xmlChar * content_length
input content length (not always set)
Definition: yangapi.h:390
dlq_hdr_t acceptQ
Q of yangapi_accept_t.
Definition: yangapi.h:255
uint32 query_select_xpath_result_count
result count for select parameter search
Definition: yangapi.h:348
xmlChar * query_stoptime
The 'stop-time' parameter is used with the replay feature to indicate the newest notifications of int...
Definition: yangapi.h:494
boolean target_is_config
TRUE if target data is config=true.
Definition: yangapi.h:451
boolean skip_read
TRUE to skip read during response because conditional was not met (e.g., If-Match.
Definition: yangapi.h:440
xmlChar * coap_data
output message body or block1 input
Definition: yangapi.h:565
xmlChar * query_test
back-ptr into paramQ, test parameter
Definition: yangapi.h:360
val_value_t * valfilter
filter element to use
Definition: yangapi.h:474
boolean is_gnmi
Request is for YP-gNMI
Definition: yangapi.h:683
status_t res
gNMI GET status
Definition: yangapi.h:686
boolean request_xpath_result_flat
flag flatten result already done
Definition: yangapi.h:288
boolean futurestop
flag if future stop notifications
Definition: yangapi.h:500
dlq_hdr_t snmp_getnext_listQ
Q of malloced val_value struc Q of list entries with only keys in it.
Definition: yangapi.h:643
op_insertop_t query_insert
insert query parameter
Definition: yangapi.h:333
boolean empty_edit
TRUE if request is an empty edit.
Definition: yangapi.h:520
uint8 coap_accept_type
CoAP accept-type code.
Definition: yangapi.h:559
int content_len
actual content length
Definition: yangapi.h:405
val_value_t * request_target
backptr inside root_tree
Definition: yangapi.h:291
xmlChar * query_filter
URL encoded filter string.
Definition: yangapi.h:477
boolean coap_is_block1
T: request uses Blo0ck1.
Definition: yangapi.h:568
obj_template_t * snmp_target_obj
back pointer to target object (target leaf ONLY obj)
Definition: yangapi.h:602
ncx_cfg_t nmda_cfg_ds
internal config ID to use
Definition: yangapi.h:709
ncx_withdefaults_t query_withdef
with-defaults default
Definition: yangapi.h:503
xpath_result_t * query_test_xpath_result
result for test parameter Xpath
Definition: yangapi.h:366
const xmlChar * query_fields
Fields query Parameter entries URL encoded str; backptr to ?
Definition: yangapi.h:508
uint32 query_test_xpath_result_count
result count for test parameter Xpath
Definition: yangapi.h:369
boolean request_force_patch_root
forced patch root
Definition: yangapi.h:273
dlq_hdr_t sorted_acceptQ
Q of sorted accept header.
Definition: yangapi.h:258
uint16 query_depth
depth query parameter
Definition: yangapi.h:327
ncx_etag_t query_etag
converted etag
Definition: yangapi.h:357
uint32 pathlen
len from request_uri of resource path
Definition: yangapi.h:414
xmlChar * request_method
request method
Definition: yangapi.h:264
uint16 http_status
HTTP status code.
Definition: yangapi.h:558
uint32 snmp_index_length
the length of the index, Specifies how many .k1.k2.k3 appended after the base table OID
Definition: yangapi.h:659
boolean yang_patch
TRUE if YANG PATCH is in progress.
Definition: yangapi.h:545
boolean db_api_patch
TRUE if this is an edit from DB-API.
Definition: yangapi.h:417
xmlChar * coap_etag
input CoAP ETag (binary)
Definition: yangapi.h:562
boolean is_delta
internal is delta flag
Definition: yangapi.h:448
obj_template_t * req_target_reply_obj
backptr inside root_tree->obj
Definition: yangapi.h:297
restconf_content_t query_content
Start RESTCONF specific Query parameters entries query_content value // config/nonconfig/all.
Definition: yangapi.h:471
dlq_hdr_t keyvalQ
Q of getcb_keyval_t.
Definition: yangapi.h:252
boolean coap_save
T: need to cache coap_data, not free.
Definition: yangapi.h:567
uint16 coap_block_num
filled if coap_is_block1
Definition: yangapi.h:571
xmlChar * patch_id
value used in the request
Definition: yangapi.h:548
val_value_t * request_top_data
backptr inside root tree to top of data
Definition: yangapi.h:315
boolean snmp_key_walk
TRUE if need to walk all the list entries first in order to process getnext request on tabular instan...
Definition: yangapi.h:615
uint32 query_confirm_timeout
confirm-timeout parameter for the confirmed-commit
Definition: yangapi.h:381
xmlChar * query_select
back-ptr into paramQ to select parameter
Definition: yangapi.h:339
val_value_t * curnode
curmode being processed
Definition: yangapi.h:435
val_value_t * fields_filter
malloced based on fields_buff
Definition: yangapi.h:514
xmlChar * if_modified_since
If-Modified-Since parameter.
Definition: yangapi.h:393
boolean query_config_set
TRUE if the config query parameter is present.
Definition: yangapi.h:324
xpath_result_t * query_select_xpath_result
result for select parameter search
Definition: yangapi.h:345
obj_oid_t * snmp_target_index_oid
target index OID
Definition: yangapi.h:637
dlq_hdr_t get2_lookupQ
Q of getcb_get2_lookup_t.
Definition: yangapi.h:423
xmlChar * if_unmodified_since
If-Unmodified-Since parameter.
Definition: yangapi.h:396
time_t query_tstamp
converted timestamp
Definition: yangapi.h:354
xmlChar * event_stream_name
set to a malloced copy of the event stream name found in the request URI if AGT_LAUNCHPT_EVENTS is us...
Definition: yangapi.h:539
uint8 coap_content_type
CoAP content-type code.
Definition: yangapi.h:560
boolean empty_read
TRUE if there is nothing to read because filters did not produce any output.
Definition: yangapi.h:445
val_value_t * snmpget2_match_list
matched list value to use during get2 walking Used to find matching terminal value
Definition: yangapi.h:675
xpath_pcb_t * query_test_xpath
test parameter parsed as XPath
Definition: yangapi.h:363
xmlChar * request_target_name
malloced VAL_NAME
Definition: yangapi.h:300
xmlChar * query_point
back-ptr into paramQ to insertion point
Definition: yangapi.h:336
uint16 coap_etag_len
input CoAP ETag length
Definition: yangapi.h:561
boolean with_origin
If TRUE, requests will include "origin".
Definition: yangapi.h:714
boolean lock_done
gNMI lock done
Definition: yangapi.h:689
xmlChar * accept
saved Accept header string
Definition: yangapi.h:261
val_value_t * action_root
malloced pointer to action root
Definition: yangapi.h:526
obj_template_t * snmp_table_obj
back pointer to target table object of the target leaf node
Definition: yangapi.h:662
boolean is_action
RESTCONF Action requested.
Definition: yangapi.h:523
xmlChar * content_type
input content type
Definition: yangapi.h:387
xpath_pcb_t * request_xpath
request URI parsed in XPath control block
Definition: yangapi.h:279
xmlChar * query_persist
start parameters for confirmed-commit extension persist parameter for confirmed-commit back-ptr into ...
Definition: yangapi.h:375
boolean query_config
TRUE for config=true, FALSE for config=false.
Definition: yangapi.h:321
YANG-API Query string parameter.
Definition: yangapi.h:183
xmlChar * value
query parameter value
Definition: yangapi.h:191
xmlChar * name
query parameter name
Definition: yangapi.h:188
dlq_hdr_t qhdr
queue header in case added to a queue
Definition: yangapi.h:185
Value Node Basic Support.
Schema and data model Xpath search support.