38 #define DEALLOC_LIST 1 39 #define NOTOUCH_LIST 0 tricky data structure used for a list of 'items'
item_t * listAppend(list_t *l, char *s)
Utility list that isn't sorted - faster for unpacking archives and maintaining lists of files (we onl...
int s
The socket that the CLI will use to communicate.
void listInit(list_t *l, int size, char *label)
intialize a list, if the list is not empty, empty it (initialize it to zero's).
item_t * listGetItem(list_t *l, char *s)
get an item from the itemlist. If the item is not in the itemlist, then add it to the itemlist...
int listDelete(list_t *l, item_t *p)
Delete an item from list.
int verbose
The verbose flag for the cli.
void listIterationReset(list_t *l)
Rest list ix to -1.
void listSort(list_t *l, int sortType)
Sort the list as per the sortType passed.
list_t type structure used to keep various lists. (e.g. there are multiple lists).
void listDump(list_t *l, int verbose)
print the passed in list
void listClear(list_t *l, int deallocFlag)
Destroy list_t.
item_t * listIterate(list_t *l)
return a pointer to listitem, returns a NULL_ITEM when no more items to return.