yumapro  20.10-14
YumaPro SDK
ncx_list.h File Reference

NCX Module Library List Utility Functions. More...

#include <xmlstring.h>
#include "dlq.h"
#include "ncxtypes.h"
#include "tk.h"
#include "typ.h"
#include "val.h"
#include "xmlns.h"
#include "yang.h"
Include dependency graph for ncx_list.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

ncx_list_tncx_new_list (ncx_btype_t btyp)
 Malloc Initialize an allocated ncx_list_t. More...
 
void ncx_init_list (ncx_list_t *list, ncx_btype_t btyp)
 Initialize an allocated ncx_list_t. More...
 
void ncx_clean_list (ncx_list_t *list)
 Scrub the memory of a ncx_list_t but do not delete it. More...
 
void ncx_free_list (ncx_list_t *list)
 Clean and free an allocated ncx_list_t. More...
 
uint32 ncx_list_cnt (const ncx_list_t *list)
 Get the number of entries in the list. More...
 
uint32 ncx_list_linelen (const ncx_list_t *list)
 Get the length of the string if the list was printed in 1 line with spaces between the entries. More...
 
boolean ncx_list_empty (const ncx_list_t *list)
 Check if the list is empty or not. More...
 
boolean ncx_string_in_list (const xmlChar *str, const ncx_list_t *list)
 Check if the string value is in the list List type must be string based, or an enum. More...
 
int32 ncx_compare_lists (const ncx_list_t *list1, const ncx_list_t *list2)
 Compare 2 ncx_list_t struct contents. More...
 
status_t ncx_copy_list (const ncx_list_t *list1, ncx_list_t *list2)
 Copy the contents of list1 to list2 Supports base type NCX_BT_SLIST. More...
 
void ncx_merge_list (ncx_list_t *src, ncx_list_t *dest, ncx_merge_t mergetyp, boolean allow_dups)
 The merge function is handled specially for lists. More...
 
status_t ncx_replace_list (const ncx_list_t *src, ncx_list_t *dest)
 The replace function is handled specially for lists. More...
 
status_t ncx_set_strlist (const xmlChar *liststr, ncx_list_t *list)
 Consume a generic string list with no type checking. More...
 
status_t ncx_set_list (ncx_btype_t btyp, const xmlChar *strval, ncx_list_t *list)
 consume a generic string list with base type checking Parse the XML input as an NCX_BT_SLIST More...
 
status_t ncx_finish_list (typ_def_t *typdef, ncx_list_t *list)
 2nd pass of parsing a ncx_list_t Finish converting the list members to the proper format More...
 
ncx_lmem_tncx_new_lmem (void)
 Malloc and fill in a new ncx_lmem_t struct. More...
 
void ncx_clean_lmem (ncx_lmem_t *lmem, ncx_btype_t btyp)
 Scrub the memory of a ncx_lmem_t but do not delete it. More...
 
void ncx_free_lmem (ncx_lmem_t *lmem, ncx_btype_t btyp)
 Free all the memory in a ncx_lmem_t struct. More...
 
ncx_lmem_tncx_find_lmem (ncx_list_t *list, const ncx_lmem_t *memval)
 Find a the first matching list member with the specified value. More...
 
void ncx_insert_lmem (ncx_list_t *list, ncx_lmem_t *memval, ncx_merge_t mergetyp)
 Insert a list entry into the specified list. More...
 
uint32 ncx_lmem_count (ncx_list_t *list)
 Return the number of list members. More...
 
ncx_lmem_tncx_first_lmem (ncx_list_t *list)
 Return the first list member. More...
 
ncx_lmem_tncx_next_lmem (ncx_lmem_t *cur)
 Return the next list member. More...
 
status_t ncx_add_strlist (const xmlChar *liststr, uint32 liststrlen, ncx_list_t *list)
 add a string as a complete list member to an initialized list must be type NCX_BT_STRING More...
 
const xmlChar * ncx_get_lmem_strval (const ncx_lmem_t *lmem)
 Get the string value from an lmem must be type NCX_BT_STRING. More...
 
xmlChar * ncx_list_to_string (const ncx_list_t *list)
 Convert a list into a string with spaces between the entries. More...
 

Detailed Description

NCX Module Library List Utility Functions.