diff options
author | Shuo Chen <giantchen@gmail.com> | 2010-04-14 14:23:03 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2010-04-14 14:23:03 -0400 |
commit | 07edf784fab4e25c31eef3fdcccec3975e2741db (patch) | |
tree | 9ebabf0cf235b87a5b401f0f35394b538a0156c4 /evrpc.c | |
parent | a0983b67f9d077d59739ed7111cafdd81dd95876 (diff) | |
download | libevent-07edf784fab4e25c31eef3fdcccec3975e2741db.tar.gz |
Expose the request and reply members of rpc_req_generic()
This code adds two accessor functions to evprc, and helps integrate
evrpc with Google protocol buffers.
(Code by Shuo Chen; commit message by nickm)
Diffstat (limited to 'evrpc.c')
-rw-r--r-- | evrpc.c | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -444,6 +444,18 @@ error: return; } +void * +evrpc_get_request(struct evrpc_req_generic *req) +{ + return req->request; +} + +void * +evrpc_get_reply(struct evrpc_req_generic *req) +{ + return req->reply; +} + static void evrpc_request_done_closure(void *arg, enum EVRPC_HOOK_RESULT hook_res) { |