Skip to content
Snippets Groups Projects
Commit a01fb52d authored by Andy Green's avatar Andy Green
Browse files

libev take care about const context where possible

parent 3f59996e
Branches
Tags
No related merge requests found
......@@ -149,8 +149,7 @@ lws_libev_accept(struct lws_context *context,
}
LWS_VISIBLE void
lws_libev_io(struct lws_context *context,
struct lws *wsi, int flags)
lws_libev_io(const struct lws_context *context, struct lws *wsi, int flags)
{
if (!LWS_LIBEV_ENABLED(context))
return;
......@@ -187,7 +186,7 @@ lws_libev_init_fd_table(struct lws_context *context)
}
LWS_VISIBLE void
lws_libev_run(struct lws_context *context)
lws_libev_run(const struct lws_context *context)
{
if (context->io_loop && LWS_LIBEV_ENABLED(context))
ev_run(context->io_loop, 0);
......
......@@ -550,12 +550,12 @@ LWS_EXTERN void
lws_libev_accept(struct lws_context *context,
struct lws *new_wsi, lws_sockfd_type accept_fd);
LWS_EXTERN void
lws_libev_io(struct lws_context *context,
lws_libev_io(const struct lws_context *context,
struct lws *wsi, int flags);
LWS_EXTERN int
lws_libev_init_fd_table(struct lws_context *context);
LWS_EXTERN void
lws_libev_run(struct lws_context *context);
lws_libev_run(const struct lws_context *context);
#else
#define LWS_LIBEV_ENABLED(context) (0)
#ifdef LWS_POSIX
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment