From 3bb7ad8246bca95c89d68a8b0402b8482489c877 Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Wed, 21 Nov 2007 16:34:48 +0000 Subject: - added an identifier to command handler table - need to identify which command handler entries need to be removed when module is unloaded - added support so that linkedlist key can be used for owner handle - enhanced llExecFunc to support deletion of list elements (on behalf of user function being called, slight interface change) - enhanced linkedlist class so that list elements can now be deleted based on the key value they have - created entry point so that CfSysLine handlers are removed on modExit() --- modules.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules.h') diff --git a/modules.h b/modules.h index 3f008a6a..4782d319 100644 --- a/modules.h +++ b/modules.h @@ -62,7 +62,8 @@ typedef struct moduleInfo { rsRetVal (*needUDPSocket)(void*);/* called when fd is writeable after select() */ rsRetVal (*dbgPrintInstInfo)(void*);/* called before termination or module unload */ rsRetVal (*tryResume)(void*);/* called to see if module actin can be resumed now */ - rsRetVal (*modExit)(); /* called before termination or module unload */ + rsRetVal (*modExit)(void); /* called before termination or module unload */ + rsRetVal (*modGetID)(void **); /* get its unique ID from module */ /* below: parse a configuration line - return if processed * or not. If not, must be parsed to next module. */ -- cgit v1.2.3