From bc27b7a9e44f2af647b87ab393b0fd1cacd211cf Mon Sep 17 00:00:00 2001 From: Niels de Vos Date: Fri, 15 Mar 2013 10:26:53 +0100 Subject: store: move glusterd_store functions from mgmt/glusterd to libglusterfs Making the glusterd_store_* functions re-usable will help with future changes that need to read/write lists of items. BUG: 904065 Change-Id: I99fb8eced76d12d5a254567eccff9790b43d8da3 Signed-off-by: Niels de Vos Reviewed-on: http://review.gluster.org/4676 Reviewed-by: Krishnan Parthasarathi Tested-by: Gluster Build System Reviewed-by: Vijay Bellur --- xlators/mgmt/glusterd/src/glusterd-store.h | 23 ----------------------- 1 file changed, 23 deletions(-) (limited to 'xlators/mgmt/glusterd/src/glusterd-store.h') diff --git a/xlators/mgmt/glusterd/src/glusterd-store.h b/xlators/mgmt/glusterd/src/glusterd-store.h index 942522c4a..e4f9e4a0a 100644 --- a/xlators/mgmt/glusterd/src/glusterd-store.h +++ b/xlators/mgmt/glusterd/src/glusterd-store.h @@ -82,32 +82,12 @@ typedef enum glusterd_store_ver_ac_{ } while (0); \ -typedef enum { - GD_STORE_SUCCESS, - GD_STORE_KEY_NULL, - GD_STORE_VALUE_NULL, - GD_STORE_KEY_VALUE_NULL, - GD_STORE_EOF, - GD_STORE_ENOMEM, - GD_STORE_STAT_FAILED -} glusterd_store_op_errno_t; - int32_t glusterd_store_volinfo (glusterd_volinfo_t *volinfo, glusterd_volinfo_ver_ac_t ac); int32_t glusterd_store_delete_volume (glusterd_volinfo_t *volinfo); -int32_t -glusterd_store_handle_new (char *path, glusterd_store_handle_t **handle); - -int32_t -glusterd_store_save_value (int fd, char *key, char *value); - -int32_t -glusterd_store_retrieve_value (glusterd_store_handle_t *handle, - char *key, char **value); - int32_t glusterd_retrieve_uuid (); @@ -121,9 +101,6 @@ int32_t glusterd_store_delete_brick (glusterd_brickinfo_t *brickinfo, char *delete_path); -int32_t -glusterd_store_handle_destroy (glusterd_store_handle_t *handle); - int32_t glusterd_restore (); -- cgit