diff options
author | Eric Leblond <eric@inl.fr> | 2008-11-30 16:41:55 +0100 |
---|---|---|
committer | Eric Leblond <eric@inl.fr> | 2008-12-09 01:19:25 +0100 |
commit | 7e02ae896e3b4f3109ea26069884695799793370 (patch) | |
tree | bd677177452719d67350a9fa35b1ccddd375421e /include | |
parent | 8040dcd59097d54f94447b36edebfcf3f14edfdd (diff) |
Unload plugins when quitting.
This patch adds unloading of plugins (call dlclose()) in ulogd2. This
make valgrind happy and will be useful for daemon live reconfiguration.
Diffstat (limited to 'include')
-rw-r--r-- | include/ulogd/ulogd.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/ulogd/ulogd.h b/include/ulogd/ulogd.h index 3f6d784..f55d5f1 100644 --- a/include/ulogd/ulogd.h +++ b/include/ulogd/ulogd.h @@ -187,6 +187,14 @@ static inline void *ikey_get_ptr(struct ulogd_key *key) struct ulogd_pluginstance_stack; struct ulogd_pluginstance; + +struct ulogd_plugin_handle { + /* global list of plugins */ + struct llist_head list; + void *handle; +}; + + struct ulogd_plugin { /* global list of plugins */ struct llist_head list; |