]> granicus.if.org Git - libevent/commit
Add a "ctrl" mechanism to bufferevents for property access.
authorNick Mathewson <nickm@torproject.org>
Wed, 13 May 2009 20:37:21 +0000 (20:37 +0000)
committerNick Mathewson <nickm@torproject.org>
Wed, 13 May 2009 20:37:21 +0000 (20:37 +0000)
commit31d89f274bc28655bca3e6aec19b90080cb09add
tree1ca699851545515488eeee32f7cb410b2d6da0c3
parent83f46e51d77759cc1857519f4bc94e833404980d
Add a "ctrl" mechanism to bufferevents for property access.

OpenSSL uses something like this to implement get/set access for
properties on its BIOs, so that it doesn't need to add a pair of
get/set functions to the vtable struct for every new abstract property
it provides an accessor for.

Doing this lets us make bufferevent_setfd abstract, and implement an
abstract bufferevent_getfd.

svn:r1284
ChangeLog
buffer_iocp.c
bufferevent-internal.h
bufferevent.c
bufferevent_async.c
bufferevent_filter.c
bufferevent_pair.c
bufferevent_sock.c
include/event2/bufferevent.h
iocp-internal.h