Update mg_mgr_init.md

This commit is contained in:
Evelyn authored and GitHub committed 2016-07-22 14:33:30 +01:00
1 parent e8a97f12d7
commit 4ae88c859e
1 file changed
+3 -3
+3 -3
View File
@@ -6,9 +6,9 @@ signature: |
void mg_mgr_init(struct mg_mgr *mgr, void *user_data); void mg_mgr_init(struct mg_mgr *mgr, void *user_data);
--- ---
Initialize Mongoose manager. Side effect: ignores SIGPIPE signal. Initialise Mongoose manager. Side effect: ignores SIGPIPE signal.
`mgr->user_data` field will be initialized with `user_data` parameter. `mgr->user_data` field will be initialised with a `user_data` parameter.
That is an arbitrary pointer, where user code can associate some data That is an arbitrary pointer, where the user code can associate some data
with the particular Mongoose manager. For example, a C++ wrapper class with the particular Mongoose manager. For example, a C++ wrapper class
could be written, in which case `user_data` can hold a pointer to the could be written, in which case `user_data` can hold a pointer to the
class instance. class instance.