libscipaper 1.0.x
sci-modules.h
Go to the documentation of this file.
1
20#ifndef _SCI_MODULES_H_
21#define _SCI_MODULES_H_
22
23#include <glib.h>
24#include <gmodule.h>
25#include <stdbool.h>
26
27#ifdef __cplusplus
28extern "C" {
29#endif
30
32#define SCI_CONF_MODULES_GROUP "Modules"
33
35#define SCI_CONF_MODULES_PATH "ModulePath"
36
38#define SCI_CONF_MODULES_MODULES "Modules"
39
41#define DEFAULT_SCI_MODULE_PATH "/usr/lib/scipaper/modules"
42
54typedef const char* sci_module_init_fn(void** data);
55
56
62typedef void sci_module_exit_fn(void* data);
63
66bool sci_modules_init(void);
67void sci_modules_exit(void);
68
69#ifdef __cplusplus
70}
71#endif
72
73
74#endif /* _SCI_MODULES_H_ */
void sci_module_exit_fn(void *data)
Modules must export a symbol of this type called sci_module_exit, it will be called just before the m...
Definition sci-modules.h:62
const char * sci_module_init_fn(void **data)
Modules must export a symbol of this type called sci_module_init, it will be called when the module i...
Definition sci-modules.h:54