mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-19 09:15:34 -04:00
Fix compilation for listener.h for C++ - missing extern "C". Patch from Ferenc Szalai.
svn:r1448
This commit is contained in:
parent
b812563a6e
commit
e1c9b84ae6
@ -27,6 +27,7 @@ Changes in 2.0.3-alpha:
|
|||||||
o When adding or deleting an event from a non-main thread, only wake up the main thread when its behavior actually needs to change.
|
o When adding or deleting an event from a non-main thread, only wake up the main thread when its behavior actually needs to change.
|
||||||
o Fix some bugs when using the old evdns interfaces to initialize the evdns module.
|
o Fix some bugs when using the old evdns interfaces to initialize the evdns module.
|
||||||
o Detect errors during bufferevent_connect(). Patch from Christopher Davis.
|
o Detect errors during bufferevent_connect(). Patch from Christopher Davis.
|
||||||
|
o Fix compilation for listener.h for C++ - missing extern "C". Patch from Ferenc Szalai.
|
||||||
|
|
||||||
|
|
||||||
Changes in 2.0.2-alpha:
|
Changes in 2.0.2-alpha:
|
||||||
|
@ -27,6 +27,10 @@
|
|||||||
#ifndef _EVENT2_LISTENER_H_
|
#ifndef _EVENT2_LISTENER_H_
|
||||||
#define _EVENT2_LISTENER_H_
|
#define _EVENT2_LISTENER_H_
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <event2/event.h>
|
#include <event2/event.h>
|
||||||
|
|
||||||
struct sockaddr;
|
struct sockaddr;
|
||||||
@ -108,4 +112,8 @@ struct event_base *evconnlistener_get_base(struct evconnlistener *lev);
|
|||||||
/** Return the socket that an evconnlistner is listening on. */
|
/** Return the socket that an evconnlistner is listening on. */
|
||||||
evutil_socket_t evconnlistener_get_fd(struct evconnlistener *lev);
|
evutil_socket_t evconnlistener_get_fd(struct evconnlistener *lev);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user