Skip to content
Snippets Groups Projects
Commit 4b8bf88c authored by Vladislav Shpilevoy's avatar Vladislav Shpilevoy Committed by Vladimir Davydov
Browse files

evio: turn into C

Needed for #3234
parent f64d79f3
No related branches found
No related tags found
No related merge requests found
......@@ -90,7 +90,7 @@ set (core_sources
fiber_channel.c
latch.c
sio.c
evio.cc
evio.c
coio.cc
coio_task.c
coio_file.c
......
......@@ -167,9 +167,10 @@ evio_service_name(struct evio_service *service)
* callback.
*/
static void
evio_service_accept_cb(ev_loop * /* loop */, ev_io *watcher,
int /* revents */)
evio_service_accept_cb(ev_loop *loop, ev_io *watcher, int events)
{
(void) loop;
(void) events;
struct evio_service *service = (struct evio_service *) watcher->data;
int fd;
while (1) {
......
......@@ -38,6 +38,11 @@
#include "tarantool_ev.h"
#include "sio.h"
#include "uri.h"
#if defined(__cplusplus)
extern "C" {
#endif /* defined(__cplusplus) */
/**
* A way to add a listening socket to the event loop. Callbacks
* are invoked on bind and accept events.
......@@ -152,4 +157,8 @@ evio_timeout_update(ev_loop *loop, ev_tstamp start, ev_tstamp *delay)
int
evio_setsockopt_client(int fd, int family, int type);
#if defined(__cplusplus)
} /* extern "C" */
#endif /* defined(__cplusplus) */
#endif /* TARANTOOL_EVIO_H_INCLUDED */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment