|
nfs-ganesha 1.4
|
Classes | |
| struct | nodelist_nodelist |
| structure that represent a range of long int value More... | |
Defines | |
| #define | VERSUS_OPERATION_INCLUDE 1 |
| Check a nodes list versus another one according to required operation operation can be inclusion or intersection. | |
| #define | VERSUS_OPERATION_INTERSECT 2 |
Typedefs | |
| typedef struct nodelist_nodelist | nodelist_nodelist_t |
| structure that represent a range of long int value | |
Functions | |
| int | nodelist_nodelist_init (nodelist_nodelist_t *nodelist, char **lists, int lists_nb) |
| Initialize a bridge nodes list structure. | |
| int | nodelist_nodelist_free_contents (nodelist_nodelist_t *nodelist) |
| Free a bridge nodes list structure. | |
| int | nodelist_nodelist_add_nodes (nodelist_nodelist_t *nodelist, char *list) |
| Add a nodes list to a bridge nodes list structure. | |
| int | nodelist_nodelist_versus_second_list (nodelist_nodelist_t *nodelist, nodelist_nodelist_t *second_list, int operation) |
| long int | nodelist_nodelist_nodes_quantity (nodelist_nodelist_t *nodelist) |
| Get nodes quantity. | |
| int | nodelist_nodelist_get_extended_string (nodelist_nodelist_t *nodelist, char **p_string) |
| Get extended nodes string. | |
| int | nodelist_nodelist_get_compacted_string (nodelist_nodelist_t *nodelist, char **p_string) |
| Get compacted nodes string. | |
| int | nodelist_common_condensed2extended_nodelist (char *src_list, char **p_dst_list) |
| Get an extended nodes list based on a compacted one. | |
| int | nodelist_common_extended2condensed_nodelist (char *src_list, char **p_dst_list) |
| Get an compacted nodes list based on a extended one. | |
| #define VERSUS_OPERATION_INCLUDE 1 |
Check a nodes list versus another one according to required operation operation can be inclusion or intersection.
| nodelist | pointer on the first bridge nodes list structure |
| nodelist | pointer on the second bridge nodes list structure |
| operation | on of VERSUS_OPERATION_INCLUDE or VERSUS_OPERATION_INTERSECT |
| 0 | operation successfully done |
| -1 | operation failed |
Definition at line 499 of file nodelist.h.
| #define VERSUS_OPERATION_INTERSECT 2 |
Definition at line 500 of file nodelist.h.
| typedef struct nodelist_nodelist nodelist_nodelist_t |
structure that represent a range of long int value
| int nodelist_common_condensed2extended_nodelist | ( | char * | src_list, |
| char ** | p_dst_list | ||
| ) |
Get an extended nodes list based on a compacted one.
| src_list | compacted (or not) nodes list |
| p_dst_list | extended nodes list |
| n | nodes quantity if operation successfully done |
| -1 | operation failed |
Definition at line 210 of file nodelist_common.c.
| int nodelist_common_extended2condensed_nodelist | ( | char * | src_list, |
| char ** | p_dst_list | ||
| ) |
Get an compacted nodes list based on a extended one.
| src_list | extended (or not) nodes list |
| p_dst_list | compacted nodes list |
| n | nodes quantity if operation successfully done |
| -1 | operation failed |
Definition at line 164 of file nodelist_common.c.
| int nodelist_nodelist_add_nodes | ( | nodelist_nodelist_t * | nodelist, |
| char * | list | ||
| ) |
Add a nodes list to a bridge nodes list structure.
| nodelist | pointer on a bridge nodes list structure |
| list | nodes list to add to this bridge nodes list |
| 0 | operation successfully done |
| -1 | operation failed |
Definition at line 693 of file nodelist.c.
| int nodelist_nodelist_free_contents | ( | nodelist_nodelist_t * | nodelist | ) |
Free a bridge nodes list structure.
| nodelist | pointer on a bridge nodes list structure to finalize |
| 0 | operation successfully done |
| -1 | operation failed |
Definition at line 384 of file nodelist.c.
| int nodelist_nodelist_get_compacted_string | ( | nodelist_nodelist_t * | nodelist, |
| char ** | p_string | ||
| ) |
Get compacted nodes string.
| nodelist | pointer on a bridge nodes list structure |
| p_string | pointer on a string that will be allocated and filled with compacted nodes list |
| 0 | operation successfully done |
| -1 | operation failed |
Definition at line 997 of file nodelist.c.
| int nodelist_nodelist_get_extended_string | ( | nodelist_nodelist_t * | nodelist, |
| char ** | p_string | ||
| ) |
Get extended nodes string.
| nodelist | pointer on a bridge nodes list structure |
| p_string | pointer on a string that will be allocated and filled with nodes names |
| 0 | operation successfully done |
| -1 | operation failed |
Definition at line 890 of file nodelist.c.
| int nodelist_nodelist_init | ( | nodelist_nodelist_t * | nodelist, |
| char ** | lists, | ||
| int | lists_nb | ||
| ) |
Initialize a bridge nodes list structure.
| nodelist | pointer on a bridge nodes list structure to initialize |
| lists | array of strings containing nodes to add to this list |
| lists_nb | quanity of string in the array |
| 0 | operation successfully done |
| -1 | operation failed |
Definition at line 323 of file nodelist.c.
| long int nodelist_nodelist_nodes_quantity | ( | nodelist_nodelist_t * | nodelist | ) |
Get nodes quantity.
| nodelist | pointer on a bridge nodes list structure |
| quantity | of nodes in this bridge nodes list |
Definition at line 872 of file nodelist.c.
| int nodelist_nodelist_versus_second_list | ( | nodelist_nodelist_t * | nodelist, |
| nodelist_nodelist_t * | second_list, | ||
| int | operation | ||
| ) |
1.7.3