mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-30 00:00:16 +01:00
![]() Allow this kind of pattern for context creation info preparation struct lws_context_creation_info info; lws_context_info_defaults(&info, policy); info.default_loglevel = LLL_USER | LLL_ERR | LLL_WARN; lws_cmdline_option_handle_builtin(argc, argv, &info); Calling lws_context_info_defaults() zeros down and prepares boilerplate in the info struct, setting the default_loglevel asserts your application default for the loglevel and then lws_cmdline_option_handle_builtin() will set either that default loglevel, or override it from the commandline with -d 1039 etc |
||
---|---|---|
.. | ||
alloc.c | ||
buflist.c | ||
CMakeLists.txt | ||
context.c | ||
libwebsockets.c | ||
logs.c | ||
lws_dll2.c | ||
lws_map.c | ||
private-lib-core.h | ||
vfs.c |