yumapro  20.10-12
YumaPro SDK
ncx_appinfo.h File Reference

NCX Module Library Extension (Application Info) Utility Functions. More...

#include <xmlstring.h>
#include "dlq.h"
#include "ext.h"
#include "ncx.h"
#include "ncxtypes.h"
#include "tk.h"
#include "typ.h"
#include "val.h"
#include "xmlns.h"
#include "yang.h"
Include dependency graph for ncx_appinfo.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

ncx_appinfo_t * ncx_new_appinfo (boolean isclone)
 Create an appinfo entry. More...
 
void ncx_free_appinfo (ncx_appinfo_t *appinfo)
 Free an appinfo entry. More...
 
ncx_appinfo_t * ncx_find_appinfo (dlq_hdr_t *appinfoQ, const xmlChar *prefix, const xmlChar *varname)
 Find an appinfo entry by name (First match is returned) The entry returned is not removed from the Q. More...
 
const ncx_appinfo_t * ncx_find_const_appinfo (const dlq_hdr_t *appinfoQ, const xmlChar *prefix, const xmlChar *varname)
 Find an appinfo entry by name (First match is returned) The entry returned is not removed from the Q (CONST version) More...
 
const ncx_appinfo_t * ncx_find_next_appinfo (const ncx_appinfo_t *current, const xmlChar *prefix, const xmlChar *varname)
 Find the next instance of an appinfo entry by name (First match is returned) The entry returned is not removed from the Q. More...
 
ncx_appinfo_t * ncx_find_next_appinfo2 (ncx_appinfo_t *current, const xmlChar *prefix, const xmlChar *varname)
 Find the next instance of an appinfo entry by name (First match is returned, not const version) The entry returned is not removed from the Q. More...
 
ncx_appinfo_t * ncx_clone_appinfo (ncx_appinfo_t *appinfo)
 Clone an appinfo value. More...
 
void ncx_clean_appinfoQ (dlq_hdr_t *appinfoQ)
 Check an initialized appinfoQ for any entries Remove them from the queue and delete them. More...
 
status_t ncx_consume_appinfo (tk_chain_t *tkc, ncx_module_t *mod, dlq_hdr_t *appinfoQ)
 Check if an appinfo clause is present. More...
 
status_t ncx_consume_top_appinfo (yang_pcb_t *pcb, tk_chain_t *tkc, ncx_module_t *mod, dlq_hdr_t *appinfoQ)
 Check if an appinfo clause is present Called from the body_stmt handler Only top-level extension handlers are allowed to take over the consume_appinfo phase. More...
 
status_t ncx_consume_appinfo2 (tk_chain_t *tkc, ncx_module_t *mod, dlq_hdr_t *appinfoQ)
 Check if an appinfo clause is present Do not backup the current token The TK_TT_MSTRING token has not been seen yet Called from yang_consume_semiapp. More...
 
status_t ncx_resolve_appinfoQ (yang_pcb_t *pcb, tk_chain_t *tkc, ncx_module_t *mod, dlq_hdr_t *appinfoQ)
 Validate all the appinfo clauses present in the specified Q. More...
 
status_t ncx_resolve_appinfoQ_ex (yang_pcb_t *pcb, tk_chain_t *tkc, ncx_module_t *mod, dlq_hdr_t *appinfoQ, ncx_node_t node_type, void *node)
 Validate all the appinfo clauses present in the specified Q. More...
 
const xmlChar * ncx_get_appinfo_value (const ncx_appinfo_t *appinfo)
 Get the value string from an appinfo struct. More...
 

Detailed Description

NCX Module Library Extension (Application Info) Utility Functions.