X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libtest%2Fserver.h;h=5444821d685d8aa24faf97ef95594fc74c57d4c3;hb=5a65c28db362c4d62419075c5c9e416fd855a9f9;hp=e849f29a924b05587732ee67e1fb0dcc1d712e5d;hpb=49fc1e5ea4ea006f4a2ac71428833760f6fac030;p=awesomized%2Flibmemcached diff --git a/libtest/server.h b/libtest/server.h index e849f29a..5444821d 100644 --- a/libtest/server.h +++ b/libtest/server.h @@ -9,6 +9,8 @@ #pragma once +#include + /* Server startup and shutdown functions. */ @@ -19,13 +21,17 @@ extern "C" { #include typedef struct server_startup_st server_startup_st; +#define SERVERS_TO_CREATE 5 struct server_startup_st { uint8_t count; 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]; + bool is_used[SERVERS_TO_CREATE]; // Did we start it, or was it just sitting there? }; void server_startup(server_startup_st *construct);