]> granicus.if.org Git - libevent/commit
Add void* arguments to request_new and reply_new evrpc hooks
authorShuo Chen <giantchen@gmail.com>
Wed, 14 Apr 2010 18:27:29 +0000 (14:27 -0400)
committerNick Mathewson <nickm@torproject.org>
Wed, 14 Apr 2010 18:27:29 +0000 (14:27 -0400)
commit755fbf16c3ce94bfa09e1bf5da27ccdfc1e7e725
tree7818e3b475a31ac3d6677051a73af7632cd735d2
parent07edf784fab4e25c31eef3fdcccec3975e2741db
Add void* arguments to request_new and reply_new evrpc hooks

This makes evprc setup more extensible, and helps with Shuo Chen's
work on implementing Google protocol buffers rpc on top of Libevent 2
evrpc.

This patch breaks binary compatibility with previous versions of
Libevent, since it changes struct evrpc and the signature of
evrpc_register_generic().  Since all compliant code should be calling
evrpc_register_generic via EVRPC_REGISTER, it shouldn't break source
compatibility.

(Code by Shuo Chen; commit message by Nick)
event_rpcgen.py
evrpc.c
include/event2/rpc.h
include/event2/rpc_struct.h