Change hosts over to realloc array
[awesomized/libmemcached] / include / memcached.h
index 33abcc8137946087fd33b92f1f43a28f6a4b7f25..b57b39416a9cee8c0e92af36d755bc1a79cbafa8 100644 (file)
@@ -1,3 +1,4 @@
+#include <brian.h>
 /*
  * Summary: interface for memcached server
  * Description: main include file for libmemcached
@@ -66,7 +67,6 @@ struct memcached_host_st {
   char *hostname;
   unsigned int port;
   int fd;
-  memcached_host_st *next;
 };
 
 struct memcached_stat_st {
@@ -100,9 +100,9 @@ struct memcached_stat_st {
 
 struct memcached_st {
   memcached_allocated is_allocated;
-  int fd;
-  char connected;
   memcached_host_st *hosts;
+  unsigned int number_of_hosts;
+  char connected;
 };
 
 /* Public API */