![]() |
fuse_kafka
|
Go to the source code of this file.
Defines | |
| #define | SERVER_LIST_DEFAULT_MAX_SIZE 10 |
Functions | |
| int | string_list_contains (string_list **servers, char *string) |
| Public: checks if the list contains a string. | |
| int | string_list_new (string_list **servers) |
| creates a new string_list | |
| void | string_list_free (string_list **servers) |
| deletes the server list | |
| int | string_list_resize (string_list **servers) |
| resizes the server list | |
| int | string_list_add (string_list **servers, char *string) |
| adds a string to the servers list | |
| int | string_list_add_once (string_list **servers, char *string) |
| add item to list if it is not in it already | |
Allows to maintain a server list to check that these servers are not added; Currently, there is no parsing of the string argument given. In the future there might be (to handle server lists) ala zookeeper
Definition in file string_list.c.
| int string_list_add | ( | string_list ** | servers, |
| char * | string | ||
| ) |
adds a string to the servers list
Definition at line 74 of file string_list.c.
| int string_list_add_once | ( | string_list ** | servers, |
| char * | string | ||
| ) |
add item to list if it is not in it already
Definition at line 96 of file string_list.c.
| int string_list_contains | ( | string_list ** | servers, |
| char * | string | ||
| ) |
Public: checks if the list contains a string.
| servers | a pointer to the string_list |
Definition at line 16 of file string_list.c.
| int string_list_new | ( | string_list ** | servers | ) |
creates a new string_list
Definition at line 31 of file string_list.c.
| int string_list_resize | ( | string_list ** | servers | ) |
resizes the server list
Definition at line 59 of file string_list.c.
1.7.6.1