]> git.decadent.org.uk Git - ion3.git/blob - ioncore/modules.h
0d00e52af31267b196224d542c2ad72550b56aac
[ion3.git] / ioncore / modules.h
1 /*
2  * ion/ioncore/modules.h
3  *
4  * Copyright (c) Tuomo Valkonen 1999-2007. 
5  *
6  * Ion is free software; you can redistribute it and/or modify it under
7  * the terms of the GNU Lesser General Public License as published by
8  * the Free Software Foundation; either version 2.1 of the License, or
9  * (at your option) any later version.
10  */
11
12 #ifndef ION_IONCORE_MODULES_H
13 #define ION_IONCORE_MODULES_H
14
15 #include "common.h"
16
17 extern bool ioncore_load_module(const char *name);
18 extern void ioncore_unload_modules();
19 extern bool ioncore_init_module_support();
20
21 typedef struct{
22     const char *name;
23     bool (*init)();
24     void (*deinit)();
25     bool loaded;
26 } WStaticModuleInfo;
27
28 #endif /* ION_IONCORE_MODULES_H */