|
#define | XP_URL_ESC_WILDCARD '-' |
| Special URL to XPath translation.
|
|
#define | XP_FL_DYNNODE bit0 |
| Begin XPath control block flag definitions (uint32). More...
|
|
#define | XP_FL_SKIP_MODE bit1 |
| during XPath evaluation, skipping the rest of a FALSE AND or TRUE OR expression
|
|
#define | XP_FL_LOAD_IMPORT bit2 |
| OLD: bit 2 not used. More...
|
|
#define | XP_FL_ABSPATH bit3 |
| used by xpath_leafref.c to keep track of path type
|
|
#define | XP_FL_CONFIGONLY bit4 |
| used for YANG/NETCONF to auto-filter any non-config nodes that are matched by an XPath wildcard mechanism
|
|
#define | XP_FL_USEROOT bit5 |
| used to indicate the top object node is set FALSE to indicate that all the ncx_module_t datadefQs need to be searched instead
|
|
#define | XP_FL_INSTANCEID bit6 |
| used to restrict the XPath expression to the YANG instance-identifier syntax
|
|
#define | XP_FL_SCHEMA_INSTANCEID bit7 |
| used to restrict the XPath expression to an ncx:schema-instance string syntax
|
|
#define | XP_FL_TOP_RPC_INPUT bit8 |
| set if starting context node is RPC input which is allowed in YANG 1.1 More...
|
|
#define | XP_FL_ACTION_INPUT bit9 |
| set if starting context node is within action input which is allowed in YANG 1.1 More...
|
|
#define | XP_FL_NACM_GET2 bit10 |
| set if the XPath parser is being called to cache a data rule but found a GET2 node, forcing this rule to be checked during GET2 traversal
|
|
#define | XP_FL_KEEP_RESULT bit11 |
| set if the caller wants the test result to be kept will free pcb->result if already set when trying to save eval result
|
|
#define | XP_FL_FOUND_PRED bit12 |
| set if the parser found any predicates in the XPath expression
|
|
#define | XP_FL_GET_WHEN bit13 |
| the parser is processing a when-stmt for a GET node so retrieve the value now instead of leaving the state to XP_RSP_GET2_PENDING
|
|
#define | XP_FL_FROM_DBLSLASH bit14 |
| if the PCB is created from a converted dblslash expression then the scb->reader cannot be used so flag it as a converted filter
|
|
#define | XP_FL_EMPTY_GET bit15 |
| flag to indicate that the get operation has an empty return set for the filter evaluation and the final output needs to skip the XPath evaluation
|
|
#define | XP_FL_BACKPTR_CDIRTY bit0 |
| static config dirty for <candidate>
|
|
#define | XP_FL_BACKPTR_RDIRTY bit1 |
| static config dirty for <running>
|
|
#define | XP_FL_BACKPTR_SDIRTY bit2 |
| static config dirty for <startup>
|
|
#define | XPATH_GET_TYPE(P) (P)->xpath_type |
| get the XPath type from xpath_pcb_t * (P)
|
|
#define | XPATH_GET_RESTYPE(R) (R)->restype |
| get the result type from xpath_result_t * (R)
|
|
#define | XPATH_NACM_GET2(P) ((P)->flags & XP_FL_NACM_GET2) |
| test if the NACM GET2 mode is active in xpath_pcb_t (P)
|
|
#define | XPATH_NONCONFIG_WARN(P) (P)->nonconfig_warn_obj |
| YPW-1363: check nonconfig warning.
|
|
#define | XPATH_VAL_CXT(P) ((P)->val || (P)->val_get2) |
| test if context node is a value or get2 in xpath_pcb_t * (P)
|
|
#define | XPATH_ANY_CXT(P) ((P)->val || (P)->val_get2 || (P)->obj) |
| test if context node is a value or get2 in xpath_pcb_t * (P)
|
|
#define | XPATH_SCB(P) (P)->scb |
| access the XPath scb backptr in xpath_pcb_t * (P)
|
|
#define | XPATH_GET2CB_OBJ(N) (N)->cb->obj |
| access the GET2 control block object in xpath_get2_node_t (N)
|
|
#define | XPATH_MHDR(P) (P)->mhdr |
| access the message header back pointer
|
|
#define | XPATH_EXPRSTR(P) (P)->exprstr |
| access the XPath extression string
|
|
#define | XPATH_SET_DISABLED_OBJ_OK(P) (P)->disabled_obj_ok = TRUE |
| set the disabled_obj_ok flag
|
|
#define | XPATH_CLR_DISABLED_OBJ_OK(P) (P)->disabled_obj_ok = FALSE |
| clear the disabled_obj_ok flag
|
|
#define | XPATH_DISABLED_OBJ_OK(P) (P)->disabled_obj_ok |
| check the disabled_obj_ok flag
|
|
#define | XPATH_ROOTCB(P) (P)->rootcb |
| access the rootcb back pointer
|
|
#define | XPATH_SET_FROM_DBLSLASH(P) (P)->flags |= XP_FL_FROM_DBLSLASH |
| SET if the PCB is from a converted dblslash expression.
|
|
#define | XPATH_IS_FROM_DBLSLASH(P) ((P)->flags & XP_FL_FROM_DBLSLASH) |
| TEST if the PCB is from a converted dblslash expression.
|
|
#define | XPATH_SET_EMPTY_GET(P) (P)->flags |= XP_FL_EMPTY_GET |
| SET if the PCB is a forced empty return.
|
|
#define | XPATH_IS_EMPTY_GET(P) ((P)->flags & XP_FL_EMPTY_GET) |
| TEST if the PCB is a forced empty return.
|
|
#define | XPATH_WHEN_OBJ(P) (P)->when_obj |
| access the when_obj backptr in xpath_pcb_t * (P)
|
|
|
enum | xpath_restype_t {
XP_RT_NONE
,
XP_RT_NODESET
,
XP_RT_NUMBER
,
XP_RT_STRING
,
XP_RT_BOOLEAN
} |
| XPath expression result type. More...
|
|
enum | xpath_curmode_t {
XP_CM_NONE
,
XP_CM_TARGET
,
XP_CM_ALT
,
XP_CM_KEYVAR
} |
| XPath dynamic parsing mode for leafref. More...
|
|
enum | xpath_document_t {
XP_DOC_NONE
,
XP_DOC_DATABASE
,
XP_DOC_RPC
,
XP_DOC_RPC_REPLY
,
XP_DOC_NOTIFICATION
} |
| document root type. More...
|
|
enum | xpath_source_t {
XP_SRC_NONE
,
XP_SRC_LEAFREF
,
XP_SRC_YANG
,
XP_SRC_INSTANCEID
,
XP_SRC_SCHEMA_INSTANCEID
,
XP_SRC_XML
} |
| XPath expression source type. More...
|
|
enum | xpath_exop_t {
XP_EXOP_NONE
,
XP_EXOP_AND
,
XP_EXOP_OR
,
XP_EXOP_EQUAL
,
XP_EXOP_NOTEQUAL
,
XP_EXOP_LT
,
XP_EXOP_GT
,
XP_EXOP_LEQUAL
,
XP_EXOP_GEQUAL
,
XP_EXOP_ADD
,
XP_EXOP_SUBTRACT
,
XP_EXOP_MULTIPLY
,
XP_EXOP_DIV
,
XP_EXOP_MOD
,
XP_EXOP_NEGATE
,
XP_EXOP_UNION
,
XP_EXOP_FILTER1
,
XP_EXOP_FILTER2
} |
| XPath expression operation type. More...
|
|
enum | xpath_nodetype_t {
XP_EXNT_NONE
,
XP_EXNT_COMMENT
,
XP_EXNT_TEXT
,
XP_EXNT_PROC_INST
,
XP_EXNT_NODE
} |
| XPath expression node types. More...
|
|
enum | xpath_rntype_t {
XP_RNT_NONE
,
XP_RNT_OBJ
,
XP_RNT_VAL
,
XP_RNT_VALHDR
,
XP_RNT_GET2
} |
| XPath resnode union types. More...
|
|
enum | xpath_get2_state_t {
XP_RST_NONE
,
XP_RST_GET2_PENDING
,
XP_RST_GET2_SKIPPED
,
XP_RST_GET2_START
,
XP_RST_GET2_DONE
,
XP_RST_GET2_ERROR
} |
| GET2 retrieval states. More...
|
|
enum | xpath_get2_form_t {
XP_FORM_NONE
,
XP_FORM_GETCB
,
XP_FORM_GETCB_TERM
,
XP_FORM_GETCB_CHILD
} |
| GET2 control block forms. More...
|
|
Internal data structures used for XPath evaluation.