introduce LWS_FEATURE_ tests
authorAndy Green <andy.green@linaro.org>
Sun, 20 Apr 2014 23:27:19 +0000 (08:27 +0900)
committerAndy Green <andy.green@linaro.org>
Sun, 20 Apr 2014 23:27:19 +0000 (08:27 +0900)
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>
lib/libwebsockets.h

index 03ead6e..76e1fa8 100644 (file)
@@ -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,