1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

libev take care about const context where possible

Signed-off-by: Andy Green <andy.green@linaro.org>
This commit is contained in:
Andy Green 2015-12-14 07:51:15 +08:00
parent 3f59996e67
commit a01fb52d09
2 changed files with 4 additions and 5 deletions

View file

@ -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);

View file

@ -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