mirror of
https://github.com/cesanta/mongoose.git
synced 2026-12-04 21:58:22 +00:00
Refactor sys_config and ro_vars
Use the same config mechanism for ro_vars as for sys_config, get rid of a bunch of custom code. PUBLISHED_FROM=d2be76cb97090669dd6a21e95d0ba821eaa1a313
This commit is contained in:
1 parent
cbe63d43df
commit
b987df1974
1 file changed
+4
-4
+4
-4
@@ -1139,8 +1139,8 @@ const char *c_strnstr(const char *s, const char *find, size_t slen);
|
|||||||
*
|
*
|
||||||
* NOTE: Mongoose manager is single threaded. It does not protect
|
* NOTE: Mongoose manager is single threaded. It does not protect
|
||||||
* its data structures by mutexes, therefore all functions that are dealing
|
* its data structures by mutexes, therefore all functions that are dealing
|
||||||
* with particular event manager should be called from the same thread,
|
* with a particular event manager should be called from the same thread,
|
||||||
* with exception of `mg_broadcast()` function. It is fine to have different
|
* with exception of the `mg_broadcast()` function. It is fine to have different
|
||||||
* event managers handled by different threads.
|
* event managers handled by different threads.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -1191,8 +1191,8 @@ union socket_address {
|
|||||||
struct mg_connection;
|
struct mg_connection;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Callback function (event handler) prototype, must be defined by user.
|
* Callback function (event handler) prototype. Must be defined by the user.
|
||||||
* Mongoose calls event handler, passing events defined below.
|
* Mongoose calls the event handler, passing events defined below.
|
||||||
*/
|
*/
|
||||||
typedef void (*mg_event_handler_t)(struct mg_connection *, int ev, void *);
|
typedef void (*mg_event_handler_t)(struct mg_connection *, int ev, void *);
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user