From 92430596d697381d5f49ff69eb24d9ff3e291da8 Mon Sep 17 00:00:00 2001 From: Amar Tumballi Date: Wed, 27 Dec 2017 16:14:30 +0530 Subject: dict: add more types for values Added 2 more types which are present in gluster codebase, mainly IATT and UUID. Updates #203 Change-Id: Ib6d6d6aefb88c3494fbf93dcbe08d9979484968f Signed-off-by: Amar Tumballi --- libglusterfs/src/dict.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'libglusterfs/src/dict.h') diff --git a/libglusterfs/src/dict.h b/libglusterfs/src/dict.h index fab609cd31b..dfd4baf25ab 100644 --- a/libglusterfs/src/dict.h +++ b/libglusterfs/src/dict.h @@ -248,6 +248,15 @@ GF_MUST_CHECK int dict_get_str_boolean (dict_t *this, char *key, int default_val GF_MUST_CHECK int dict_rename_key (dict_t *this, char *key, char *replace_key); GF_MUST_CHECK int dict_serialize_value_with_delim (dict_t *this, char *buf, int32_t *serz_len, char delimiter); + +GF_MUST_CHECK int dict_set_gfuuid (dict_t *this, char *key, uuid_t uuid, + bool is_static); +GF_MUST_CHECK int dict_get_gfuuid (dict_t *this, char *key, uuid_t *uuid); + +GF_MUST_CHECK int dict_set_iatt (dict_t *this, char *key, struct iatt *iatt, + bool is_static); +GF_MUST_CHECK int dict_get_iatt (dict_t *this, char *key, struct iatt *iatt); + void dict_dump_to_statedump (dict_t *dict, char *dict_name, char *domain); -- cgit