libwebsockets/lib
Andy Green a7109e6ebf valgrind introduce protocol init and destroy user callbacks
To get a clean bill of health from valgrind, we have to have a way to
inform the user code that we're going down and it should free everything
it is holding that was malloc'd.

This patch introduces LWS_CALLBACK_PROTOCOL_DESTROY which each protocol
gets when the context is being destroyed and no more activity will come
after that call.  They can get rid of everything there.

To match it, LWS_CALLBACK_PROTOCOL_INIT is introduced which would allow
one-time init per protocol too.

Signed-off-by: Andy Green <andy.green@linaro.org>
2013-02-11 12:05:54 +08:00
..
.gitignore Ignoring linux build files 2013-01-09 15:46:11 +08:00
base64-decode.c CMake support + fixed windows build. 2013-02-06 15:49:12 +09:00
client-handshake.c replace per header mallocs with single malloc 3 level struct 2013-02-11 11:10:57 +08:00
client-parser.c throw out lws_websocket_related cruft 2013-02-11 00:34:43 +08:00
client.c replace per header mallocs with single malloc 3 level struct 2013-02-11 11:10:57 +08:00
daemonize.c Fixed build on OSX. 2013-02-06 15:49:12 +09:00
extension-deflate-frame.c remove minimum frame size for deflate 2013-02-11 10:18:31 +08:00
extension-deflate-frame.h Separate compression levels for server and client, 2013-01-10 12:45:54 +08:00
extension-deflate-stream.c introduce logging api and convert all library output to use it 2013-01-10 22:16:37 +08:00
extension-deflate-stream.h remove fixed rx buffer allow definition per protocol 2013-02-08 13:16:07 +08:00
extension.c deprecate x google mux 2013-01-17 19:53:16 +08:00
getifaddrs.c introduce getifaddrs for toolchains without it 2013-01-12 20:39:47 +08:00
getifaddrs.h introduce getifaddrs for toolchains without it 2013-01-12 20:39:47 +08:00
handshake.c valgrind drop header allocation down http path 2013-02-11 11:27:44 +08:00
libwebsockets.c valgrind introduce protocol init and destroy user callbacks 2013-02-11 12:05:54 +08:00
libwebsockets.h valgrind introduce protocol init and destroy user callbacks 2013-02-11 12:05:54 +08:00
Makefile.am stop O2 override 2013-02-11 09:31:43 +08:00
minilex.c add lexical parser for headers 2013-01-18 01:55:48 +08:00
output.c dont close in user callback wrapper let ancestor do it 2013-02-11 00:34:43 +08:00
parsers.c replace per header mallocs with single malloc 3 level struct 2013-02-11 11:10:57 +08:00
private-libwebsockets.h replace per header mallocs with single malloc 3 level struct 2013-02-11 11:10:57 +08:00
server-handshake.c replace per header mallocs with single malloc 3 level struct 2013-02-11 11:10:57 +08:00
server.c replace per header mallocs with single malloc 3 level struct 2013-02-11 11:10:57 +08:00
sha-1.c Static variable is now const. 2013-01-09 15:14:31 +08:00