Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mongoose
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
esp
mongoose
Commits
060045be
Commit
060045be
authored
Oct 23, 2015
by
Deomid Ryabkov
Committed by
Marko Mikulicic
Oct 30, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Un-static a bunch of structs to save ram when idle
PUBLISHED_FROM=1a994be80dd46ffd410f88db28816c85b2c2bf79
parent
9adfe8d4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
mongoose.c
mongoose.c
+8
-4
No files found.
mongoose.c
View file @
060045be
...
@@ -2506,7 +2506,8 @@ static void resolve_cb(struct mg_dns_message *msg, void *data) {
...
@@ -2506,7 +2506,8 @@ static void resolve_cb(struct mg_dns_message *msg, void *data) {
struct
mg_connection
*
mg_connect
(
struct
mg_mgr
*
mgr
,
const
char
*
address
,
struct
mg_connection
*
mg_connect
(
struct
mg_mgr
*
mgr
,
const
char
*
address
,
mg_event_handler_t
callback
)
{
mg_event_handler_t
callback
)
{
static
struct
mg_connect_opts
opts
;
struct
mg_connect_opts
opts
;
memset
(
&
opts
,
0
,
sizeof
(
opts
));
return
mg_connect_opt
(
mgr
,
address
,
callback
,
opts
);
return
mg_connect_opt
(
mgr
,
address
,
callback
,
opts
);
}
}
...
@@ -2559,7 +2560,8 @@ struct mg_connection *mg_connect_opt(struct mg_mgr *mgr, const char *address,
...
@@ -2559,7 +2560,8 @@ struct mg_connection *mg_connect_opt(struct mg_mgr *mgr, const char *address,
struct
mg_connection
*
mg_bind
(
struct
mg_mgr
*
srv
,
const
char
*
address
,
struct
mg_connection
*
mg_bind
(
struct
mg_mgr
*
srv
,
const
char
*
address
,
mg_event_handler_t
event_handler
)
{
mg_event_handler_t
event_handler
)
{
static
struct
mg_bind_opts
opts
;
struct
mg_bind_opts
opts
;
memset
(
&
opts
,
0
,
sizeof
(
opts
));
return
mg_bind_opt
(
srv
,
address
,
event_handler
,
opts
);
return
mg_bind_opt
(
srv
,
address
,
event_handler
,
opts
);
}
}
...
@@ -3072,7 +3074,8 @@ static void mg_mgr_handle_ctl_sock(struct mg_mgr *mgr) {
...
@@ -3072,7 +3074,8 @@ static void mg_mgr_handle_ctl_sock(struct mg_mgr *mgr) {
struct
mg_connection
*
mg_add_sock
(
struct
mg_mgr
*
s
,
sock_t
sock
,
struct
mg_connection
*
mg_add_sock
(
struct
mg_mgr
*
s
,
sock_t
sock
,
mg_event_handler_t
callback
)
{
mg_event_handler_t
callback
)
{
static
struct
mg_add_sock_opts
opts
;
struct
mg_add_sock_opts
opts
;
memset
(
&
opts
,
0
,
sizeof
(
opts
));
return
mg_add_sock_opt
(
s
,
sock
,
callback
,
opts
);
return
mg_add_sock_opt
(
s
,
sock
,
callback
,
opts
);
}
}
...
@@ -7702,7 +7705,8 @@ static void mg_resolve_async_eh(struct mg_connection *nc, int ev, void *data) {
...
@@ -7702,7 +7705,8 @@ static void mg_resolve_async_eh(struct mg_connection *nc, int ev, void *data) {
int
mg_resolve_async
(
struct
mg_mgr
*
mgr
,
const
char
*
name
,
int
query
,
int
mg_resolve_async
(
struct
mg_mgr
*
mgr
,
const
char
*
name
,
int
query
,
mg_resolve_callback_t
cb
,
void
*
data
)
{
mg_resolve_callback_t
cb
,
void
*
data
)
{
static
struct
mg_resolve_async_opts
opts
;
struct
mg_resolve_async_opts
opts
;
memset
(
&
opts
,
0
,
sizeof
(
opts
));
return
mg_resolve_async_opt
(
mgr
,
name
,
query
,
cb
,
data
,
opts
);
return
mg_resolve_async_opt
(
mgr
,
name
,
query
,
cb
,
data
,
opts
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment