Commit 0798b724 authored by Dmitry Frank's avatar Dmitry Frank Committed by Cesanta Bot

Add names to mg_event_handler_t's args

PUBLISHED_FROM=3caea25dec11260561349fa096547bd62ecdb509
parent 39a17f8a
......@@ -3,7 +3,7 @@ title: "mg_event_handler_t"
decl_name: "mg_event_handler_t"
symbol_kind: "typedef"
signature: |
typedef void (*mg_event_handler_t)(struct mg_connection *, int ev, void *);
typedef void (*mg_event_handler_t)(struct mg_connection *nc, int ev, void *ev_data);
---
Callback function (event handler) prototype. Must be defined by the user.
......
......@@ -2749,7 +2749,7 @@ struct mg_connection;
* Callback function (event handler) prototype. Must be defined by the user.
* Mongoose calls the event handler, passing the events defined below.
*/
typedef void (*mg_event_handler_t)(struct mg_connection *, int ev, void *);
typedef void (*mg_event_handler_t)(struct mg_connection *nc, int ev, void *ev_data);
/* Events. Meaning of event parameter (evp) is given in the comment. */
#define MG_EV_POLL 0 /* Sent to each connection on each mg_mgr_poll() call */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment