yumapro  24.10-1
YumaPro SDK
Loading...
Searching...
No Matches

The modules loaded into a YANG library are represented by queues. More...

Collaboration diagram for Module Queues:

Functions

void ncx_set_cur_modQ (dlq_hdr_t *que)
 Set the current module Q to an alternate (for yangdiff) More...
 
void ncx_reset_modQ (void)
 Set the current module Q to the original ncx_modQ.
 
void ncx_set_session_modQ (dlq_hdr_t *que)
 Get the session module Q. More...
 
dlq_hdr_t * ncx_get_session_modQ (void)
 Get the current session modQ. More...
 
void ncx_clear_session_modQ (void)
 Clear the current session modQ. More...
 
void ncx_set_temp_modQ (dlq_hdr_t *modQ)
 Set the temp_modQ for yangcli session-specific module list. More...
 
dlq_hdr_t * ncx_get_temp_modQ (void)
 Get the temp_modQ for yangcli session-specific module list. More...
 
void ncx_clear_temp_modQ (void)
 Clear the temp_modQ for yangcli session-specific module list. More...
 

Detailed Description

The modules loaded into a YANG library are represented by queues.

These queues are OK for a single server instance. They will not work later for virtual server instances.

Function Documentation

◆ ncx_clear_session_modQ()

void ncx_clear_session_modQ ( void  )

Clear the current session modQ.

!!! THIS HACK IS NEEDED BECAUSE val.c !!! USES ncx_find_module sometimes, and !!! yangcli sessions are not loaded into the !!! main database of modules. !!! THIS DOES NOT WORK FOR MULTIPLE CONCURRENT PROCESSES

Clear the current session module Q

◆ ncx_clear_temp_modQ()

void ncx_clear_temp_modQ ( void  )

Clear the temp_modQ for yangcli session-specific module list.

◆ ncx_get_session_modQ()

dlq_hdr_t * ncx_get_session_modQ ( void  )

Get the current session modQ.

Returns
que for session-specific loaded modules

◆ ncx_get_temp_modQ()

dlq_hdr_t * ncx_get_temp_modQ ( void  )

Get the temp_modQ for yangcli session-specific module list.

Returns
pointer to the temp modQ, if set

◆ ncx_set_cur_modQ()

void ncx_set_cur_modQ ( dlq_hdr_t *  que)

Set the current module Q to an alternate (for yangdiff)

This will be used for module searches usually in ncx_modQ

Parameters
queQ of ncx_module_t to use
Here is the caller graph for this function:

◆ ncx_set_session_modQ()

void ncx_set_session_modQ ( dlq_hdr_t *  que)

Get the session module Q.

!!! THIS HACK IS NEEDED BECAUSE val.c !!! USES ncx_find_module sometimes, and !!! yangcli sessions are not loaded into the !!! main database of modules. !!! THIS DOES NOT WORK FOR MULTIPLE CONCURRENT PROCESSES

Set the current session module Q to an alternate (for yangdiff) This will be used for module searches usually in ncx_modQ

Parameters
queQ of ncx_module_t to use

◆ ncx_set_temp_modQ()

void ncx_set_temp_modQ ( dlq_hdr_t *  modQ)

Set the temp_modQ for yangcli session-specific module list.

Parameters
modQnew Q pointer to use