nfs-ganesha 1.4
|
Classes | |
struct | nodelist_rangelist |
structure that represent a range of long int value More... | |
Typedefs | |
typedef struct nodelist_rangelist | nodelist_rangelist_t |
structure that represent a range of long int value | |
Functions | |
int | nodelist_rangelist_init (nodelist_rangelist_t *array) |
Initialize a bridge ranges array structure. | |
int | nodelist_rangelist_init_by_copy (nodelist_rangelist_t *array, nodelist_rangelist_t *a2c) |
Initialize a bridge ranges array structure by duplicating an other one. | |
int | nodelist_rangelist_free_contents (nodelist_rangelist_t *array) |
Free a bridge ranges array structure contents. | |
int | nodelist_rangelist_incremente_size (nodelist_rangelist_t *array) |
Increment a bridge ranges array storage zone. | |
int | nodelist_rangelist_add_range (nodelist_rangelist_t *array, nodelist_range_t *r) |
Add a range to a bridge ranges array The range will be merge with already existing ranges if required and resulting ranges will be sorted. | |
int | nodelist_rangelist_add_list (nodelist_rangelist_t *array, char *list) |
Add a list of values to a bridge ranges array The range will be merge with already existing ranges if required and resulting ranges will be sorted. | |
int | nodelist_rangelist_sort (nodelist_rangelist_t *array) |
Sort a bridge ranges array. |
typedef struct nodelist_rangelist nodelist_rangelist_t |
structure that represent a range of long int value
int nodelist_rangelist_add_list | ( | nodelist_rangelist_t * | array, |
char * | list | ||
) |
Add a list of values to a bridge ranges array The range will be merge with already existing ranges if required and resulting ranges will be sorted.
array | pointer on a bridge ranges array structure to use for add-on |
list | values list that must be added (pattern [*,*-*...]) |
n | padding if operation successfully done |
-1 | operation failed |
Definition at line 397 of file nodelist_range.c.
int nodelist_rangelist_add_range | ( | nodelist_rangelist_t * | array, |
nodelist_range_t * | r | ||
) |
Add a range to a bridge ranges array The range will be merge with already existing ranges if required and resulting ranges will be sorted.
array | pointer on a bridge ranges array structure to use for add-on |
r | range that will be add to the array |
0 | operation successfully done |
-1 | operation failed |
Definition at line 215 of file nodelist_range.c.
int nodelist_rangelist_free_contents | ( | nodelist_rangelist_t * | array | ) |
Free a bridge ranges array structure contents.
array | pointer on a bridge ranges array structure to finalize |
0 | operation successfully done |
-1 | operation failed |
Definition at line 188 of file nodelist_range.c.
int nodelist_rangelist_incremente_size | ( | nodelist_rangelist_t * | array | ) |
Increment a bridge ranges array storage zone.
array | pointer on a bridge ranges array structure to increment |
0 | operation successfully done |
-1 | operation failed |
Definition at line 201 of file nodelist_range.c.
int nodelist_rangelist_init | ( | nodelist_rangelist_t * | array | ) |
Initialize a bridge ranges array structure.
array | pointer on a bridge ranges array structure to initialize |
0 | operation successfully done |
-1 | operation failed |
Definition at line 146 of file nodelist_range.c.
int nodelist_rangelist_init_by_copy | ( | nodelist_rangelist_t * | array, |
nodelist_rangelist_t * | a2c | ||
) |
Initialize a bridge ranges array structure by duplicating an other one.
array | pointer on a bridge ranges array structure to initialize |
0 | operation successfully done |
-1 | operation failed |
Definition at line 165 of file nodelist_range.c.
int nodelist_rangelist_sort | ( | nodelist_rangelist_t * | array | ) |
Sort a bridge ranges array.
array | pointer on a bridge ranges array structure to sort |
0 | operation successfully done |
-1 | operation failed |
Definition at line 518 of file nodelist_range.c.