Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information