-
- Downloads
refactor out WIN32 tests from code
This gets rid of all the platform-dependent #ifdef stuff and
migrates it into the new lws-plat-xxx.c files.
These are then included in a one-time test in libwebsockets.c
according basically to Windows or not.
The idea is from now on, all Windows-specific code should go in
lws-plat-win.c, where any kind of Windows perversion like DWORD
is fine.
Any new functions going in there should be named lws_plat_...
and be defined in all the lws-plat-xxx.c file (currently just
win32 and unix platforms are supported).
Signed-off-by:
Andy Green <andy.green@linaro.org>
Showing
- lib/client-handshake.c 3 additions, 2 deletionslib/client-handshake.c
- lib/client.c 2 additions, 1 deletionlib/client.c
- lib/libwebsockets.c 50 additions, 431 deletionslib/libwebsockets.c
- lib/libwebsockets.h 11 additions, 0 deletionslib/libwebsockets.h
- lib/lws-plat-unix.c 287 additions, 0 deletionslib/lws-plat-unix.c
- lib/lws-plat-win.c 218 additions, 0 deletionslib/lws-plat-win.c
- lib/output.c 6 additions, 50 deletionslib/output.c
- lib/private-libwebsockets.h 83 additions, 5 deletionslib/private-libwebsockets.h
- lib/server.c 15 additions, 50 deletionslib/server.c
- lib/sha-1.c 0 additions, 51 deletionslib/sha-1.c
- test-server/test-fraggle.c 0 additions, 12 deletionstest-server/test-fraggle.c
Loading
Please register or sign in to comment