summaryrefslogtreecommitdiffstats
path: root/src/core/modules-load.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/modules-load.h')
-rw-r--r--src/core/modules-load.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/core/modules-load.h b/src/core/modules-load.h
new file mode 100644
index 0000000..a99bcdf
--- /dev/null
+++ b/src/core/modules-load.h
@@ -0,0 +1,16 @@
+#ifndef IRSSI_CORE_MODULES_LOAD_H
+#define IRSSI_CORE_MODULES_LOAD_H
+
+#include <irssi/src/core/modules.h>
+
+/* Load module - automatically tries to load also the related non-core
+ modules given in `prefixes' (like irc, fe, fe_text, ..) */
+int module_load(const char *path, char **prefixes);
+
+/* Load a sub module. */
+int module_load_sub(const char *path, const char *submodule, char **prefixes);
+
+void module_unload(MODULE_REC *module);
+void module_file_unload(MODULE_FILE_REC *file);
+
+#endif