]> git.ipfire.org Git - thirdparty/unbound.git/commit
Add inplace callback to dynlibmod, improve example
authorPMunch <peterme@peterme.net>
Fri, 1 Nov 2019 09:44:26 +0000 (10:44 +0100)
committerPMunch <peterme@peterme.net>
Fri, 1 Nov 2019 09:44:26 +0000 (10:44 +0100)
commitd104d3be2243dbf0d678ee5e939acb78637f58e4
tree1fced79fbc9c815500ab642b259586329659c241
parentf79811435ba13cab2e397be4918fdd89530dbc86
Add inplace callback to dynlibmod, improve example

This adds the possibility to properly register inplace callbacks in the
dynamic library module. It works by creating a wrapper procedure that
is available to the dynamic library and will call the given callback
through a whitelisted callback function.

The dynamic library example has already been improved to include
comments and some simple examples on allocating and deallocating memory
and registering callbacks.
dynlibmod/dynlibmod.c
dynlibmod/dynlibmod.h
dynlibmod/examples/helloworld.c
util/fptr_wlist.c