refactor needless context with wsi paramater passing
authorAndy Green <andy.green@linaro.org>
Tue, 15 Dec 2015 13:15:58 +0000 (21:15 +0800)
committerAndy Green <andy.green@linaro.org>
Tue, 15 Dec 2015 13:15:58 +0000 (21:15 +0800)
commit6b5de70f4fb1eadac6730f3b4ecfe156bd38567a
treede4fa2b15e191604720755ef1a653a27b85b0340
parente59908e7fc0000b1e7ebb4f546bc9490fab0612f
refactor needless context with wsi paramater passing

Now we bit the bullet and gave each wsi an lws_context *, many
internal apis that take both a context and wsi parameter only
need the wsi.

Also simplify parser code by making a temp var for
allocated_headers * instead of the longwinded
dereference chain everywhere.

Signed-off-by: Andy Green <andy.green@linaro.org>
18 files changed:
lib/client-handshake.c
lib/client.c
lib/context.c
lib/extension.c
lib/handshake.c
lib/hpack.c
lib/http2.c
lib/libwebsockets.c
lib/lws-plat-mbed3.cpp
lib/lws-plat-unix.c
lib/output.c
lib/parsers.c
lib/pollfd.c
lib/private-libwebsockets.h
lib/server-handshake.c
lib/server.c
lib/service.c
lib/ssl.c