[sheepdog] [PATCH v5 05/16] sheep: store.c don't include farm.h

Kai Zhang kyle at zelin.io
Mon May 20 09:50:35 CEST 2013


Signed-off-by: Kai Zhang <kyle at zelin.io>
---
 sheep/sheep_priv.h |    6 +++---
 sheep/store.c      |    1 -
 2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/sheep/sheep_priv.h b/sheep/sheep_priv.h
index b66f348..1c33a3d 100644
--- a/sheep/sheep_priv.h
+++ b/sheep/sheep_priv.h
@@ -26,6 +26,9 @@
 #include "rbtree.h"
 #include "strbuf.h"
 
+#define HEX_LEN  40
+#define NAME_LEN HEX_LEN
+
 struct client_info {
 	struct connection conn;
 
@@ -160,10 +163,7 @@ struct store_driver {
 	int (*update_epoch)(uint32_t epoch);
 	int (*purge_obj)(void);
 	/* Operations for snapshot */
-	int (*snapshot)(const struct siocb *);
 	int (*cleanup)(void);
-	int (*restore)(const struct siocb *);
-	int (*get_snap_file)(struct siocb *);
 };
 
 int default_init(void);
diff --git a/sheep/store.c b/sheep/store.c
index 28e2ab7..4bcdaca 100644
--- a/sheep/store.c
+++ b/sheep/store.c
@@ -26,7 +26,6 @@
 #include "sheep_priv.h"
 #include "strbuf.h"
 #include "util.h"
-#include "farm/farm.h"
 
 char *obj_path;
 char *epoch_path;
-- 
1.7.1




More information about the sheepdog mailing list