yumapro  23.10T-7
YumaPro SDK
Loading...
Searching...
No Matches
obj_template_t Struct Reference

One YANG data-def-stmt. More...

#include <obj.h>

Collaboration diagram for obj_template_t:

Data Structures

union  def_
 object specific variants More...
 

Data Fields

dlq_hdr_t qhdr
 queue header
 
obj_type_t objtype
 object type (def)
 
uint32 yang_hash
 experimental: not used
 
uint32 flags
 see OBJ_FL_* definitions
 
uint32 xflags
 see OBJ_FL_* definitions
 
uint32 xflags2
 see OBJ_FL_* definitions
 
uint32 uflags
 see OBJ_FL_* definitions
 
uint8 silflags
 see OBJ_FL_* definitions
 
uint8 sil_priority
 picks SIL callback order
 
obj_testflags_t testflags
 see AGT_TEST_FL_* definitions
 
obj_testflags_t desc_testflags
 see AGT_TEST_FL_* definitions
 
ncx_error_t tkerr
 file and line info for compiler
 
grp_template_tgrp
 non-NULL == in a grp.datadefQ
 
obj_index_t index
 object index for val_child ordering
 
obj_oid_toid
 SNMP OID for this object (set if needed)
 
boolean set_snmp_flags
 need SNMP flags
 
boolean xpath_oper_ok
 object OK for referencing oper-data in XPath
 
struct obj_template_t_ * parent
 backptr to parent
 
struct obj_template_t_ * usesobj
 backptr to uses-obj if grouping expand
 
struct obj_template_t_ * augobj
 backptr to augment-obj if augment expand
 
struct xpath_pcb_t_ * when
 optional when clause
 
dlq_hdr_t metadataQ
 Q of obj_metadata_t.
 
dlq_hdr_t appinfoQ
 Q of ncx_appinfo_t.
 
dlq_hdr_t iffeatureQ
 Q of ncx_iffeature_t.
 
dlq_hdr_t inherited_iffeatureQ
 Q of obj_iffeature_ptr_t.
 
dlq_hdr_t inherited_whenQ
 Q of ncx_backptr_t with node == xpath_pcb_t.
 
dlq_hdr_t * dataruleQ
 Q obj NACM data-rule backptrs.
 
void * cbset
 cbset is different based on the object type: More...
 
void * get2cb
 get2fn is getcb_fn2_t for local GET2
 
struct ncx_module_t_ * mod
 object module and namespace ID assigned at runtime this can be changed over and over as a uses statement is expanded. More...
 
xmlns_id_t nsid
 namespace ID assigned to the object at run-time
 
struct xpath_pcb_t_ * xpath_backptr [OBJ_NUM_XPATH_BACKPTRS]
 xpath backptr caching support
 
dlq_hdr_t xpath_backptrQ
 Q of ncx_back_ptr_t with node == xpath_pcb_t.
 
void * commit_test_cb
 backptr to the commit_test record for this object which will only exist if this object has 'must' or 'when' statements defined within it
 
dlq_hdr_t * errmsgQ
 custom error message used if this is the server running
 
void * yangmap_cb
 if set, backptr to the nodemap in a YANG model mapping OBJ_IS_YANGMAP_SOURCE() indicates this is the source node OBJ_IS_YANGMAP_TARGET() indicates this is the target node
 
ncx_transaction_id_t edit_txid
 current edit transaction ID for commit test pruning
 
ncx_transaction_id_t must_txid
 current edit transaction ID for MUST test default nodes pruning
 
ncx_transaction_id_t when_txid
 current edit transaction ID for WHEN test default nodes pruning
 
ncx_transaction_id_t leafref_txid
 current edit transaction ID for intermediate leafref processing
 
void * def_hook_cb
 def_hook_cb is ncx_def_hook_cbfn_t callback function for Dynamic Default Hook callback.
 
void * bool_eval_cb
 The bool_eval_cb callback function may be set to allow XPath eval to be done by the callback instead of the real XPath parser. More...
 
ncx_sm_rootcb_trootcb
 Schema Mount Control Block.
 
ncx_sid_t yang_sid
 Each object specific variant has a YANG SID assigned for CBOR encoding. More...
 
uint32 yang_sid_tree
 SID tree assignment if yang_sid is used.
 

Detailed Description

One YANG data-def-stmt.

Field Documentation

◆ bool_eval_cb

void* bool_eval_cb

The bool_eval_cb callback function may be set to allow XPath eval to be done by the callback instead of the real XPath parser.

See xpath.h typedef for details for xpath_bool_eval_fn_t function

◆ cbset

void* cbset

cbset is different based on the object type:

    OBJ_TYP_RPC == agt_rpc_cbset_t
    OBJ_TYP_ACTION ==  agt_action_cbset_t
    OBJ_TYP_* (data nodes) == agt_cb_fnset_t

◆ mod

struct ncx_module_t_* mod

object module and namespace ID assigned at runtime this can be changed over and over as a uses statement is expanded.

The final expansion into a real object will leave the correct value in place

◆ yang_sid

ncx_sid_t yang_sid

Each object specific variant has a YANG SID assigned for CBOR encoding.

The augment and uses variants do not actually get SID assignments.


The documentation for this struct was generated from the following file: