libev take care about const context where possible
Signed-off-by: Andy Green <andy.green@linaro.org>
This commit is contained in:
parent
3f59996e67
commit
a01fb52d09
2 changed files with 4 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue