Home | History | Annotate | Download | only in libevent

Lines Matching refs:reply

41  * EVRPC_HEADER(SendCommand, Request, Reply);
46 * server needs to fill in the Reply structure.
47 * Reply is the name of a structure generated by event_rpcgen.py. It
57 * EVRPC_REGISTER(base, SendCommand, Request, Reply, FunctionCB, arg);
60 * is invokved. The callback needs to fill in the reply structure.
64 * To send the reply, call EVRPC_REQUEST_DONE(rpc);
89 /* creates a new reply structure */
92 /* creates a new reply structure */
95 /* verifies that the reply is valid */
98 /* marshals the reply into a buffer */
123 /* the empty reply object that needs to be filled in */
124 void *reply;
138 * callback to reply and finish answering this rpc
151 * @param replystruct the name of the RPC reply structure
157 struct rplystruct* reply; \
161 struct evrpc* rpc, void *request, void *reply); \
176 * @param replystruct the name of the RPC reply structure
181 struct reqstruct *request, struct rplystruct *reply, \
202 ctx->reply = (void *)reply; \
210 (*(cb))(&status, request, reply, cbarg); \
225 /** Creates the reply to an RPC request
227 * EVRPC_REQUEST_DONE is used to answer a request; the reply is expected
228 * to have been filled in. The request and reply pointers become invalid
240 #define EVRPC_REGISTER_OBJECT(rpc, name, request, reply) \
250 (rpc)->reply_new = (void *(*)(void))reply##_new; \
251 (rpc)->reply_free = (void (*)(void *))reply##_free; \
252 (rpc)->reply_complete = (int (*)(void *))reply##_complete; \
253 (rpc)->reply_marshal = (void (*)(struct evbuffer*, void *))reply##_marshal; \
288 * @param reply the name of the RPC reply structure
295 #define EVRPC_REGISTER(base, name, request, reply, callback, cbarg) \
298 EVRPC_REGISTER_OBJECT(rpc, name, request, reply); \
356 void (*cb)(struct evrpc_status*, void *request, void *reply, void *arg);
360 void *reply;
365 /* removes all stored state in the reply */
368 /* marshals the reply into a buffer */
381 * @param reply a pointer to the RPC reply structure. It is going to be filled
387 #define EVRPC_MAKE_REQUEST(name, pool, request, reply, cb, cbarg) \
388 evrpc_send_request_##name(pool, request, reply, cb, cbarg)