diff options
author | Pranith Kumar K <pranithk@gluster.com> | 2011-09-07 21:26:41 +0530 |
---|---|---|
committer | Vijay Bellur <vijay@gluster.com> | 2011-09-14 05:36:06 -0700 |
commit | 3bea46c1f232a4480e57ac482f92f7673af7034f (patch) | |
tree | a8f180fa1ad4ffb1fce6ee5c83ffb3161c003d42 /libglusterfs/src/dict.h | |
parent | 78dee45ef829296dbcb4cf28e06feb8e25458c91 (diff) |
dict: add reset function which empties the dict
Change-Id: I267c81a129197534fb318671eafb76e144a15c8c
BUG: 2458
Reviewed-on: http://review.gluster.com/402
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Vijay Bellur <vijay@gluster.com>
Diffstat (limited to 'libglusterfs/src/dict.h')
-rw-r--r-- | libglusterfs/src/dict.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libglusterfs/src/dict.h b/libglusterfs/src/dict.h index e56c1b9a81f..462397885d2 100644 --- a/libglusterfs/src/dict.h +++ b/libglusterfs/src/dict.h @@ -146,6 +146,8 @@ dict_t *dict_copy (dict_t *this, dict_t *new); GF_MUST_CHECK dict_t *dict_new (void); dict_t *dict_copy_with_ref (dict_t *this, dict_t *new); +GF_MUST_CHECK int dict_reset (dict_t *dict); + GF_MUST_CHECK int dict_get_int8 (dict_t *this, char *key, int8_t *val); GF_MUST_CHECK int dict_set_int8 (dict_t *this, char *key, int8_t val); |