summaryrefslogtreecommitdiffstats
path: root/lib/dns/include
diff options
context:
space:
mode:
authorMartin Nagy <mnagy@redhat.com>2008-12-15 17:38:40 +0100
committerMartin Nagy <mnagy@redhat.com>2009-02-11 20:40:41 +0100
commitc76f8c86f453ad60719d31289b04f13ac244114c (patch)
treec776e71a184c3334d4449c9ccf28a6f00524a60a /lib/dns/include
parentaad64960a5681975b032c1e4fcd133e8f806c9cb (diff)
downloadbind_dynamic-c76f8c86f453ad60719d31289b04f13ac244114c.tar.gz
bind_dynamic-c76f8c86f453ad60719d31289b04f13ac244114c.tar.xz
bind_dynamic-c76f8c86f453ad60719d31289b04f13ac244114c.zip
Use a destroy function to free all the resources.
The handle returned by dlopen() is now saved and the library is unloaded on exit. We also load symbol "dynamic_driver_destroy" which is a function with no arguments returning void. It is called on exit. The load_library() is now split into two functions, one function is specifically used to load symbols.
Diffstat (limited to 'lib/dns/include')
-rw-r--r--lib/dns/include/dns/dynamic_db.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/dns/include/dns/dynamic_db.h b/lib/dns/include/dns/dynamic_db.h
index c37fb83..151103f 100644
--- a/lib/dns/include/dns/dynamic_db.h
+++ b/lib/dns/include/dns/dynamic_db.h
@@ -26,5 +26,6 @@ isc_result_t dns_dynamic_db_load(const char *libname, const char *name,
isc_mem_t *mctx, const char * const *argv,
dns_view_t *view);
+isc_result_t dns_dynamic_db_cleanup(void);
#endif