]> git.ozlabs.org Git - ccan-lca-2011.git/blobdiff - ccan/oserver/oserver_types.h
lca2011: use max_clients field to control dynamic length of clients array.
[ccan-lca-2011.git] / ccan / oserver / oserver_types.h
index 72717e89733ddf1793fd514988f7976b8740e4bc..4d70199b351e3bab0f8419e10826d23ce1de0e71 100644 (file)
@@ -37,9 +37,12 @@ CDUMP_SAVED struct client {
 };
 
 CDUMP_SAVED struct oserver {
-       /* 5 clients should be enough for anybody! */
-       struct client *clients[5];
+       unsigned int max_clients;
+       struct client **clients CDUMP_LEN(max_clients);
        int fd;
        struct tevent_fd *fde CDUMP_IGNORE;
+       const char *dumpfile;
+       int argv_len;
+       char **argv CDUMP_LEN(argv_len);
 };
 #endif /* CCAN_OSERVER_TYPES_H */