yumapro  20.10-13
YumaPro SDK
Library Mode
Collaboration diagram for Library Mode:

Typedefs

typedef status_t(* agt_library_search_fn_t) (dlq_hdr_t *modibQ)
 for the list of subsystems requesting or in progress for a config load or replay More...
 

Functions

void agt_library_init (void)
 Initialize the agt_library module. More...
 
status_t agt_library_init2 (void)
 Load the modules in the agt_library module. More...
 
void agt_library_cleanup (void)
 Cleanup the agt_library module. More...
 
void agt_library_register_search_fn (agt_library_search_fn_t callback)
 Register a library search result Q processing callback. More...
 
ncxmod_search_result_t * agt_library_mod_revision_count (const xmlChar *modname, uint32 *retcount)
 Get the number of revisions found of 1 module. More...
 
ncxmod_search_result_t * agt_library_find_module (const xmlChar *modname, const xmlChar *version)
 Find the first instance of (modname, version) More...
 

Detailed Description

Handle Library mode if it is configured. The server will disable most operations and instead just publish a YANG library and <get-schema> for all the modules it can find in its –modpath

Typedef Documentation

◆ agt_library_search_fn_t

typedef status_t(* agt_library_search_fn_t) (dlq_hdr_t *modibQ)

for the list of subsystems requesting or in progress for a config load or replay

agt_librarb_search_fn

Process a queue of search results and add to the library as 'imported' modules

Parameters
modlibQQ of ncxmod_search_result_t to process
Returns
status

Function Documentation

◆ agt_library_cleanup()

void agt_library_cleanup ( void  )

Cleanup the agt_library module.

Called by the server during shutdown.

Here is the call graph for this function:

◆ agt_library_find_module()

ncxmod_search_result_t* agt_library_find_module ( const xmlChar *  modname,
const xmlChar *  version 
)

Find the first instance of (modname, version)

Parameters
modnamemodule name to find
versionrevision string (may be NULL)
Returns
first found instance or NULL if none found
Here is the call graph for this function:

◆ agt_library_init()

void agt_library_init ( void  )

Initialize the agt_library module.

Start library mode, phase 1 init

Here is the call graph for this function:

◆ agt_library_init2()

status_t agt_library_init2 ( void  )

Load the modules in the agt_library module.

Returns
NO_ERR if all okay
Here is the call graph for this function:

◆ agt_library_mod_revision_count()

ncxmod_search_result_t* agt_library_mod_revision_count ( const xmlChar *  modname,
uint32 *  retcount 
)

Get the number of revisions found of 1 module.

Parameters
modnamemodule name to find
retcountaddress of return count
Return values
*retcountnumber of revisions found
Returns
last found instance or NULL if none found

◆ agt_library_register_search_fn()

void agt_library_register_search_fn ( agt_library_search_fn_t  callback)

Register a library search result Q processing callback.

Parameters
callbackcallback to register