1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-23 00:00:06 +01:00
libwebsockets/lib/misc
Andy Green 1ae6ce37d3 lws_dll2: add helper for typed object name from owner list
There's a good pattern that's encouraged by using lws_struct pieces, that
we have an lws_dll2 owner with an array of objects listed in it that exist
in an lwsac.  And because it came from JSON, there is tending to be a
logical name for the objects.

This adds a typed helper and wrapper to scan the owner list looking for
a specific name (of a specified length, not NUL terminated) in a specific
member of the listed objects, which must be a NUL-terminated const char *.
Again this is a good pattern that's encouraged by use of lws_tokenize
to recover the name we're looking for.

So it leads to the helper that can cleanly search for a listed object of the
right name from an owner, and return the typed object pointer or NULL, from a
length-specified string.
2020-07-09 15:30:34 +01:00
..
fts lws_struct sqlite3 2020-03-04 11:00:04 +00:00
lwsac logs: allow giving log bitfields from cmake to force build or exclusion 2020-04-22 06:59:01 +01:00
threadpool mingw: fix for different sockfd type in udp example 2020-06-06 15:53:58 +01:00
base64-decode.c clean: explicitly include libwebsockets.h in internal c now we use stddint types earlier 2020-01-15 12:07:20 +00:00
CMakeLists.txt lws_netdev: use lws_settings 2020-07-07 15:23:19 +01:00
daemonize.c clean: explicitly include libwebsockets.h in internal c now we use stddint types earlier 2020-01-15 12:07:20 +00:00
dir.c lws_dir: add rm -rf and glob filter callbacks 2020-05-03 14:16:48 +01:00
diskcache.c clean: explicitly include libwebsockets.h in internal c now we use stddint types earlier 2020-01-15 12:07:20 +00:00
fsmount.c fsmount: delete session dir on mount 2020-03-05 14:12:24 +00:00
getifaddrs.c clean: explicitly include libwebsockets.h in internal c now we use stddint types earlier 2020-01-15 12:07:20 +00:00
getifaddrs.h refactor: subdirs for source in lib 2017-10-16 17:28:37 +08:00
lejp.c lejp: enable negative integers 2020-06-22 08:14:56 +01:00
lws-ring.c linkit: support build using public sdk 2020-01-17 07:45:34 +00:00
lws-struct-lejp.c lws_dll2: add helper for typed object name from owner list 2020-07-09 15:30:34 +01:00
lws-struct-sqlite.c sai: update to new tuple format 2020-06-05 08:33:51 +01:00
peer-limits.c PEER_LIMITS: modernize to sa46 and add notification cb 2020-06-02 08:37:10 +01:00
romfs.c linkit: support build using public sdk 2020-01-17 07:45:34 +00:00
romfs.h refactor: subdirs for source in lib 2017-10-16 17:28:37 +08:00
sha-1.c clean: explicitly include libwebsockets.h in internal c now we use stddint types earlier 2020-01-15 12:07:20 +00:00