create_vhost move mounts list to info
authorAndy Green <andy@warmcat.com>
Sun, 1 May 2016 20:59:54 +0000 (04:59 +0800)
committerAndy Green <andy@warmcat.com>
Sun, 1 May 2016 20:59:54 +0000 (04:59 +0800)
commit4664f71ed3106c5c2f3bc47bbd0639099a469e51
tree7f20e90ffc168b036350664aeb3c164b55f21be6
parent72e0e2a516b57cfc67a6fe62fe3b8e8aeff28728
create_vhost move mounts list to info

There's no reason to not have the mounts linked list init also in the info
struct, rather than provide as a paramater to lws_create_vhost().  Now
is a good time to normalize that since this api only exists in master.

This also allows oldstyle "do everything at context creation time in one
vhost" guys to leverage mounts.

Also there's no reason the mounts linked-list pointer and all uses in lws
are non-const, so make them all explicitly const *.

Update the info struct docs to clarify which members are used when creating
a vhost and which for context creation.

Signed-off-by: Andy Green <andy@warmcat.com>
lib/context.c
lib/libwebsockets.c
lib/libwebsockets.h
lib/private-libwebsockets.h
lib/server.c
lwsws/conf.c