]> git.ozlabs.org Git - ccan-lca-2011.git/blobdiff - ccan/oserver/oserver_types.h
lca2011: avoid loops during dumping.
[ccan-lca-2011.git] / ccan / oserver / oserver_types.h
index 4eabc67a06a6c0e155f27c3f8856db51fd5b9bbb..72717e89733ddf1793fd514988f7976b8740e4bc 100644 (file)
@@ -20,6 +20,8 @@ CDUMP_SAVED struct client {
        /* Our event info, and the file descriptor. */
        struct tevent_fd *fde CDUMP_IGNORE;
        int fd;
+       /* Position in oserver's clients array. */
+       unsigned int id;
        /* The question we read from client. */
        char *question;
        /* The answer to the client. */
@@ -27,11 +29,11 @@ CDUMP_SAVED struct client {
        /* How many bytes of the reply we sent so far. */
        size_t bytes_sent;
        /* Our server. */
-       struct oserver *oserver;
-       /* Whose question this client is answering. */
-       struct client *subclient;
-       /* Who is answering our question. */
-       struct client *oracle;
+       struct oserver *oserver CDUMP_IGNORE;
+       /* Whose question this client is answering (-1 for none) */
+       int subclient;
+       /* Who is answering our question (-1 for none) */
+       int oracle;
 };
 
 CDUMP_SAVED struct oserver {