summaryrefslogtreecommitdiff
path: root/iocp-internal.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2009-05-13 20:37:21 +0000
committerNick Mathewson <nickm@torproject.org>2009-05-13 20:37:21 +0000
commit31d89f274bc28655bca3e6aec19b90080cb09add (patch)
tree1ca699851545515488eeee32f7cb410b2d6da0c3 /iocp-internal.h
parent83f46e51d77759cc1857519f4bc94e833404980d (diff)
downloadlibevent-31d89f274bc28655bca3e6aec19b90080cb09add.tar.gz
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
Diffstat (limited to 'iocp-internal.h')
-rw-r--r--iocp-internal.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/iocp-internal.h b/iocp-internal.h
index 1470620d..ac76e848 100644
--- a/iocp-internal.h
+++ b/iocp-internal.h
@@ -97,6 +97,9 @@ void event_overlapped_init(struct event_overlapped *, iocp_callback cb);
*/
struct evbuffer *evbuffer_overlapped_new(evutil_socket_t fd);
+/** XXXX Document (nickm) */
+evutil_socket_t _evbuffer_overlapped_get_fd(struct evbuffer *buf);
+
/** Start reading data onto the end of an overlapped evbuffer.
An evbuffer can only have one read pending at a time. While the read