X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Foserver%2Foserver_types.h;fp=ccan%2Foserver%2Foserver_types.h;h=4eabc67a06a6c0e155f27c3f8856db51fd5b9bbb;hb=cd35df0817596ff3db186b2e1333b6df56e57f77;hp=78ef48cb9788fac5a0e6f031ff85f3847861059e;hpb=9b50bdc2a1781d39fa812dbfacaa3b168d861a2a;p=ccan-lca-2011.git diff --git a/ccan/oserver/oserver_types.h b/ccan/oserver/oserver_types.h index 78ef48c..4eabc67 100644 --- a/ccan/oserver/oserver_types.h +++ b/ccan/oserver/oserver_types.h @@ -1,8 +1,9 @@ #ifndef CCAN_OSERVER_TYPES_H #define CCAN_OSERVER_TYPES_H #include +#include -enum state { +CDUMP_SAVED enum state { SENDING_GREETING, RECEIVING_USER_QUESTION, SENDING_OTHER_QUESTION_PREFIX, @@ -13,11 +14,11 @@ enum state { FINISHED }; -struct client { +CDUMP_SAVED struct client { /* What are we doing today, brain? */ enum state state; /* Our event info, and the file descriptor. */ - struct tevent_fd *fde; + struct tevent_fd *fde CDUMP_IGNORE; int fd; /* The question we read from client. */ char *question; @@ -33,10 +34,10 @@ struct client { struct client *oracle; }; -struct oserver { +CDUMP_SAVED struct oserver { /* 5 clients should be enough for anybody! */ struct client *clients[5]; int fd; - struct tevent_fd *fde; + struct tevent_fd *fde CDUMP_IGNORE; }; #endif /* CCAN_OSERVER_TYPES_H */