]> git.ipfire.org Git - thirdparty/freeswitch.git/commit
[Core] Add new switch_core_hash_insert_pointer(switch_hash_t *hash, const void *data...
authorAndrey Volk <andywolk@gmail.com>
Fri, 22 Jan 2021 13:46:04 +0000 (16:46 +0300)
committerAndrey Volk <andywolk@gmail.com>
Tue, 19 Oct 2021 17:35:12 +0000 (20:35 +0300)
commitbd7b76bacf0f1c8027e2676b007fbc281dd82f80
treed3bf8dad881cb2f73aa496ab8754f2557965e51c
parente14df00aa6155f523f5911c5b8e1031cc13d8cf6
[Core] Add new switch_core_hash_insert_pointer(switch_hash_t *hash, const void *data) API to be able to insert data into a hash with an auto-generated key based on the data pointer. Cleanup switch_loadable_module_process() to not generate hash keys for stored events itself. Add unit-test.
src/include/switch_core.h
src/switch_core_hash.c
src/switch_loadable_module.c
tests/unit/switch_core.c