yumapro  24.10-4
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
238
239
240
241
242
243#if defined(WITH_SNMP) && defined(WITH_RESTCONF)
244
249typedef struct yangapi_snmp_cb_t_ {
250
251 netsnmp_variable_list *variables;
252
268
271
279
284
290
291/********************* SNMP Index entries *****************************/
292
306
312
319
322
328
331
332/********************* SNMP GET2 entries *****************************/
333
339
345#endif // WITH_SNMP and WITH_RESTCONF
346
347
351typedef struct yangapi_cb_t_ {
352
353/************************* COMMON RCB entries *****************************/
354
356 dlq_hdr_t qhdr;
357
359 dlq_hdr_t paramQ;
360
362 dlq_hdr_t keyvalQ;
363
365 dlq_hdr_t acceptQ;
366
368 dlq_hdr_t sorted_acceptQ;
369
371 xmlChar *accept;
372
375
377 xmlChar *request_uri;
378
381
384
387
390
393
396
399
402
405
408
411
414
417
420
423
426
429
432
435
438
441
444
446 xmlChar *query_point;
447
449 xmlChar *query_select;
450
453
456
459
461 xmlChar *query_start;
462
465
468
470 xmlChar *query_test;
471
474
477
480
486
489
492
495
497 xmlChar *content_type;
498
501
504
507
509 xmlChar *if_match;
510
513
516
519
521 xmlChar *fragment;
522
524 uint32 pathlen;
525
528
530 boolean get2_read;
531
533 dlq_hdr_t get2_lookupQ;
534
536 dlq_hdr_t get2_selectQ;
537
540
543
546
550 boolean skip_read;
551
555 boolean empty_read;
556
558 boolean is_delta;
559
562
563/********************** Accept header entries ***************************/
564
567
569 boolean norm_header;
570
571/************************* RESTCONF entries *****************************/
572
576 boolean is_restconf;
577
582
585
587 xmlChar *query_filter;
588
595
598
605
607 xmlChar *stoptime_utc;
608
610 boolean futurestop;
611
614
618 const xmlChar *query_fields;
619
621 xmlChar *fields_buff;
622
625
627 xmlChar *index_string;
628
630 boolean empty_edit;
631
633 boolean is_action;
634
637
640
643
650
657
658/********************* YANG-PATCH entries *****************************/
659
661 boolean yang_patch;
662
664 xmlChar *patch_id;
665
667 xmlChar *edit_id;
668
669/********************* YP-COAP entries *****************************/
670
672 boolean is_ypcoap;
673
674 uint16 http_status;
678 xmlChar *coap_etag;
679 xmlChar *http_location;
680 xmlChar *http_etag;
681 xmlChar *coap_data;
683 boolean coap_save;
686 boolean coap_block_m;
688
689/********************* SNMP entries *****************************/
690
692 boolean is_snmp;
693
694 /*** NOTE: ALL SIL AND SIL-SA CODE MUST BE BUILT WITH THE CORRECT
695 *** MATCHING MAKE FLAGS BECAUSE THIS STRUCT HAS CONDITIONAL MEMBERS
696 ***/
697
698#if defined(WITH_SNMP) && defined(WITH_RESTCONF)
699 yangapi_snmp_cb_t *snmp_cb;
700#else
701 void *snmp_cb_dummy; // dummy, not used
702#endif
703
704
705/********************* GNMI entries *****************************/
706
708 boolean is_gnmi;
709
712
714 boolean lock_done;
715
717 boolean gnmi_patch;
718
719
720/********************* NMDA Support entries *****************************/
721
724
726 boolean nmda_req;
727
732
735
736 struct cfg_template_t_ *nmda_source_cfg;
737
739 boolean with_origin;
740
742
743
747/********************************************************************
748* *
749* F U N C T I O N S *
750* *
751*********************************************************************/
752
771extern yangapi_param_t *
772 yangapi_new_param (const xmlChar *parmname,
773 uint32 parmnamelen,
774 const xmlChar *parmval,
775 uint32 parmvallen);
776
777
783extern void
785
786
800extern yangapi_accept_t *
801 yangapi_new_accept (const xmlChar *mediatype,
802 uint32 media_type_len,
803 const xmlChar *submediatype,
804 uint32 submediatype_len,
805 const xmlChar *acc_format,
806 uint32 acc_format_len,
807 const xmlChar *qvalue,
808 uint32 qvalue_len);
809
810
816extern void
818
819
827extern void
829
830
837extern void
839 ses_cb_t *scb);
840
841
847extern void
849
850
856extern yangapi_cb_t *
857 yangapi_new_rcb (void);
858
859
865extern void
867
868
874extern void
876
877
884extern const xmlChar *
886
887
894extern uint8
896
897
905 yangapi_get_content_enum (const xmlChar *content);
906
907
914extern const xmlChar *
916
924 yangapi_get_restconf_qparam_enum (const xmlChar *param);
925
929#ifdef __cplusplus
930} /* end extern 'C' */
931#endif
932
933#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:523
void yangapi_free_rcb(yangapi_cb_t *rcb)
Free a YANGAPI control block.
Definition: yangapi.c:406
const xmlChar * yangapi_get_content_name(restconf_content_t content)
Get the keyword for the specified restconf_content_t enumeration.
Definition: yangapi.c:689
const xmlChar * yangapi_get_method_name(yangapi_method_t method_enum)
Get the method name from its enum.
Definition: yangapi.c:584
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:718
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:622
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:369
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:658
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:771
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:1631
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:1278
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:1215
One YANG data-def-stmt.
Definition: obj.h:1229
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:351
val_value_t * request_sm_mpival
backptr inside root_tree to SM MPI value
Definition: yangapi.h:404
boolean is_replace_datastore
TRUE if Replace a Datastore Resource.
Definition: yangapi.h:642
xpath_result_t * request_xpath_result
search result for request URI
Definition: yangapi.h:392
xmlChar * edit_id
value represents failed edit ID
Definition: yangapi.h:667
size_t coap_datalen
output message body len
Definition: yangapi.h:682
xmlChar * http_location
if Location-Path needed
Definition: yangapi.h:679
xmlChar * http_etag
output CoAP ETag (not binary)
Definition: yangapi.h:680
xmlChar * request_uri
saved request URI
Definition: yangapi.h:377
boolean coap_block_m
filled if coap_is_block1
Definition: yangapi.h:686
uint8 coap_block_szx
filled if coap_is_block1
Definition: yangapi.h:685
xmlChar * query_start
back-ptr into request_uri, start parameter
Definition: yangapi.h:461
boolean nmda_ds_parsed
FALSE if still need to process /ds/datastore nodes TRUE if already done processing new resources.
Definition: yangapi.h:731
val_value_t * action_val
backptr inside targroot to action node
Definition: yangapi.h:639
boolean is_snmp
request header used for SNMP
Definition: yangapi.h:692
val_value_t * request_launch
backptr inside root tree to launch point
Definition: yangapi.h:422
yangapi_method_t method
HTTP method enumeration.
Definition: yangapi.h:518
boolean is_ypcoap
request from RESTCONF over CoAP
Definition: yangapi.h:672
dlq_hdr_t paramQ
Q of yangapi_param_t.
Definition: yangapi.h:359
ncx_nmda_ds_t nmda_ds
NMDA datastore to use.
Definition: yangapi.h:723
xmlChar * query_starttime
used to trigger the notification replay feature and indicate that the replay should start at the time...
Definition: yangapi.h:594
xmlChar * query_persist_id
persist-id parameter for the confirmed-commit
Definition: yangapi.h:488
xmlChar * request_patch_path
request patch path
Definition: yangapi.h:380
uint32 return_code
HTTP return code to send to client.
Definition: yangapi.h:539
boolean gnmi_patch
gNMI patch request
Definition: yangapi.h:717
xpath_pcb_t * query_select_xpath
select parameter parsed as XPath
Definition: yangapi.h:452
boolean get2_read
TRUE if a GET2 read needed.
Definition: yangapi.h:530
val_value_t * request_terminal
backptr inside root tree to tarminal val_value_t found
Definition: yangapi.h:428
ncx_display_mode_t query_format
format query parameter
Definition: yangapi.h:440
uint32 request_xpath_result_count
search result count for request URI
Definition: yangapi.h:395
xmlChar * stoptime_utc
utc converted query_stoptime
Definition: yangapi.h:607
xmlChar * index_string
index string used to build Location header for list
Definition: yangapi.h:627
boolean netconf_getbulk
RESTCONF get-bulk active, not RESTCONF at all!
Definition: yangapi.h:386
yangapi_launchpt_t request_launchpt
request launch point
Definition: yangapi.h:419
xmlChar * fields_buff
malloced URL-decoded query_fields
Definition: yangapi.h:621
xmlChar * if_match
If-Match parameter.
Definition: yangapi.h:509
boolean query_confirmed
flag that confirm-commit is be completed
Definition: yangapi.h:494
xmlChar * starttime_utc
utc converted query_starttime
Definition: yangapi.h:597
boolean norm_header
TRUE if header entry is normative.
Definition: yangapi.h:569
boolean nmda_req
TRUE if this is NMDA datastore request.
Definition: yangapi.h:726
xmlChar * fragment
back-ptr to fragment if any
Definition: yangapi.h:521
obj_template_t * request_target_obj
backptr inside schema_tree
Definition: yangapi.h:413
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:576
xmlChar * if_none_match
If-None-Match parameter.
Definition: yangapi.h:512
op_editop_t editop
edit operation
Definition: yangapi.h:542
dlq_hdr_t get2_selectQ
Q of getcb_get2_select_t.
Definition: yangapi.h:536
obj_template_t * request_target_obj_term
final GET2 target
Definition: yangapi.h:416
dlq_hdr_t qhdr
queue header in case added to a queue
Definition: yangapi.h:356
ncx_display_mode_t accept_format
accepted output encoding
Definition: yangapi.h:566
xmlChar * content_length
input content length (not always set)
Definition: yangapi.h:500
dlq_hdr_t acceptQ
Q of yangapi_accept_t.
Definition: yangapi.h:365
uint32 query_select_xpath_result_count
result count for select parameter search
Definition: yangapi.h:458
xmlChar * query_stoptime
The 'stop-time' parameter is used with the replay feature to indicate the newest notifications of int...
Definition: yangapi.h:604
boolean target_is_config
TRUE if target data is config=true.
Definition: yangapi.h:561
boolean skip_read
TRUE to skip read during response because conditional was not met (e.g., If-Match.
Definition: yangapi.h:550
xmlChar * coap_data
output message body or block1 input
Definition: yangapi.h:681
xmlChar * query_test
back-ptr into paramQ, test parameter
Definition: yangapi.h:470
val_value_t * valfilter
filter element to use
Definition: yangapi.h:584
boolean is_gnmi
Request is for YP-gNMI
Definition: yangapi.h:708
status_t res
gNMI GET status
Definition: yangapi.h:711
boolean request_xpath_result_flat
flag flatten result already done
Definition: yangapi.h:398
boolean futurestop
flag if future stop notifications
Definition: yangapi.h:610
op_insertop_t query_insert
insert query parameter
Definition: yangapi.h:443
boolean empty_edit
TRUE if request is an empty edit.
Definition: yangapi.h:630
uint8 coap_accept_type
CoAP accept-type code.
Definition: yangapi.h:675
int content_len
actual content length
Definition: yangapi.h:515
val_value_t * request_target
backptr inside root_tree
Definition: yangapi.h:401
xmlChar * query_filter
URL encoded filter string.
Definition: yangapi.h:587
boolean coap_is_block1
T: request uses Blo0ck1.
Definition: yangapi.h:684
ncx_cfg_t nmda_cfg_ds
internal config ID to use
Definition: yangapi.h:734
ncx_withdefaults_t query_withdef
with-defaults default
Definition: yangapi.h:613
xpath_result_t * query_test_xpath_result
result for test parameter Xpath
Definition: yangapi.h:476
const xmlChar * query_fields
Fields query Parameter entries URL encoded str; backptr to ?
Definition: yangapi.h:618
uint32 query_test_xpath_result_count
result count for test parameter Xpath
Definition: yangapi.h:479
boolean request_force_patch_root
forced patch root
Definition: yangapi.h:383
dlq_hdr_t sorted_acceptQ
Q of sorted accept header.
Definition: yangapi.h:368
uint16 query_depth
depth query parameter
Definition: yangapi.h:437
ncx_etag_t query_etag
converted etag
Definition: yangapi.h:467
uint32 pathlen
len from request_uri of resource path
Definition: yangapi.h:524
xmlChar * request_method
request method
Definition: yangapi.h:374
uint16 http_status
HTTP status code.
Definition: yangapi.h:674
boolean yang_patch
TRUE if YANG PATCH is in progress.
Definition: yangapi.h:661
boolean db_api_patch
TRUE if this is an edit from DB-API.
Definition: yangapi.h:527
xmlChar * coap_etag
input CoAP ETag (binary)
Definition: yangapi.h:678
boolean is_delta
internal is delta flag
Definition: yangapi.h:558
obj_template_t * req_target_reply_obj
backptr inside root_tree->obj
Definition: yangapi.h:407
restconf_content_t query_content
Start RESTCONF specific Query parameters entries query_content value // config/nonconfig/all.
Definition: yangapi.h:581
dlq_hdr_t keyvalQ
Q of getcb_keyval_t.
Definition: yangapi.h:362
boolean coap_save
T: need to cache coap_data, not free.
Definition: yangapi.h:683
uint16 coap_block_num
filled if coap_is_block1
Definition: yangapi.h:687
xmlChar * patch_id
value used in the request
Definition: yangapi.h:664
val_value_t * request_top_data
backptr inside root tree to top of data
Definition: yangapi.h:425
uint32 query_confirm_timeout
confirm-timeout parameter for the confirmed-commit
Definition: yangapi.h:491
xmlChar * query_select
back-ptr into paramQ to select parameter
Definition: yangapi.h:449
val_value_t * configval
Input value to keep for reference for notification purposes.
Definition: yangapi.h:656
val_value_t * curnode
curmode being processed
Definition: yangapi.h:545
val_value_t * fields_filter
malloced based on fields_buff
Definition: yangapi.h:624
xmlChar * if_modified_since
If-Modified-Since parameter.
Definition: yangapi.h:503
boolean query_config_set
TRUE if the config query parameter is present.
Definition: yangapi.h:434
xpath_result_t * query_select_xpath_result
result for select parameter search
Definition: yangapi.h:455
dlq_hdr_t get2_lookupQ
Q of getcb_get2_lookup_t.
Definition: yangapi.h:533
xmlChar * if_unmodified_since
If-Unmodified-Since parameter.
Definition: yangapi.h:506
time_t query_tstamp
converted timestamp
Definition: yangapi.h:464
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:649
uint8 coap_content_type
CoAP content-type code.
Definition: yangapi.h:676
boolean empty_read
TRUE if there is nothing to read because filters did not produce any output.
Definition: yangapi.h:555
xpath_pcb_t * query_test_xpath
test parameter parsed as XPath
Definition: yangapi.h:473
xmlChar * request_target_name
malloced VAL_NAME
Definition: yangapi.h:410
xmlChar * query_point
back-ptr into paramQ to insertion point
Definition: yangapi.h:446
uint16 coap_etag_len
input CoAP ETag length
Definition: yangapi.h:677
boolean with_origin
If TRUE, requests will include "origin".
Definition: yangapi.h:739
boolean lock_done
gNMI lock done
Definition: yangapi.h:714
xmlChar * accept
saved Accept header string
Definition: yangapi.h:371
val_value_t * action_root
malloced pointer to action root
Definition: yangapi.h:636
boolean is_action
RESTCONF Action requested.
Definition: yangapi.h:633
xmlChar * content_type
input content type
Definition: yangapi.h:497
xpath_pcb_t * request_xpath
request URI parsed in XPath control block
Definition: yangapi.h:389
xmlChar * query_persist
start parameters for confirmed-commit extension persist parameter for confirmed-commit back-ptr into ...
Definition: yangapi.h:485
boolean query_config
TRUE for config=true, FALSE for config=false.
Definition: yangapi.h:431
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
Restapi SNMP Control Block Used by RESTCONF to hold parse and request processing state for an SNMP re...
Definition: yangapi.h:249
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:278
val_value_t * snmp_target_list
malloced requested list value that holds all keys
Definition: yangapi.h:321
dlq_hdr_t snmp_target_keyvalQ
Q of malloced val_value_t.
Definition: yangapi.h:318
boolean snmpget2_index_match
GET2 boolean TRUE if found matching list entry FALSE, if no entry found.
Definition: yangapi.h:338
boolean snmp_return_value_set
TRUE if instance node and value found and set FALSE otherwise.
Definition: yangapi.h:289
uint8 snmp_pdu_code
SNMP PDU command code:
Definition: yangapi.h:267
dlq_hdr_t snmp_getnext_listQ
Q of malloced val_value struc Q of list entries with only keys in it.
Definition: yangapi.h:311
obj_template_t * snmp_target_obj
back pointer to target object (target leaf ONLY obj)
Definition: yangapi.h:270
uint32 snmp_index_length
the length of the index, Specifies how many .k1.k2.k3 appended after the base table OID
Definition: yangapi.h:327
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:283
obj_oid_t * snmp_target_index_oid
target index OID
Definition: yangapi.h:305
val_value_t * snmpget2_match_list
matched list value to use during get2 walking Used to find matching terminal value
Definition: yangapi.h:343
obj_template_t * snmp_table_obj
back pointer to target table object of the target leaf node
Definition: yangapi.h:330
Value Node Basic Support.
Schema and data model Xpath search support.