yumapro  24.10-3
YumaPro SDK
Loading...
Searching...
No Matches
Definition Registry

Provides fast tiered lookup for data structures used to process NCX messages. More...

Collaboration diagram for Definition Registry:

Functions

void def_reg_init (void)
 Initialize the def_reg module. More...
 
void def_reg_cleanup (void)
 Cleanup all the malloced memory in this module and return the module to an uninitialized state. More...
 
status_t def_reg_add_ns (xmlns_t *ns)
 add one xmlns_t to the registry More...
 
xmlns_tdef_reg_find_ns (const xmlChar *nsname)
 find one xmlns_t in the registry find a xmlns_t by its value (name) More...
 
void def_reg_del_ns (const xmlChar *nsname)
 unregister a xmlns_t delete one ncx_module from the registry More...
 
status_t def_reg_add_scb (int fd, ses_cb_t *scb)
 add one FD to SCB mapping to the registry More...
 
ses_cb_tdef_reg_find_scb (int fd)
 find one FD-to-SCB mapping in the registry More...
 
void def_reg_del_scb (int fd)
 delete one FD to SCB mapping from the registry More...
 
status_t def_reg_add_modcache (ncx_modcache_t *mc)
 add one module info cache to the registry More...
 
ncx_modcache_tdef_reg_find_modcache (const xmlChar *modname)
 find one modcache_t in the registry More...
 
void def_reg_del_modcache (const xmlChar *modname)
 unregister a modcache_t delete one module cache record from the registry More...
 
status_t def_reg_add_must_visit (xpath_pcb_t *must, val_value_t *curval)
 add one MUST visit to the registry. More...
 
boolean def_reg_find_must_visit (xpath_pcb_t *must, val_value_t *curval)
 find one must visit find a vist by curval value and must PCB expression value More...
 
void def_reg_clean_must_visit (void)
 unregister all must visits entries delete all from the registry More...
 

Detailed Description

Provides fast tiered lookup for data structures used to process NCX messages.

The data structures 'pointed to' by these registry entries are not managed in this module. Deleting a registry entry will not delete the 'pointed to' data structure.

   Entry types

   NS:
     Namespace to Module Lookup
     Key: namespace URI
     Data: module name and back pointer

   FD:
     File Desscriptor ID to Session Control Block Ptr
     Key: File Descriptor Index
     Data: Session Ptr attached to that FD

Function Documentation

◆ def_reg_add_modcache()

status_t def_reg_add_modcache ( ncx_modcache_t mc)

add one module info cache to the registry

Parameters
mcmodule cache record to add
Returns
status
Here is the caller graph for this function:

◆ def_reg_add_must_visit()

status_t def_reg_add_must_visit ( xpath_pcb_t must,
val_value_t curval 
)

add one MUST visit to the registry.

Based on current MUST statement expression, curval name

Parameters
mustXPath MUST stmt control block
curvalvalue for the must-stmt
Returns
status of the operation
Here is the call graph for this function:

◆ def_reg_add_ns()

status_t def_reg_add_ns ( xmlns_t ns)

add one xmlns_t to the registry

Parameters
nsnamespace record to add
Returns
status of the operation

◆ def_reg_add_scb()

status_t def_reg_add_scb ( int  fd,
ses_cb_t scb 
)

add one FD to SCB mapping to the registry

Parameters
fdfile descriptor to add
scbses_cb_t for the session
Returns
status of the operation

◆ def_reg_clean_must_visit()

void def_reg_clean_must_visit ( void  )

unregister all must visits entries delete all from the registry

Here is the call graph for this function:
Here is the caller graph for this function:

◆ def_reg_cleanup()

void def_reg_cleanup ( void  )

Cleanup all the malloced memory in this module and return the module to an uninitialized state.

After this fn, the def_reg_init fn could be called again

Here is the call graph for this function:
Here is the caller graph for this function:

◆ def_reg_del_modcache()

void def_reg_del_modcache ( const xmlChar *  modname)

unregister a modcache_t delete one module cache record from the registry

Parameters
modnamemodule name to delete
Here is the call graph for this function:

◆ def_reg_del_ns()

void def_reg_del_ns ( const xmlChar *  nsname)

unregister a xmlns_t delete one ncx_module from the registry

Parameters
nsnamenamespace name to delete
Here is the call graph for this function:
Here is the caller graph for this function:

◆ def_reg_del_scb()

void def_reg_del_scb ( int  fd)

delete one FD to SCB mapping from the registry

Parameters
fdfile descriptor index to delete
Here is the call graph for this function:
Here is the caller graph for this function:

◆ def_reg_find_modcache()

ncx_modcache_t * def_reg_find_modcache ( const xmlChar *  modname)

find one modcache_t in the registry

Parameters
modnamemodule name to find
Returns
pointer to modcachet or NULL if not found
Here is the caller graph for this function:

◆ def_reg_find_must_visit()

boolean def_reg_find_must_visit ( xpath_pcb_t must,
val_value_t curval 
)

find one must visit find a vist by curval value and must PCB expression value

Parameters
mustXPath MUST stmt control block
curvalcurrent value to use
Returns
TRUE if value found; FALSE otherwise
Here is the call graph for this function:

◆ def_reg_find_ns()

xmlns_t * def_reg_find_ns ( const xmlChar *  nsname)

find one xmlns_t in the registry find a xmlns_t by its value (name)

Parameters
nsnamenamespace ID to find (by URI)
Returns
pointer to xmlns_t or NULL if not found
Here is the caller graph for this function:

◆ def_reg_find_scb()

ses_cb_t * def_reg_find_scb ( int  fd)

find one FD-to-SCB mapping in the registry

Parameters
fdfile descriptor ID to find
Returns
pointer to ses_cb_t or NULL if not found
Here is the caller graph for this function:

◆ def_reg_init()

void def_reg_init ( void  )

Initialize the def_reg module.

Here is the call graph for this function:
Here is the caller graph for this function: