Added .h for dump.
authorBrian Aker <brian@gaz>
Thu, 17 Dec 2009 23:46:32 +0000 (15:46 -0800)
committerBrian Aker <brian@gaz>
Thu, 17 Dec 2009 23:46:32 +0000 (15:46 -0800)
libmemcached/Makefile.am
libmemcached/dump.c
libmemcached/dump.h [new file with mode: 0644]
libmemcached/memcached.h

index e85fecb770ec75862185148a71fe155979d6cfde..0a21a5dfd87cb92b910a860606ec2e816df99441 100644 (file)
@@ -23,6 +23,7 @@ pkginclude_HEADERS= \
                    behavior.h \
                    callback.h \
                    constants.h \
+                   dump.h \
                    exception.hpp \
                    get.h \
                    memcached.h \
index a79f95c5f55730065b9aa5c5fc639465fbee3ad8..3db6784d7bf89c13087a8c7149ddc9dce4ab69c0 100644 (file)
@@ -88,4 +88,3 @@ memcached_return_t memcached_dump(memcached_st *ptr, memcached_dump_fn *callback
 
   return ascii_dump(ptr, callback, context, number_of_callbacks);
 }
-
diff --git a/libmemcached/dump.h b/libmemcached/dump.h
new file mode 100644 (file)
index 0000000..3b3d11d
--- /dev/null
@@ -0,0 +1,27 @@
+/* LibMemcached
+ * Copyright (C) 2006-2009 Brian Aker
+ * All rights reserved.
+ *
+ * Use and distribution licensed under the BSD license.  See
+ * the COPYING file in the parent directory for full text.
+ *
+ * Summary: Simple method for dumping data from Memcached.
+ *
+ */
+
+#ifndef __MEMCACHED_DUMP_H__
+#define __MEMCACHED_DUMP_H__
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+LIBMEMCACHED_API
+memcached_return_t memcached_dump(memcached_st *ptr, memcached_dump_fn *function, void *context, uint32_t number_of_callbacks);
+
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* __MEMCACHED_DUMP_H__ */
index 4ef76fd55350959f09cbeaf9077b48b029ff3f8e..ddde6952471d4885f873ead9e47ac503382ced4b 100644 (file)
@@ -31,6 +31,7 @@
 // Everything above this line must be in the order specified.
 #include <libmemcached/behavior.h>
 #include <libmemcached/callback.h>
+#include <libmemcached/dump.h>
 #include <libmemcached/get.h>
 #include <libmemcached/result.h>
 #include <libmemcached/server.h>
@@ -126,6 +127,7 @@ struct memcached_st {
   void *user_data;
   time_t next_distribution_rebuild;
   size_t prefix_key_length;
+  uint32_t number_of_replicas;
   memcached_hash_t distribution_hash;
   memcached_result_st result;
   memcached_continuum_item_st *continuum;
@@ -137,9 +139,8 @@ struct memcached_st {
   memcached_calloc_fn call_calloc;
   memcached_trigger_key_fn get_key_failure;
   memcached_trigger_delete_key_fn delete_trigger;
-  char prefix_key[MEMCACHED_PREFIX_KEY_MAX_SIZE];
-  uint32_t number_of_replicas;
   memcached_callback_st *callbacks;
+  char prefix_key[MEMCACHED_PREFIX_KEY_MAX_SIZE];
 };
 
 LIBMEMCACHED_API
@@ -321,10 +322,6 @@ memcached_return_t memcached_fetch_execute(memcached_st *ptr,
                                            void *context,
                                            unsigned int number_of_callbacks);
 
-LIBMEMCACHED_API
-memcached_return_t memcached_dump(memcached_st *ptr, memcached_dump_fn *function, void *context, uint32_t number_of_callbacks);
-
-
 LIBMEMCACHED_API
 memcached_return_t memcached_set_memory_allocators(memcached_st *ptr,
                                                    memcached_malloc_fn mem_malloc,