yumapro  20.10-12
YumaPro SDK
ext.h File Reference

YANG Extension Handler. More...

#include <xmlstring.h>
#include <xmlregexp.h>
#include "ncxconst.h"
#include "ncxtypes.h"
#include "status.h"
#include "tk.h"
#include "xmlns.h"
Include dependency graph for ext.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  ext_template_t_
 One YANG 'extension' definition – language extension template. More...
 

Typedefs

typedef status_t(* ext_cbfn_t) (void *rawpcb, ncx_module_t *mod, tk_chain_t *tkc, struct ext_template_t_ *ext, void *cookie, const xmlChar *arg, ncx_node_t node_type, void *node)
 One YANG Extension Handler Callback. More...
 

Functions

ext_template_t * ext_new_template (void)
 Malloc and initialize the fields in a ext_template_t. More...
 
void ext_free_template (ext_template_t *ext)
 Scrub the memory in a ext_template_t by freeing all the sub-fields and then freeing the entire struct itself. More...
 
void ext_clean_extensionQ (dlq_hdr_t *que)
 Clean a queue of ext_template_t structs. More...
 
ext_template_t * ext_find_extension (ncx_module_t *mod, const xmlChar *name)
 Search a module for an ext_template_t structs with a given name Search mod to find extension name. More...
 
ext_template_t * ext_find_extension_que (dlq_hdr_t *extensionQ, const xmlChar *name)
 Find an ext_template_t struct in the specified Q. More...
 
ext_template_t * ext_find_extension_all (ncx_module_t *mod, const xmlChar *name)
 Search a module of ext_template_t structs for a given name Check all submodules as well. More...
 
void ext_init (void)
 Init the extension callback handler queue. More...
 
void ext_cleanup (void)
 Cleanup the extension callback handler queue. More...
 
status_t ext_register_cbfn (const xmlChar *modname, const xmlChar *extname, ext_cbfn_t cbfn, void *cbfn_cookie)
 Register a callback function for the specified extension If multiple callbacks for same extension, then last one wins. More...
 
void ext_find_cbfn (const xmlChar *modname, const xmlChar *extname, ext_template_t *ext)
 Find the registered callback for the specified extension Set the callback handler if found. More...
 

Detailed Description

YANG Extension Handler.