yumapro  20.10-10
YumaPro SDK
YANG Bit Statement (ncx_bit_t)

YANG bit statement handling. More...

Collaboration diagram for YANG Bit Statement (ncx_bit_t):

Functions

void ncx_init_bit (ncx_bit_t *bit)
 Init the memory of a ncx_bit_t. More...
 
void ncx_clean_bit (ncx_bit_t *bit)
 Scrub the memory of a ncx_bit_t but do not delete it. More...
 
int32 ncx_compare_bits (const ncx_bit_t *bitone, const ncx_bit_t *bittwo)
 Compare 2 bit values by their schema order position. More...
 

Detailed Description

YANG bit statement handling.

The ncx_list_t is also used to handle NCX_BT_BITS data type.

Function Documentation

void ncx_clean_bit ( ncx_bit_t bit)

Scrub the memory of a ncx_bit_t but do not delete it.

Parameters
bitncx_bit_t struct to clean

Here is the caller graph for this function:

int32 ncx_compare_bits ( const ncx_bit_t bitone,
const ncx_bit_t bittwo 
)

Compare 2 bit values by their schema order position.

Parameters
bitonefirst ncx_bit_t check
bittwosecond ncx_bit_t check
Returns
bit compare status
      -1 if bitone is < bittwo
       0 if bitone == bittwo
       1 if bitone is > bittwo

Here is the caller graph for this function:

void ncx_init_bit ( ncx_bit_t bit)

Init the memory of a ncx_bit_t.

Parameters
bitncx_bit_t struct to init