Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libwebsockets
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Fork
libwebsockets
Commits
a01fb52d
Commit
a01fb52d
authored
9 years ago
by
Andy Green
Browse files
Options
Downloads
Patches
Plain Diff
libev take care about const context where possible
Signed-off-by:
Andy Green
<
andy.green@linaro.org
>
parent
3f59996e
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/libev.c
+2
-3
2 additions, 3 deletions
lib/libev.c
lib/private-libwebsockets.h
+2
-2
2 additions, 2 deletions
lib/private-libwebsockets.h
with
4 additions
and
5 deletions
lib/libev.c
+
2
−
3
View file @
a01fb52d
...
...
@@ -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
);
...
...
This diff is collapsed.
Click to expand it.
lib/private-libwebsockets.h
+
2
−
2
View file @
a01fb52d
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment