summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src/dict.h
diff options
context:
space:
mode:
authorCsaba Henk <csaba@gluster.com>2010-09-23 08:29:14 +0000
committerVijay Bellur <vijay@dev.gluster.com>2010-09-24 03:53:36 -0700
commit7e1b8bb370b4082e66ebe6e458fc45aa653ab3f1 (patch)
treed345ed507ef6d813fd6989da51eb6ee5e7956efc /libglusterfs/src/dict.h
parent406bcbb443aaca1655be9dcb9101a717eafdc061 (diff)
dict: add dict_get_str_boolean() function handily query string-boolean values
Signed-off-by: Csaba Henk <csaba@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 1670 (Volume set enable disable support) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1670
Diffstat (limited to 'libglusterfs/src/dict.h')
-rw-r--r--libglusterfs/src/dict.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libglusterfs/src/dict.h b/libglusterfs/src/dict.h
index 41b6b6780cf..f5c4abd0bdc 100644
--- a/libglusterfs/src/dict.h
+++ b/libglusterfs/src/dict.h
@@ -185,4 +185,5 @@ GF_MUST_CHECK int dict_set_dynmstr (dict_t *this, char *key, char *str);
GF_MUST_CHECK int dict_set_dynstr (dict_t *this, char *key, char *str);
GF_MUST_CHECK int dict_get_str (dict_t *this, char *key, char **str);
+GF_MUST_CHECK int dict_get_str_boolean (dict_t *this, char *key, int default_val);
#endif