diff --git a/docs/c-api/net.h/mg_event_handler_t.md b/docs/c-api/net.h/mg_event_handler_t.md index f436d667dded93d5f9e4ede15e457bf549d48298..2360b79e35a4ac59be56a0f4ac4db839373a1320 100644 --- a/docs/c-api/net.h/mg_event_handler_t.md +++ b/docs/c-api/net.h/mg_event_handler_t.md @@ -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. diff --git a/mongoose.h b/mongoose.h index af56f135522d8d59d90de3c34e0d9e40f1ffd385..780fa084908bd36dcbea364ec71812e68178515d 100644 --- a/mongoose.h +++ b/mongoose.h @@ -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 */