Subject: [PATCH] Introduce lws_free2() helper to free and re-NULL pointers

Signed-off-by: Alejandro Mery <amery@geeks.cl>
Subject: [PATCH] Fix the travis.yml to build everything

When fixing the indentation for the coverity chagnes in 924bcfbc995e5c862216f6ad47a734a2c8f14370
the build matrix got turned off. This re-enables this.

Also change from using gcc/clang. What we want is to build on both Linux
and OSX. Not just run Linux with gcc+clang.

However to enable multi-os support one has to mail the travis support:
http://docs.travis-ci.com/user/multi-os/

"This feature needs to be enabled manually. If you wish to take advantage
of this feature, please send email to support@travis-ci.com, indicating
which repository you would like to have it enabled."
NO_SERVER_fix cosmetic warning

Signed-off-by: Andy Green <andy.green@linaro.org>
NO_EXTENSION clean out handled var in handle_POLLOUT_event

Signed-off-by: Andy Green <andy.green@linaro.org>
http2 remove some dead code

Signed-off-by: Andy Green <andy.green@linaro.org>
https://github.com/warmcat/libwebsockets/commit/6ff28248aadc12b971d13b212587e63b49a4653f#commitcomment-8861797

--
add container_of() macro

to be used to remove cast abuse and finding parent structs later

Signed-off-by: Alejandro Mery <amery@geeks.cl>
libev: clean cast abuse

assuming that you can cast to the first field of an struct is very
risky

Signed-off-by: Alejandro Mery <amery@geeks.cl>
README: fix coverity link

coverity link was pointing to the wrong project

Signed-off-by: Alejandro Mery <amery@geeks.cl>
client: fix verification of the accepted protocol

to properly take ", *" as delimiter

Signed-off-by: Alejandro Mery <amery@geeks.cl>
test-server: fix to compile using mingw

Signed-off-by: Alejandro Mery <amery@geeks.cl>
context: unify libwebsocket_create_context()'s return

Signed-off-by: Alejandro Mery <amery@geeks.cl>
context: move libev specifics into a sub-struct

Signed-off-by: Alejandro Mery <amery@geeks.cl>
context: move poll/win32 specifics into a sub-struct

Signed-off-by: Alejandro Mery <amery@geeks.cl>
introduce info->event and info->e to select and configure a backend

Signed-off-by: Alejandro Mery <amery@geeks.cl>
introduce context->event_ops

Signed-off-by: Alejandro Mery <amery@geeks.cl>
libev: move loop setting and backend printing to event_ops->init()

Signed-off-by: Alejandro Mery <amery@geeks.cl>
socket: move libev specifics into a sub-struct

Signed-off-by: Alejandro Mery <amery@geeks.cl>
move lws_plat_service() implementations to context->event_ops->service()

Signed-off-by: Alejandro Mery <amery@geeks.cl>
mingw cmake and rebuild script [CI/DEV]

Signed-off-by: Alejandro Mery <amery@geeks.cl>