Add libwebsockets_ensure_user_space
authorAlex Bligh <alex@alex.org.uk>
Mon, 7 Nov 2011 09:19:25 +0000 (17:19 +0800)
committerAndy Green <andy.green@linaro.org>
Mon, 7 Nov 2011 09:19:25 +0000 (17:19 +0800)
commit49146dbcce1b90fab9273287513abd7aebe7487c
tree33dd1ff395e0a0f6261e1ea79a6a3b0dc3307c23
parent2f5b9bd30ef2b8556bf8ce808dbd60130c8ac0cb
Add libwebsockets_ensure_user_space

This patch unifies the code for per-connection user allocation, and allows
it to be allocated earlier, duiring HTTP service time.  It's also OK to
attempt allocation multiple times, it will just return any existing
allocation.

Signed-off-by: Alex Bligh <alex@alex.org.uk>
lib/handshake.c
lib/libwebsockets.c
lib/libwebsockets.h