84#define CBOR_WR_TESTFN(T) (T)->testfn
85#define CBOR_WR_EXPAND_VAREXPR(T) (T)->expand_varexpr
86#define CBOR_WR_PARENT_NSID(T) (T)->parent_nsid
87#define CBOR_WR_PARENT_SID(T) (T)->parent_sid
88#define CBOR_WR_FORCE_PARENT_SID(T) (T)->force_parent_sid
89#define CBOR_WR_IS_EMPTY(T) (T)->is_empty
90#define CBOR_WR_CONTENT_ONLY(T) (T)->content_only
91#define CBOR_WR_ACM_CHECK(T) (T)->acm_check
92#define CBOR_WR_FORCE_NAMES(T) (T)->force_names
112typedef struct cbor_wr_parms_t_ {
175typedef struct cbor_walker_cookie_t_ {
238#define cbor_wr_end_list cbor_wr_end_elem
272 const xmlChar *strval,
GET1 and GET2 Callback Support.
boolean(* val_nodetest_fn_t)(xml_msg_hdr_t *mhdr, ncx_withdefaults_t withdef, boolean realtest, val_value_t *node)
user function callback template to test output of a specified node.
Definition: val_util.h:132
status_t cbor_wr_open_file(FILE *fp, xml_msg_hdr_t *hdr, val_value_t *val, cbor_wr_parms_t *parms)
Write the specified value to an open FILE in CBOR format.
Definition: cbor_wr.c:2968
void cbor_wr_start_msg(ses_cb_t *scb)
Write the CBOR start message byte.
Definition: cbor_wr.c:2910
void cbor_wr_child_obj(ses_cb_t *scb, xml_msg_hdr_t *msg, getcb_get2_t *parent_get2cb, obj_template_t *objnode, cbor_wr_parms_t *parms)
Write an entire <get2> val_value_t out from the obj_template_t callback.
Definition: cbor_wr.c:2858
void cbor_wr_string_elem(ses_cb_t *scb, xml_msg_hdr_t *msg, const xmlChar *strval, obj_template_t *obj, cbor_wr_parms_t *parms)
Write a string CBOR node to the specified session.
Definition: cbor_wr.c:2734
void cbor_wr_begin_list(ses_cb_t *scb, xml_msg_hdr_t *msg)
Write a start CBOR list entry.
Definition: cbor_wr.c:2671
void cbor_wr_uint_elem(ses_cb_t *scb, xml_msg_hdr_t *msg, uint64 val, obj_template_t *obj, cbor_wr_parms_t *parms)
Write a UINT CBOR node to the specified session.
Definition: cbor_wr.c:2776
void cbor_wr_end_elem(ses_cb_t *scb, xml_msg_hdr_t *msg, obj_template_t *obj)
Write an end container: indef (break) to the specified session.
Definition: cbor_wr.c:2695
void cbor_wr_val(ses_cb_t *scb, xml_msg_hdr_t *msg, val_value_t *val, cbor_wr_parms_t *parms)
Output val_value_t node contents only.
Definition: cbor_wr.c:2817
status_t cbor_wr_file(const xmlChar *filespec, xml_msg_hdr_t *hdr, val_value_t *val, cbor_wr_parms_t *parms)
Write the specified value to a FILE in CBOR format.
Definition: cbor_wr.c:2930
void cbor_wr_begin_elem(ses_cb_t *scb, xml_msg_hdr_t *msg, obj_template_t *obj, cbor_wr_parms_t *parms)
Write a start CBOR node to the specified session.
Definition: cbor_wr.c:2635
status_t
global error return code
Definition: status_enum.h:210
uint16 xmlns_id_t
integer handle for registered namespaces
Definition: xmlns.h:89
uint32 ncx_sid_t
Standard YANG SID is a 63-bit integer defined as uint64.
Definition: ncxtypes.h:756
ncx_nmda_origin_t
internal enumerations for standard NMDA origins
Definition: ncxtypes.h:1642
YANG module data structures Many internal representations of YANG module constructs.
NETCONF Session Common definitions module.
Global error messages for status code enumerations.
XML walker cookie for GET callback processing.
Definition: cbor_wr.h:175
cbor_wr_parms_t * parms
CBOR parameter and state block to use This is a backptr, not malloced.
Definition: cbor_wr.h:189
ses_cb_t * scb
session to use for sending output; This is a backptr, not malloced
Definition: cbor_wr.h:179
xml_msg_hdr_t * msg
message header to hold state during output This is a backptr, not malloced
Definition: cbor_wr.h:184
Parameter Request Block used instead of passing lots of leafs.
Definition: cbor_wr.h:112
boolean force_names
TRUE if inside an anyxml or anydata so names are forced instead of possibly using internal SIDs.
Definition: cbor_wr.h:168
ncx_nmda_origin_t origin
TBD: current origin enum.
Definition: cbor_wr.h:147
ncx_sid_t parent_sid
parent SID
Definition: cbor_wr.h:126
boolean acm_check
TRUE if an acmcheck should be done FALSE if skip acmcheck (use this for notifications!
Definition: cbor_wr.h:163
xmlns_id_t parent_nsid
parent namespace ID
Definition: cbor_wr.h:123
val_nodetest_fn_t testfn
testfn callback function to use, NULL if not used
Definition: cbor_wr.h:114
boolean with_owners
TBD: TRUE if owner attributes needed.
Definition: cbor_wr.h:141
boolean file_write
TBD: TRUE if writing to a file instead of a session.
Definition: cbor_wr.h:135
boolean maxmode
TRUE if max depth already reached.
Definition: cbor_wr.h:150
boolean content_only
TRUE if only requesting val contents not full val.
Definition: cbor_wr.h:153
boolean expand_varexpr
expand var expressions; used in yangcli mostly TRUE if expanding variable expressions FALSE if not ex...
Definition: cbor_wr.h:120
boolean is_empty
TRUE if calling cbor_wr_begin_elem and really want an empty leaf instead.
Definition: cbor_wr.h:158
ncx_nmda_origin_t parent_origin
TBD: parent node origin enum.
Definition: cbor_wr.h:144
boolean with_origin
TBD: TRUE if origin attributes needed.
Definition: cbor_wr.h:138
boolean force_parent_sid
force parent SID: allows nested object to be written as if it were the top node.
Definition: cbor_wr.h:132
GET2 control block.
Definition: getcb.h:357
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
Common Encoding Message Header No longer XML specific!! Used by JSON and CBOR parsing as well!...
Definition: xml_msg.h:404
Value Node Basic Support.
XML and JSON Message send and receive support.