Subject: [PATCH] Fixes occasional segfault in lws_chage_pollfd

* so it happens that sometimes lws_change_pollfd is called with
  bad or incomplete data structures, mainly the context pointer
  obtained from wsi->protocol is null or wsi->position_in_fds_table
  is -1; checks have been added to avoid this condition
Subject: [PATCH] Attempt at fixing Travis for OSX.

Move install into external shell script. We cannot use apt-get on OSX, use brew instead... Also valgrind isn't used at the moment so skip intalling it.
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>
improve c++ compatibility

Adapted by Joakim
Subject: [PATCH] add _lws_logv to make loging accessible to other wrappers.
 use _lws_logv in _lws_log
Subject: [PATCH] add user context pointer to the protocol structure
Subject: [PATCH] proxy protocol (version 1) parsing implementation

The proxy line is dumped in the token buffer as any other HTTP header

Adapted by AG to move token id to be last in the parsed list
clean unmix declarations and code

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

--
test-server: fix to compile using mingw

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

Signed-off-by: Alejandro Mery <amery@geeks.cl>
alloc: make _lws_realloc static

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 context->event_ops and the info->event selector

Signed-off-by: Alejandro Mery <amery@geeks.cl>
libev: mutilate and prepare for context->event_ops usage

Signed-off-by: Alejandro Mery <amery@geeks.cl>
libev: rename to lib/event-libev.c

Signed-off-by: Alejandro Mery <amery@geeks.cl>
select context->event_ops based on info->event

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