message(" LWS_WITH_ACCESS_LOG = ${LWS_WITH_ACCESS_LOG}")
message(" LWS_WITH_SERVER_STATUS = ${LWS_WITH_SERVER_STATUS}")
message(" LWS_WITH_LEJP = ${LWS_WITH_LEJP}")
+message(" LWS_WITH_GENERIC_SESSIONS = ${LWS_WITH_GENERIC_SESSIONS}")
message("---------------------------------------------------------------------")
# These will be available to parent projects including libwebsockets using add_subdirectory()
* "example-standalone-protocol", to show how to build protocol plugins
* outside the library easily.
*/
+
+#define LWS_DLL
+#define LWS_INTERNAL
#include "../lib/libwebsockets.h"
+
#include <string.h>
struct per_vhost_data__dumb_increment {
* may be proprietary. So unlike the library itself, they are licensed
* Public Domain.
*/
+
+#define LWS_DLL
+#define LWS_INTERNAL
#include "../lib/libwebsockets.h"
#include <string.h>
},
};
-LWS_VISIBLE int
+LWS_EXTERN LWS_VISIBLE int
init_protocol_client_loopback_test(struct lws_context *context,
struct lws_plugin_capability *c)
{
return 0;
}
-LWS_VISIBLE int
+LWS_EXTERN LWS_VISIBLE int
destroy_protocol_client_loopback_test(struct lws_context *context)
{
return 0;
* may be proprietary. So unlike the library itself, they are licensed
* Public Domain.
*/
+#define LWS_DLL
+#define LWS_INTERNAL
#include "../lib/libwebsockets.h"
#include <string.h>
},
};
-LWS_VISIBLE int
+LWS_EXTERN LWS_VISIBLE int
init_protocol_dumb_increment(struct lws_context *context,
struct lws_plugin_capability *c)
{
return 0;
}
-LWS_VISIBLE int
+LWS_EXTERN LWS_VISIBLE int
destroy_protocol_dumb_increment(struct lws_context *context)
{
return 0;
* may be proprietary. So unlike the library itself, they are licensed
* Public Domain.
*/
+#define LWS_DLL
+#define LWS_INTERNAL
#include "../lib/libwebsockets.h"
#include <string.h>
#include <stdlib.h>
},
};
-LWS_VISIBLE int
+LWS_EXTERN LWS_VISIBLE int
init_protocol_lws_mirror(struct lws_context *context,
struct lws_plugin_capability *c)
{
return 0;
}
-LWS_VISIBLE int
+LWS_EXTERN LWS_VISIBLE int
destroy_protocol_lws_mirror(struct lws_context *context)
{
return 0;
* may be proprietary. So unlike the library itself, they are licensed
* Public Domain.
*/
+
+#define LWS_DLL
+#define LWS_INTERNAL
#include "../lib/libwebsockets.h"
#include <string.h>
#include <stdlib.h>
},
};
-LWS_VISIBLE int
+LWS_EXTERN LWS_VISIBLE int
init_protocol_lws_server_status(struct lws_context *context,
struct lws_plugin_capability *c)
{
return 0;
}
-LWS_VISIBLE int
+LWS_EXTERN LWS_VISIBLE int
destroy_protocol_lws_server_status(struct lws_context *context)
{
return 0;
* may be proprietary. So unlike the library itself, they are licensed
* Public Domain.
*/
+
+#define LWS_DLL
+#define LWS_INTERNAL
#include "../lib/libwebsockets.h"
+
#include <time.h>
#include <string.h>
#ifdef WIN32
},
};
-LWS_VISIBLE int
+LWS_EXTERN LWS_VISIBLE int
init_protocol_lws_status(struct lws_context *context,
struct lws_plugin_capability *c)
{
return 0;
}
-LWS_VISIBLE int
+LWS_EXTERN LWS_VISIBLE int
destroy_protocol_lws_status(struct lws_context *context)
{
return 0;
* may be proprietary. So unlike the library itself, they are licensed
* Public Domain.
*/
+
+#define LWS_DLL
+#define LWS_INTERNAL
#include "../lib/libwebsockets.h"
+
#include <string.h>
struct per_session_data__post_demo {
},
};
-LWS_VISIBLE int
+LWS_EXTERN LWS_VISIBLE int
init_protocol_post_demo(struct lws_context *context,
struct lws_plugin_capability *c)
{
return 0;
}
-LWS_VISIBLE int
+LWS_EXTERN LWS_VISIBLE int
destroy_protocol_post_demo(struct lws_context *context)
{
return 0;