summaryrefslogtreecommitdiffstats
path: root/src/core/modules-load.h
blob: a99bcdfe094f03cb3014dc1590baace7d7094f14 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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