yumapro  23.10T-7
YumaPro SDK
Loading...
Searching...
No Matches
yangapi.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2012, Andy Bierman, All Rights Reserved.
3 * Copyright (c) 2012 - 2021, 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
222
226typedef struct yangapi_cb_t_ {
227
228/************************* COMMON RCB entries *****************************/
229
231 dlq_hdr_t qhdr;
232
234 dlq_hdr_t paramQ;
235
237 dlq_hdr_t keyvalQ;
238
240 dlq_hdr_t acceptQ;
241
243 dlq_hdr_t sorted_acceptQ;
244
246 xmlChar *accept;
247
250
252 xmlChar *request_uri;
253
256
259
262
265
268
271
274
277
280
283
286
289
292
295
298
301
304
307
310
313
316
319
321 xmlChar *query_point;
322
324 xmlChar *query_select;
325
328
331
334
336 xmlChar *query_start;
337
340
343
345 xmlChar *query_test;
346
349
352
355
361
364
367
370
372 xmlChar *content_type;
373
376
379
382
384 xmlChar *if_match;
385
388
391
394
396 xmlChar *fragment;
397
399 uint32 pathlen;
400
403
405 boolean get2_read;
406
408 dlq_hdr_t get2_lookupQ;
409
411 dlq_hdr_t get2_selectQ;
412
415
418
421
425 boolean skip_read;
426
430 boolean empty_read;
431
433 boolean is_delta;
434
437
438/********************** Accept header entries ***************************/
439
442
444 boolean norm_header;
445
446/************************* RESTCONF entries *****************************/
447
451 boolean is_restconf;
452
457
460
462 xmlChar *query_filter;
463
470
473
480
482 xmlChar *stoptime_utc;
483
485 boolean futurestop;
486
489
493 const xmlChar *query_fields;
494
496 xmlChar *fields_buff;
497
500
502 xmlChar *index_string;
503
505 boolean empty_edit;
506
508 boolean is_action;
509
512
515
518
525
526
527/********************* YANG-PATCH entries *****************************/
528
530 boolean yang_patch;
531
533 xmlChar *patch_id;
534
536 xmlChar *edit_id;
537
538/********************* YP-COAP entries *****************************/
539
541 boolean is_ypcoap;
542
543 uint16 http_status;
547 xmlChar *coap_etag;
548 xmlChar *http_location;
549 xmlChar *http_etag;
550 xmlChar *coap_data;
552 boolean coap_save;
555 boolean coap_block_m;
557
558/********************* SNMP entries *****************************/
559
561 boolean is_snmp;
562
563 /*** NOTE: ALL SIL AND SIL-SA CODE MUST BE BUILT WITH THE CORRECT
564 *** MATCHING MAKE FLAGS BECAUSE THIS STRUCT HAS CONDITIONAL MEMBERS
565 ***/
566
567#if defined(WITH_SNMP) && defined(WITH_RESTCONF)
568 netsnmp_variable_list *variables;
569
585
588
596
601
607
608/********************* SNMP Index entries *****************************/
609
623
629
636
639
645
648
649/********************* SNMP GET2 entries *****************************/
650
656
661
662#endif
663
664
665/********************* GNMI entries *****************************/
666
668 boolean is_gnmi;
669
672
674 boolean lock_done;
675
677 boolean gnmi_patch;
678
679
680/********************* NMDA Support entries *****************************/
681
684
686 boolean nmda_req;
687
692
695
696 struct cfg_template_t_ *nmda_source_cfg;
697
699 boolean with_origin;
700
702
703
707/********************************************************************
708* *
709* F U N C T I O N S *
710* *
711*********************************************************************/
712
731extern yangapi_param_t *
732 yangapi_new_param (const xmlChar *parmname,
733 uint32 parmnamelen,
734 const xmlChar *parmval,
735 uint32 parmvallen);
736
737
743extern void
745
746
760extern yangapi_accept_t *
761 yangapi_new_accept (const xmlChar *mediatype,
762 uint32 media_type_len,
763 const xmlChar *submediatype,
764 uint32 submediatype_len,
765 const xmlChar *acc_format,
766 uint32 acc_format_len,
767 const xmlChar *qvalue,
768 uint32 qvalue_len);
769
770
776extern void
778
779
787extern void
789
790
797extern void
799 ses_cb_t *scb);
800
801
807extern void
809
810
816extern yangapi_cb_t *
817 yangapi_new_rcb (void);
818
819
825extern void
827
828
834extern void
836
837
844extern const xmlChar *
846
847
854extern uint8
856
857
865 yangapi_get_content_enum (const xmlChar *content);
866
867
874extern const xmlChar *
876
877
881#ifdef __cplusplus
882} /* end extern 'C' */
883#endif
884
885#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
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
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
@ 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:1626
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:1195
One YANG data-def-stmt.
Definition: obj.h:1209
Session Control Block.
Definition: ses.h:573
one value to match one type
Definition: val.h:911
XPath parser control block.
Definition: xpath.h:752
XPath expression result.
Definition: xpath.h:703
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:226
val_value_t * request_sm_mpival
backptr inside root_tree to SM MPI value
Definition: yangapi.h:279
boolean is_replace_datastore
TRUE if Replace a Datastore Resource.
Definition: yangapi.h:517
xpath_result_t * request_xpath_result
search result for request URI
Definition: yangapi.h:267
xmlChar * edit_id
value represents failed edit ID
Definition: yangapi.h:536
size_t coap_datalen
output message body len
Definition: yangapi.h:551
xmlChar * http_location
if Location-Path needed
Definition: yangapi.h:548
xmlChar * http_etag
output CoAP ETag (not binary)
Definition: yangapi.h:549
xmlChar * request_uri
saved request URI
Definition: yangapi.h:252
boolean coap_block_m
filled if coap_is_block1
Definition: yangapi.h:555
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:595
uint8 coap_block_szx
filled if coap_is_block1
Definition: yangapi.h:554
xmlChar * query_start
back-ptr into request_uri, start parameter
Definition: yangapi.h:336
boolean nmda_ds_parsed
FALSE if still need to process /ds/datastore nodes TRUE if already done processing new resources.
Definition: yangapi.h:691
val_value_t * snmp_target_list
malloced requested list value that holds all keys
Definition: yangapi.h:638
val_value_t * action_val
backptr inside targroot to action node
Definition: yangapi.h:514
boolean is_snmp
request header used for SNMP
Definition: yangapi.h:561
val_value_t * request_launch
backptr inside root tree to launch point
Definition: yangapi.h:297
yangapi_method_t method
HTTP method enumeration.
Definition: yangapi.h:393
boolean is_ypcoap
request from RESTCONF over CoAP
Definition: yangapi.h:541
dlq_hdr_t paramQ
Q of yangapi_param_t.
Definition: yangapi.h:234
ncx_nmda_ds_t nmda_ds
NMDA datastore to use.
Definition: yangapi.h:683
xmlChar * query_starttime
used to trigger the notification replay feature and indicate that the replay should start at the time...
Definition: yangapi.h:469
xmlChar * query_persist_id
persist-id parameter for the confirmed-commit
Definition: yangapi.h:363
xmlChar * request_patch_path
request patch path
Definition: yangapi.h:255
dlq_hdr_t snmp_target_keyvalQ
Q of malloced val_value_t.
Definition: yangapi.h:635
uint32 return_code
HTTP return code to send to client.
Definition: yangapi.h:414
boolean gnmi_patch
gNMI patch request
Definition: yangapi.h:677
xpath_pcb_t * query_select_xpath
select parameter parsed as XPath
Definition: yangapi.h:327
boolean get2_read
TRUE if a GET2 read needed.
Definition: yangapi.h:405
boolean snmpget2_index_match
GET2 boolean TRUE if found matching list entry FALSE, if no entry found.
Definition: yangapi.h:655
val_value_t * request_terminal
backptr inside root tree to tarminal val_value_t found
Definition: yangapi.h:303
ncx_display_mode_t query_format
format query parameter
Definition: yangapi.h:315
uint32 request_xpath_result_count
search result count for request URI
Definition: yangapi.h:270
xmlChar * stoptime_utc
utc converted query_stoptime
Definition: yangapi.h:482
xmlChar * index_string
index string used to build Location header for list
Definition: yangapi.h:502
boolean snmp_return_value_set
TRUE if instance node and value found and set FALSE otherwise.
Definition: yangapi.h:606
boolean netconf_getbulk
RESTCONF get-bulk active, not RESTCONF at all!
Definition: yangapi.h:261
yangapi_launchpt_t request_launchpt
request launch point
Definition: yangapi.h:294
xmlChar * fields_buff
malloced URL-decoded query_fields
Definition: yangapi.h:496
xmlChar * if_match
If-Match parameter.
Definition: yangapi.h:384
boolean query_confirmed
flag that confirm-commit is be completed
Definition: yangapi.h:369
xmlChar * starttime_utc
utc converted query_starttime
Definition: yangapi.h:472
boolean norm_header
TRUE if header entry is normative.
Definition: yangapi.h:444
uint8 snmp_pdu_code
SNMP PDU command code:
Definition: yangapi.h:584
boolean nmda_req
TRUE if this is NMDA datastore request.
Definition: yangapi.h:686
xmlChar * fragment
back-ptr to fragment if any
Definition: yangapi.h:396
obj_template_t * request_target_obj
backptr inside schema_tree
Definition: yangapi.h:288
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:451
xmlChar * if_none_match
If-None-Match parameter.
Definition: yangapi.h:387
op_editop_t editop
edit operation
Definition: yangapi.h:417
dlq_hdr_t get2_selectQ
Q of getcb_get2_select_t.
Definition: yangapi.h:411
obj_template_t * request_target_obj_term
final GET2 target
Definition: yangapi.h:291
dlq_hdr_t qhdr
queue header in case added to a queue
Definition: yangapi.h:231
ncx_display_mode_t accept_format
accepted output encoding
Definition: yangapi.h:441
xmlChar * content_length
input content length (not always set)
Definition: yangapi.h:375
dlq_hdr_t acceptQ
Q of yangapi_accept_t.
Definition: yangapi.h:240
uint32 query_select_xpath_result_count
result count for select parameter search
Definition: yangapi.h:333
xmlChar * query_stoptime
The 'stop-time' parameter is used with the replay feature to indicate the newest notifications of int...
Definition: yangapi.h:479
boolean target_is_config
TRUE if target data is config=true.
Definition: yangapi.h:436
boolean skip_read
TRUE to skip read during response because conditional was not met (e.g., If-Match.
Definition: yangapi.h:425
xmlChar * coap_data
output message body or block1 input
Definition: yangapi.h:550
xmlChar * query_test
back-ptr into paramQ, test parameter
Definition: yangapi.h:345
val_value_t * valfilter
filter element to use
Definition: yangapi.h:459
boolean is_gnmi
Request is for YP-gNMI
Definition: yangapi.h:668
status_t res
gNMI GET status
Definition: yangapi.h:671
boolean request_xpath_result_flat
flag flatten result already done
Definition: yangapi.h:273
boolean futurestop
flag if future stop notifications
Definition: yangapi.h:485
dlq_hdr_t snmp_getnext_listQ
Q of malloced val_value struc Q of list entries with only keys in it.
Definition: yangapi.h:628
op_insertop_t query_insert
insert query parameter
Definition: yangapi.h:318
boolean empty_edit
TRUE if request is an empty edit.
Definition: yangapi.h:505
uint8 coap_accept_type
CoAP accept-type code.
Definition: yangapi.h:544
int content_len
actual content length
Definition: yangapi.h:390
val_value_t * request_target
backptr inside root_tree
Definition: yangapi.h:276
xmlChar * query_filter
URL encoded filter string.
Definition: yangapi.h:462
boolean coap_is_block1
T: request uses Blo0ck1.
Definition: yangapi.h:553
obj_template_t * snmp_target_obj
back pointer to target object (target leaf ONLY obj)
Definition: yangapi.h:587
ncx_cfg_t nmda_cfg_ds
internal config ID to use
Definition: yangapi.h:694
ncx_withdefaults_t query_withdef
with-defaults default
Definition: yangapi.h:488
xpath_result_t * query_test_xpath_result
result for test parameter Xpath
Definition: yangapi.h:351
const xmlChar * query_fields
Fields query Parameter entries URL encoded str; backptr to ?
Definition: yangapi.h:493
uint32 query_test_xpath_result_count
result count for test parameter Xpath
Definition: yangapi.h:354
boolean request_force_patch_root
forced patch root
Definition: yangapi.h:258
dlq_hdr_t sorted_acceptQ
Q of sorted accept header.
Definition: yangapi.h:243
ncx_etag_t query_etag
converted etag
Definition: yangapi.h:342
uint32 pathlen
len from request_uri of resource path
Definition: yangapi.h:399
xmlChar * request_method
request method
Definition: yangapi.h:249
uint16 http_status
HTTP status code.
Definition: yangapi.h:543
uint32 snmp_index_length
the length of the index, Specifies how many .k1.k2.k3 appended after the base table OID
Definition: yangapi.h:644
boolean yang_patch
TRUE if YANG PATCH is in progress.
Definition: yangapi.h:530
boolean db_api_patch
TRUE if this is an edit from DB-API.
Definition: yangapi.h:402
xmlChar * coap_etag
input CoAP ETag (binary)
Definition: yangapi.h:547
boolean is_delta
internal is delta flag
Definition: yangapi.h:433
obj_template_t * req_target_reply_obj
backptr inside root_tree->obj
Definition: yangapi.h:282
restconf_content_t query_content
Start RESTCONF specific Query parameters entries query_content value // config/nonconfig/all.
Definition: yangapi.h:456
dlq_hdr_t keyvalQ
Q of getcb_keyval_t.
Definition: yangapi.h:237
boolean coap_save
T: need to cache coap_data, not free.
Definition: yangapi.h:552
uint16 coap_block_num
filled if coap_is_block1
Definition: yangapi.h:556
xmlChar * patch_id
value used in the request
Definition: yangapi.h:533
val_value_t * request_top_data
backptr inside root tree to top of data
Definition: yangapi.h:300
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:600
uint32 query_confirm_timeout
confirm-timeout parameter for the confirmed-commit
Definition: yangapi.h:366
xmlChar * query_select
back-ptr into paramQ to select parameter
Definition: yangapi.h:324
val_value_t * curnode
curmode being processed
Definition: yangapi.h:420
val_value_t * fields_filter
malloced based on fields_buff
Definition: yangapi.h:499
xmlChar * if_modified_since
If-Modified-Since parameter.
Definition: yangapi.h:378
boolean query_config_set
TRUE if the config query parameter is present.
Definition: yangapi.h:309
xpath_result_t * query_select_xpath_result
result for select parameter search
Definition: yangapi.h:330
obj_oid_t * snmp_target_index_oid
target index OID
Definition: yangapi.h:622
uint32 query_depth
depth query parameter
Definition: yangapi.h:312
dlq_hdr_t get2_lookupQ
Q of getcb_get2_lookup_t.
Definition: yangapi.h:408
xmlChar * if_unmodified_since
If-Unmodified-Since parameter.
Definition: yangapi.h:381
time_t query_tstamp
converted timestamp
Definition: yangapi.h:339
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:524
uint8 coap_content_type
CoAP content-type code.
Definition: yangapi.h:545
boolean empty_read
TRUE if there is nothing to read because filters did not produce any output.
Definition: yangapi.h:430
val_value_t * snmpget2_match_list
matched list value to use during get2 walking Used to find matching terminal value
Definition: yangapi.h:660
xpath_pcb_t * query_test_xpath
test parameter parsed as XPath
Definition: yangapi.h:348
xmlChar * request_target_name
malloced VAL_NAME
Definition: yangapi.h:285
xmlChar * query_point
back-ptr into paramQ to insertion point
Definition: yangapi.h:321
uint16 coap_etag_len
input CoAP ETag length
Definition: yangapi.h:546
boolean with_origin
If TRUE, requests will include "origin".
Definition: yangapi.h:699
boolean lock_done
gNMI lock done
Definition: yangapi.h:674
xmlChar * accept
saved Accept header string
Definition: yangapi.h:246
val_value_t * action_root
malloced pointer to action root
Definition: yangapi.h:511
obj_template_t * snmp_table_obj
back pointer to target table object of the target leaf node
Definition: yangapi.h:647
boolean is_action
RESTCONF Action requested.
Definition: yangapi.h:508
xmlChar * content_type
input content type
Definition: yangapi.h:372
xpath_pcb_t * request_xpath
request URI parsed in XPath control block
Definition: yangapi.h:264
xmlChar * query_persist
start parameters for confirmed-commit extension persist parameter for confirmed-commit back-ptr into ...
Definition: yangapi.h:360
boolean query_config
TRUE for config=true, FALSE for config=false.
Definition: yangapi.h:306
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.