diff options
author | Luciano Iam <lucianito@gmail.com> | 2020-04-14 22:54:41 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2020-04-17 20:15:10 +0200 |
commit | 612c71aa25a76b603ad1184a352f228817d1f820 (patch) | |
tree | 906cffabee06d3178d99424032a0bce33610b86b /libs/surfaces/websockets/server.h | |
parent | 2ba8dab95e10596ac88539a74e47024836138019 (diff) |
WebSockets: allow serving SVG files using libwebsockets < 3
Diffstat (limited to 'libs/surfaces/websockets/server.h')
-rw-r--r-- | libs/surfaces/websockets/server.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/libs/surfaces/websockets/server.h b/libs/surfaces/websockets/server.h index c849b29ad9..677ef21780 100644 --- a/libs/surfaces/websockets/server.h +++ b/libs/surfaces/websockets/server.h @@ -62,11 +62,14 @@ public: void update_all_clients (const NodeState&, bool); private: - struct lws_protocols _lws_proto[2]; - struct lws_http_mount _lws_mnt_index; - struct lws_http_mount _lws_mnt_user; - struct lws_context_creation_info _lws_info; - struct lws_context* _lws_context; +#if LWS_LIBRARY_VERSION_MAJOR < 3 + struct lws_protocol_vhost_options _lws_vhost_opt; +#endif + struct lws_protocols _lws_proto[2]; + struct lws_http_mount _lws_mnt_index; + struct lws_http_mount _lws_mnt_user; + struct lws_context_creation_info _lws_info; + struct lws_context* _lws_context; Glib::RefPtr<Glib::IOChannel> _channel; |