1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-30 00:00:16 +01:00
libwebsockets/lib/core
Andy Green 52a6ab357e context info: add default_loglevel
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
2023-12-14 05:53:21 +00:00
..
alloc.c lhp: add DLO layout support 2022-05-04 08:43:26 +01:00
buflist.c buflist: append: treat NULL additional buf as error not assert 2023-11-23 09:45:11 +00:00
CMakeLists.txt sspc: refactor to allow different transports 2021-10-08 09:48:41 +01:00
context.c mbedtls: dont rely on potentially missing version api 2023-11-23 09:45:12 +00:00
libwebsockets.c context info: add default_loglevel 2023-12-14 05:53:21 +00:00
logs.c logs: freertos adds free heap to all logs 2022-03-25 08:18:29 +00:00
lws_dll2.c dll2: add api for inserting afer existing member 2022-01-04 16:08:50 +00:00
lws_map.c lws_map: stop c++ compiler complaints 2022-09-19 07:49:42 +01:00
private-lib-core.h openssl3: change deprecated warnings suppression 2022-09-18 08:17:25 +01:00
vfs.c file_ops: vfs: support prefix matches and use of bound ops members 2022-03-15 10:28:09 +00:00