mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
introduce LWS_FEATURE_ tests
Help user code be compatible with multiple LWS versions by providing #ifdef -testable flags for API changes Signed-off-by: Andy Green <andy.green@linaro.org>
This commit is contained in:
parent
1b2fc03f24
commit
6ea337aa3e
1 changed files with 5 additions and 0 deletions
|
@ -141,6 +141,11 @@ LWS_VISIBLE LWS_EXTERN void lwsl_hexdump(void *buf, size_t len);
|
|||
|
||||
#define ARRAY_SIZE(x) (sizeof(x) / sizeof(x[0]))
|
||||
|
||||
/* api change list for user code to test against */
|
||||
|
||||
#define LWS_FEATURE_SERVE_HTTP_FILE_HAS_OTHER_HEADERS_ARG
|
||||
|
||||
|
||||
enum libwebsocket_context_options {
|
||||
LWS_SERVER_OPTION_REQUIRE_VALID_OPENSSL_CLIENT_CERT = 2,
|
||||
LWS_SERVER_OPTION_SKIP_SERVER_CANONICAL_NAME = 4,
|
||||
|
|
Loading…
Add table
Reference in a new issue