diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2008-11-09 17:29:15 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2008-11-09 17:29:15 +0000 |
commit | 6c0e77c643e96436d85aebb9195c83cb403c25fa (patch) | |
tree | 647f8a07a77abaf2cb1e692112f7777a3dd44de5 /src/utils/dict.h | |
parent | f3c6e30f43c8e9feec891d68cc3eee99c3ef6264 (diff) | |
download | libhubbub-6c0e77c643e96436d85aebb9195c83cb403c25fa.tar.gz libhubbub-6c0e77c643e96436d85aebb9195c83cb403c25fa.tar.bz2 |
Return errors from dictionary constructor/destructor.
Fix commentary copied from libcss
svn path=/trunk/hubbub/; revision=5663
Diffstat (limited to 'src/utils/dict.h')
-rw-r--r-- | src/utils/dict.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/utils/dict.h b/src/utils/dict.h index 2cde01d..4ea4440 100644 --- a/src/utils/dict.h +++ b/src/utils/dict.h @@ -16,9 +16,10 @@ typedef struct hubbub_dict hubbub_dict; /* Create a dictionary */ -hubbub_dict *hubbub_dict_create(hubbub_alloc alloc, void *pw); +hubbub_error hubbub_dict_create(hubbub_alloc alloc, void *pw, + hubbub_dict **dict); /* Destroy a dictionary */ -void hubbub_dict_destroy(hubbub_dict *dict); +hubbub_error hubbub_dict_destroy(hubbub_dict *dict); /* Insert a key-value pair into a dictionary */ hubbub_error hubbub_dict_insert(hubbub_dict *dict, const char *key, |