nfs-ganesha 1.4
Classes | Typedefs | Functions

NODELIST_IDS_LIST

Classes

struct  nodelist_idlist
 structure that represent a range of long int value More...

Typedefs

typedef struct nodelist_idlist nodelist_idlist_t
 structure that represent a range of long int value

Functions

int nodelist_idlist_init (nodelist_idlist_t *idlist, char **lists, int lists_nb)
 Initialize a bridge ids list structure.
int nodelist_idlist_free_contents (nodelist_idlist_t *idlist)
 Free a bridge ids list structure.
int nodelist_idlist_add_ids (nodelist_idlist_t *idlist, char *list)
 Add a ids list to a bridge ids list structure.
long int nodelist_idlist_ids_quantity (nodelist_idlist_t *idlist)
 Get ids quantity.
int nodelist_idlist_get_extended_string (nodelist_idlist_t *idlist, char **p_string)
 Get extended ids string.
int nodelist_idlist_get_compacted_string (nodelist_idlist_t *idlist, char **p_string)
 Get compacted ids string.

Typedef Documentation

structure that represent a range of long int value


Function Documentation

int nodelist_idlist_add_ids ( nodelist_idlist_t idlist,
char *  list 
)

Add a ids list to a bridge ids list structure.

Parameters:
idlistpointer on a bridge ids list structure
listids list to add to this bridge ids list
Return values:
npadding length if operation successfully done
-1operation failed
int nodelist_idlist_free_contents ( nodelist_idlist_t idlist)

Free a bridge ids list structure.

Parameters:
idlistpointer on a bridge ids list structure to finalize
Return values:
0operation successfully done
-1operation failed
int nodelist_idlist_get_compacted_string ( nodelist_idlist_t idlist,
char **  p_string 
)

Get compacted ids string.

Parameters:
idlistpointer on a bridge ids list structure
p_stringpointer on a string that will be allocated and filled with compacted ids list
Return values:
0operation successfully done
-1operation failed
int nodelist_idlist_get_extended_string ( nodelist_idlist_t idlist,
char **  p_string 
)

Get extended ids string.

Parameters:
idlistpointer on a bridge ids list structure
p_stringpointer on a string that will be allocated and filled with ids names
Return values:
0operation successfully done
-1operation failed
long int nodelist_idlist_ids_quantity ( nodelist_idlist_t idlist)

Get ids quantity.

Parameters:
idlistpointer on a bridge ids list structure
Return values:
quantityof ids in this bridge ids list
int nodelist_idlist_init ( nodelist_idlist_t idlist,
char **  lists,
int  lists_nb 
)

Initialize a bridge ids list structure.

Parameters:
idlistpointer on a bridge ids list structure to initialize
listsarray of strings containing ids to add to this list
lists_nbquanity of string in the array
Return values:
0operation successfully done
-1operation failed