And fix the callers and there init functions.
metze
/*
register an events backend
*/
-bool event_register_backend(const char *name, const struct tevent_ops *ops)
+bool tevent_register_backend(const char *name, const struct tevent_ops *ops)
{
struct tevent_ops_list *e;
*/
static void tevent_backend_init(void)
{
- events_select_init();
- events_standard_init();
+ tevent_select_init();
+ tevent_standard_init();
#if HAVE_EVENTS_EPOLL
- events_epoll_init();
+ tevent_epoll_init();
#endif
#if HAVE_LINUX_AIO
- events_aio_init();
+ tevent_aio_init();
#endif
}
return ae;
}
-static const struct event_ops aio_event_ops = {
+static const struct tevent_ops aio_event_ops = {
.context_init = aio_event_context_init,
.add_fd = aio_event_add_fd,
.add_aio = aio_event_add_aio,
.loop_wait = aio_event_loop_wait,
};
-bool events_aio_init(void)
+bool tevent_aio_init(void)
{
- return event_register_backend("aio", &aio_event_ops);
+ return tevent_register_backend("aio", &aio_event_ops);
}
return 0;
}
-static const struct event_ops epoll_event_ops = {
+static const struct tevent_ops epoll_event_ops = {
.context_init = epoll_event_context_init,
.add_fd = epoll_event_add_fd,
.get_fd_flags = epoll_event_get_fd_flags,
.loop_wait = epoll_event_loop_wait,
};
-bool events_epoll_init(void)
+bool tevent_epoll_init(void)
{
- return event_register_backend("epoll", &epoll_event_ops);
+ return tevent_register_backend("epoll", &epoll_event_ops);
}
};
-bool event_register_backend(const char *name, const struct tevent_ops *ops);
+bool tevent_register_backend(const char *name, const struct tevent_ops *ops);
bool ev_timeval_is_zero(const struct timeval *tv);
struct tevent_timer *common_event_add_timed(struct tevent_context *,
int common_event_check_signal(struct tevent_context *ev);
-bool events_standard_init(void);
-bool events_select_init(void);
+bool tevent_standard_init(void);
+bool tevent_select_init(void);
#if HAVE_EVENTS_EPOLL
-bool events_epoll_init(void);
+bool tevent_epoll_init(void);
#endif
#if HAVE_LINUX_AIO
-bool events_aio_init(void);
+bool tevent_aio_init(void);
#endif
return select_ev->exit_code;
}
-static const struct event_ops select_event_ops = {
+static const struct tevent_ops select_event_ops = {
.context_init = select_event_context_init,
.add_fd = select_event_add_fd,
.get_fd_flags = select_event_get_fd_flags,
.loop_wait = select_event_loop_wait,
};
-bool events_select_init(void)
+bool tevent_select_init(void)
{
- return event_register_backend("select", &select_event_ops);
+ return tevent_register_backend("select", &select_event_ops);
}
-
return std_ev->exit_code;
}
-static const struct event_ops std_event_ops = {
+static const struct tevent_ops std_event_ops = {
.context_init = std_event_context_init,
.add_fd = std_event_add_fd,
.get_fd_flags = std_event_get_fd_flags,
};
-bool events_standard_init(void)
+bool tevent_standard_init(void)
{
- return event_register_backend("standard", &std_event_ops);
+ return tevent_register_backend("standard", &std_event_ops);
}