nmathewson/Libevent — pull request #41 by rosslagerwall (2012-03-04 06:31:55+00:00)
Title: Add event_new_eventarg() and evsignal_new_eventarg()

It is not possible to use event_new() while passing the event itself as the
argument to the event callback. A workaround is to use event_assign(),
however, this makes code depend on the size of the event structure.

This adds a function, event_new_eventarg(), which does the trick
as well as evsignal_new_eventarg() to compliment evsignal_new().

A regression test is added.