Changed hash API for better error handling
This commit is contained in:
parent
0f359676b1
commit
cdbce7645e
10 changed files with 125 additions and 73 deletions
|
|
@ -50,9 +50,8 @@ clicon_hash_t hash_lookup (clicon_hash_t *head, const char *key);
|
|||
void *hash_value (clicon_hash_t *head, const char *key, size_t *vlen);
|
||||
clicon_hash_t hash_add (clicon_hash_t *head, const char *key, void *val, size_t vlen);
|
||||
int hash_del (clicon_hash_t *head, const char *key);
|
||||
void hash_dump(clicon_hash_t *head, FILE *f);
|
||||
char **hash_keys(clicon_hash_t *hash, size_t *nkeys);
|
||||
|
||||
int hash_dump(clicon_hash_t *head, FILE *f);
|
||||
int hash_keys(clicon_hash_t *hash, char ***vector, size_t *nkeys);
|
||||
|
||||
/*
|
||||
* Macros to iterate over hash contents.
|
||||
|
|
|
|||
|
|
@ -79,7 +79,7 @@ enum startup_mode_t{
|
|||
*/
|
||||
|
||||
/* Print registry on file. For debugging. */
|
||||
void clicon_option_dump(clicon_handle h, int dblevel);
|
||||
int clicon_option_dump(clicon_handle h, int dblevel);
|
||||
|
||||
/* Add a clicon options overriding file setting */
|
||||
int clicon_option_add(clicon_handle h, char *name, char *value);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue