packaging: support smack manifest and cleanup
[profile/ivi/libwebsockets.git] / lib / extension.c
1 #include "private-libwebsockets.h"
2
3 #include "extension-deflate-frame.h"
4 #include "extension-deflate-stream.h"
5
6 struct libwebsocket_extension libwebsocket_internal_extensions[] = {
7 #ifdef LWS_EXT_DEFLATE_STREAM
8         {
9                 "deflate-stream",
10                 lws_extension_callback_deflate_stream,
11                 sizeof(struct lws_ext_deflate_stream_conn)
12         },
13 #else
14         {
15                 "x-webkit-deflate-frame",
16                 lws_extension_callback_deflate_frame,
17                 sizeof(struct lws_ext_deflate_frame_conn)
18         },
19         {
20                 "deflate-frame",
21                 lws_extension_callback_deflate_frame,
22                 sizeof(struct lws_ext_deflate_frame_conn)
23         },
24 #endif
25         { /* terminator */
26                 NULL, NULL, 0
27         }
28 };
29
30 struct libwebsocket_extension *libwebsocket_get_internal_extensions()
31 {
32         return libwebsocket_internal_extensions;
33 }