]> granicus.if.org Git - libevent/commit
Treat the bitwise OR of two enum values as an int.
authorNick Mathewson <nickm@torproject.org>
Wed, 21 Oct 2009 18:48:22 +0000 (18:48 +0000)
committerNick Mathewson <nickm@torproject.org>
Wed, 21 Oct 2009 18:48:22 +0000 (18:48 +0000)
commitb73ad7bc4504882f7b50ed72c2643653fdc43a61
treefa47b2cef76baac604286df38292800d066148fd
parent4fbac2a5aef7bc3dee065241f20f3140c4f57b7e
Treat the bitwise OR of two enum values as an int.

This makes our interfaces usable from C++, which doesn't believe
you can say    "bufferevent_socket_nase(base, -1,
BEV_OPT_CLOSE_ON_FREE|BEV_OPT_DEFER_CALLBACKS)" but which instead
would demand "static_cast<bufferevent_options>(BEV_OPT_CLOSE_ON_FREE|
BEV_OPT_DEFER_CALLBACKS))" for the last argument.

Diagnosis and patch from Chris Davis.

svn:r1456
ChangeLog
bufferevent_filter.c
bufferevent_openssl.c
bufferevent_pair.c
bufferevent_sock.c
event.c
include/event2/bufferevent.h
include/event2/bufferevent_ssl.h
include/event2/event.h