Added module loading capabilities

Added basic module loading capabilities.
Created very basic modules

Signed-off-by: Gergely Polonkai (W00d5t0ck) <polesz@w00d5t0ck.info>
This commit is contained in:
Gergely Polonkai (W00d5t0ck)
2011-01-26 17:54:57 +01:00
parent 4da2c703dc
commit 8216a42444
11 changed files with 188 additions and 6 deletions

12
src/module.h Normal file
View File

@@ -0,0 +1,12 @@
#ifndef __WXMPPD_MODULE_H
# define __WXMPPD_MODULE_H
typedef int * (*funcptr) ();
typedef struct _wxmppd_module_data_t {
char *name;
char *description;
funcptr *load_func;
} wxmppd_module_data_t;
#endif /* __WXMPPD_MODULE_H */