Provides fast tiered lookup for data structures used to process NCX messages.
More...
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
◆ def_reg_add_modcache()
add one module info cache to the registry
- Parameters
-
mc | module cache record to add |
- Returns
- status
◆ def_reg_add_must_visit()
add one MUST visit to the registry.
Based on current MUST statement expression, curval name
- Parameters
-
must | XPath MUST stmt control block |
curval | value for the must-stmt |
- Returns
- status of the operation
◆ def_reg_add_ns()
add one xmlns_t to the registry
- Parameters
-
ns | namespace record to add |
- Returns
- status of the operation
◆ def_reg_add_scb()
add one FD to SCB mapping to the registry
- Parameters
-
fd | file descriptor to add |
scb | ses_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
◆ 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
◆ 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
-
modname | module name to delete |
◆ def_reg_del_ns()
void def_reg_del_ns |
( |
const xmlChar * |
nsname | ) |
|
unregister a xmlns_t delete one ncx_module from the registry
- Parameters
-
nsname | namespace name to delete |
◆ def_reg_del_scb()
void def_reg_del_scb |
( |
int |
fd | ) |
|
delete one FD to SCB mapping from the registry
- Parameters
-
fd | file descriptor index to delete |
◆ def_reg_find_modcache()
find one modcache_t in the registry
- Parameters
-
modname | module name to find |
- Returns
- pointer to modcachet or NULL if not found
◆ def_reg_find_must_visit()
find one must visit find a vist by curval value and must PCB expression value
- Parameters
-
must | XPath MUST stmt control block |
curval | current value to use |
- Returns
- TRUE if value found; FALSE otherwise
◆ 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
-
nsname | namespace ID to find (by URI) |
- Returns
- pointer to xmlns_t or NULL if not found
◆ def_reg_find_scb()
find one FD-to-SCB mapping in the registry
- Parameters
-
fd | file descriptor ID to find |
- Returns
- pointer to ses_cb_t or NULL if not found
◆ def_reg_init()
void def_reg_init |
( |
void |
| ) |
|
Initialize the def_reg module.