summaryrefslogtreecommitdiffstats
path: root/utils/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'utils/common.h')
-rw-r--r--utils/common.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/utils/common.h b/utils/common.h
index 2d1202a..02940c0 100644
--- a/utils/common.h
+++ b/utils/common.h
@@ -16,6 +16,13 @@
# include "block.h"
+typedef struct blockServerDef {
+ size_t nhosts;
+ char **hosts;
+} blockServerDef;
+typedef blockServerDef *blockServerDefPtr;
+
+
static const char *const JsonResponseFormatLookup[] = {
[GB_JSON_NONE] = "",
@@ -82,4 +89,8 @@ char* glusterBlockFormatSize(const char *dom, size_t bytes);
int convertStringToTrillianParse(const char *opt);
+void blockServerDefFree(blockServerDefPtr blkServers);
+
+bool blockhostIsValid(char *status);
+
# endif /* _COMMON_H */