-
- Downloads
fops: allow setting from context creation and introduce lws_select_fops_by_vfs_path
1) There's now a .fops pointer that can be set in the context creation info. If set, the array of fops it points to (terminated by an entry with .open = NULL) is walked to find out the best vfs filesystem path match (comparing the vfs path to fops.path_prefix) for which fops to use. If none given (.fops is NULL in info) then behaviour is as before, fops are the platform-provided one only. 2) The built in fileserving now walks any array of fops looking for the best fops match automatically. 3) lws_plat_file_... apis are renamed to lws_vfs_file_...
Showing
- lib/context.c 17 additions, 0 deletionslib/context.c
- lib/libwebsockets.c 26 additions, 3 deletionslib/libwebsockets.c
- lib/libwebsockets.h 40 additions, 7 deletionslib/libwebsockets.h
- lib/lws-plat-esp32.c 5 additions, 11 deletionslib/lws-plat-esp32.c
- lib/lws-plat-optee.c 5 additions, 11 deletionslib/lws-plat-optee.c
- lib/lws-plat-unix.c 7 additions, 15 deletionslib/lws-plat-unix.c
- lib/lws-plat-win.c 5 additions, 11 deletionslib/lws-plat-win.c
- lib/output.c 4 additions, 4 deletionslib/output.c
- lib/private-libwebsockets.h 2 additions, 1 deletionlib/private-libwebsockets.h
- lib/server.c 2 additions, 1 deletionlib/server.c
- test-server/test-server-http.c 5 additions, 5 deletionstest-server/test-server-http.c
- test-server/test-server.c 1 addition, 1 deletiontest-server/test-server.c
Loading
Please register or sign in to comment