summaryrefslogtreecommitdiff
path: root/src/core/modules.h
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2001-10-21 16:23:43 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2001-10-21 16:23:43 +0000
commit388d2e1f443a2f75d7324f069837fbec6cd5435b (patch)
treeb818ba8b9a1b60af0bb24141f4eee991a2b38af3 /src/core/modules.h
parent373fad3cedf5d38ec287be96000561a95a855b9d (diff)
downloadirssi-388d2e1f443a2f75d7324f069837fbec6cd5435b.zip
deinit() function is now checked and saved when loading module. Unloading
modules that had module_deinit() function (not module_core_deinit()) wasn't called before. Also, error message wasn't printed if module didn't have the _core part and wasn't really irssi module. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1882 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/core/modules.h')
-rw-r--r--src/core/modules.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/modules.h b/src/core/modules.h
index 5677cace..75a77c77 100644
--- a/src/core/modules.h
+++ b/src/core/modules.h
@@ -36,6 +36,7 @@ typedef struct {
MODULE_REC *root;
char *name;
char *defined_module_name;
+ void (*module_deinit) (void);
#ifdef HAVE_GMODULE
GModule *gmodule; /* static, if NULL */