diff options
Diffstat (limited to 'libglusterfs')
-rw-r--r-- | libglusterfs/src/dict.c | 6 | ||||
-rw-r--r-- | libglusterfs/src/dict.h | 4 |
2 files changed, 7 insertions, 3 deletions
diff --git a/libglusterfs/src/dict.c b/libglusterfs/src/dict.c index 3d8b5d8fef..31867588de 100644 --- a/libglusterfs/src/dict.c +++ b/libglusterfs/src/dict.c @@ -1122,8 +1122,8 @@ dict_remove_foreach_fn (dict_t *d, char *k, return 0; } -static inline gf_boolean_t -match_everything (dict_t *d, char *k, data_t *v, void *data) +gf_boolean_t +dict_match_everything (dict_t *d, char *k, data_t *v, void *data) { return _gf_true; } @@ -1138,7 +1138,7 @@ dict_foreach (dict_t *dict, { int ret = 0; - ret = dict_foreach_match (dict, match_everything, NULL, fn, data); + ret = dict_foreach_match (dict, dict_match_everything, NULL, fn, data); if (ret > 0) ret = 0; diff --git a/libglusterfs/src/dict.h b/libglusterfs/src/dict.h index 66a900131d..a4c1815d06 100644 --- a/libglusterfs/src/dict.h +++ b/libglusterfs/src/dict.h @@ -95,6 +95,8 @@ struct _dict { gf_boolean_t free_pair_in_use; }; +typedef gf_boolean_t (*dict_match_t) (dict_t *d, char *k, data_t *v, + void *data); int32_t is_data_equal (data_t *one, data_t *two); void data_destroy (data_t *data); @@ -255,4 +257,6 @@ dict_dump_to_log (dict_t *dict); int dict_dump_to_str (dict_t *dict, char *dump, int dumpsize, char *format); +gf_boolean_t +dict_match_everything (dict_t *d, char *k, data_t *v, void *data); #endif |