iFix for OSX
[m6w6/libmemcached] / libtest / server.h
index 0aef86f93ce28ee57747a18329499e32da1b726c..454f69ca81e1266824c6cd7d5d3e58a0f36380b2 100644 (file)
@@ -1,4 +1,5 @@
 /*
+ * Copyright (C) 2011 Data Differential, http://datadifferential.com/
  * Copyright (C) 2006-2009 Brian Aker
  * All rights reserved.
  *
@@ -6,6 +7,10 @@
  * the COPYING file in the parent directory for full text.
  */
 
+#pragma once
+
+#include <unistd.h>
+
 /*
   Server startup and shutdown functions.
 */
@@ -16,6 +21,7 @@ extern "C" {
 #include <libmemcached/memcached.h>
 
 typedef struct server_startup_st server_startup_st;
+#define SERVERS_TO_CREATE 5
 
 struct server_startup_st
 {
@@ -23,6 +29,9 @@ struct server_startup_st
   uint8_t udp;
   memcached_server_st *servers;
   char *server_list;
+  char pid_file[SERVERS_TO_CREATE][FILENAME_MAX];
+  in_port_t port[SERVERS_TO_CREATE];
+  int pids[SERVERS_TO_CREATE];
 };
 
 void server_startup(server_startup_st *construct);