27 #ifndef EVENT2_RPC_STRUCT_H_INCLUDED_
28 #define EVENT2_RPC_STRUCT_H_INCLUDED_
43 #define EVENT_DEFINED_TQENTRY_
44 #define TAILQ_ENTRY(type) \
46 struct type *tqe_next; \
47 struct type **tqe_prev; \
55 #define EVRPC_STATUS_ERR_NONE 0
56 #define EVRPC_STATUS_ERR_TIMEOUT 1
57 #define EVRPC_STATUS_ERR_BADPAYLOAD 2
58 #define EVRPC_STATUS_ERR_UNSTARTED 3
59 #define EVRPC_STATUS_ERR_HOOKABORTED 4
70 TAILQ_ENTRY(
evrpc) next;
76 void *(*request_new)(
void *);
77 void *request_new_arg;
80 void (*request_free)(
void *);
83 int (*request_unmarshal)(
void *,
struct evbuffer *);
86 void *(*reply_new)(
void *);
90 void (*reply_free)(
void *);
93 int (*reply_complete)(
void *);
96 void (*reply_marshal)(
struct evbuffer*,
void *);
106 #ifdef EVENT_DEFINED_TQENTRY_
Definition: evbuffer-internal.h:80
Definition: http_struct.h:57
Definition: evrpc-internal.h:72
Definition: evrpc-internal.h:133
Definition: rpc_struct.h:54
Definition: rpc_struct.h:69