DiskTool - Compiling again, now with modules
[tpg/acess2.git] / Tools / DiskTool / src / include / modules.h
1 /*
2  * Acess2 DiskTool
3  * - By John Hodge (thePowersGang)
4  *
5  * include/modules.h
6  * - Reimplimentation of kernel module interface for POSIX userland
7  */
8 #ifndef _INCLUDE__MODULES_H_
9 #define _INCLUDE__MODULES_H_
10
11 enum
12 {
13         MODULE_ERR_OK,
14 };
15
16 #define MODULE_DEFINE(flags, version, name, init, deinit, deps...) \
17 void __init_##init(void) __attribute__((constructor(200))); void __init_##init(void){init(NULL);}
18
19 #endif
20

UCC git Repository :: git.ucc.asn.au