--- /dev/null
+/* 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__ */
// 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>
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;
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
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,