File shuffling
authorBrian Aker <brian@gaz>
Sun, 14 Feb 2010 02:37:23 +0000 (18:37 -0800)
committerBrian Aker <brian@gaz>
Sun, 14 Feb 2010 02:37:23 +0000 (18:37 -0800)
libmemcached/include.am
libmemcached/memcached.h
libmemcached/server.h
libmemcached/server_list.h [new file with mode: 0644]

index 6dc3d705c0e4c10705a6929b4f18b84cb81aad45..737c5e12e5c312d4c7b17c84e0fbf5dc96c09d84 100644 (file)
@@ -45,6 +45,7 @@ nobase_include_HEADERS+= \
                         libmemcached/quit.h \
                         libmemcached/result.h \
                         libmemcached/server.h \
+                        libmemcached/server_list.h \
                         libmemcached/stats.h \
                         libmemcached/storage.h \
                         libmemcached/strerror.h \
index a934c5a2703e3a7b3b21eb5363262eb4438a1ffe..1c9d12c2f60edb75e2d774a9986ac15e524944c1 100644 (file)
@@ -48,6 +48,7 @@
 #include <libmemcached/quit.h>
 #include <libmemcached/result.h>
 #include <libmemcached/server.h>
+#include <libmemcached/server_list.h>
 #include <libmemcached/storage.h>
 #include <libmemcached/strerror.h>
 #include <libmemcached/verbosity.h>
@@ -155,6 +156,11 @@ memcached_return_t memcached_push(memcached_st *destination, const memcached_st
 LIBMEMCACHED_API
 memcached_server_instance_st memcached_server_instance_by_position(const memcached_st *ptr, uint32_t server_key);
 
+LIBMEMCACHED_API
+uint32_t memcached_server_count(const memcached_st *);
+
+
+
 LIBMEMCACHED_LOCAL
 void server_list_free(memcached_st *ptr, memcached_server_st *servers);
 
index 2fc25f6969710093df66627b0b1f1b30bdc0650d..c3e3672b0144d889a2c81ae9c0cae04e06c49da9 100644 (file)
@@ -107,41 +107,6 @@ LIBMEMCACHED_API
 memcached_return_t memcached_server_add_with_weight(memcached_st *ptr, const char *hostname,
                                                     in_port_t port,
                                                     uint32_t weight);
-/* Server List Public functions */
-
-LIBMEMCACHED_API
-void memcached_server_list_free(memcached_server_st *ptr);
-
-
-LIBMEMCACHED_API
-memcached_return_t memcached_server_push(memcached_st *ptr, const memcached_server_st *list);
-
-LIBMEMCACHED_API
-memcached_server_st *memcached_server_list_append(memcached_server_st *ptr,
-                                                  const char *hostname,
-                                                  in_port_t port,
-                                                  memcached_return_t *error);
-LIBMEMCACHED_API
-memcached_server_st *memcached_server_list_append_with_weight(memcached_server_st *ptr,
-                                                              const char *hostname,
-                                                              in_port_t port,
-                                                              uint32_t weight,
-                                                              memcached_return_t *error);
-LIBMEMCACHED_API
-uint32_t memcached_server_list_count(const memcached_server_st *ptr);
-
-LIBMEMCACHED_API
-uint32_t memcached_server_count(const memcached_st *);
-
-
-LIBMEMCACHED_LOCAL
-uint32_t memcached_servers_set_count(memcached_server_st *servers, uint32_t count);
-
-LIBMEMCACHED_API
-memcached_server_st *memcached_server_list(memcached_st *);
-
-LIBMEMCACHED_LOCAL
-void memcached_server_list_set(memcached_st *self, memcached_server_st *list);
 
 /**
   Operations on Single Servers.
diff --git a/libmemcached/server_list.h b/libmemcached/server_list.h
new file mode 100644 (file)
index 0000000..a4b90b9
--- /dev/null
@@ -0,0 +1,53 @@
+/* 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: Types for libmemcached
+ *
+ */
+
+#ifndef __LIBMEMCACHED_SERVER_LIST_H__
+#define __LIBMEMCACHED_SERVER_LIST_H__
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/* Server List Public functions */
+LIBMEMCACHED_API
+void memcached_server_list_free(memcached_server_st *ptr);
+
+LIBMEMCACHED_API
+memcached_return_t memcached_server_push(memcached_st *ptr, const memcached_server_st *list);
+
+LIBMEMCACHED_API
+memcached_server_st *memcached_server_list_append(memcached_server_st *ptr,
+                                                  const char *hostname,
+                                                  in_port_t port,
+                                                  memcached_return_t *error);
+LIBMEMCACHED_API
+memcached_server_st *memcached_server_list_append_with_weight(memcached_server_st *ptr,
+                                                              const char *hostname,
+                                                              in_port_t port,
+                                                              uint32_t weight,
+                                                              memcached_return_t *error);
+LIBMEMCACHED_API
+uint32_t memcached_server_list_count(const memcached_server_st *ptr);
+
+LIBMEMCACHED_LOCAL
+uint32_t memcached_servers_set_count(memcached_server_st *servers, uint32_t count);
+
+LIBMEMCACHED_API
+memcached_server_st *memcached_server_list(memcached_st *);
+
+LIBMEMCACHED_LOCAL
+void memcached_server_list_set(memcached_st *self, memcached_server_st *list);
+
+#ifdef __cplusplus
+} // extern "C"
+#endif
+
+#endif /* __LIBMEMCACHED_SERVER_LIST_H__ */