Skip to content

Commit 5dfdb20

Browse files
committed
Add 'module.h' which was missing from last commit.
1 parent 3f20fac commit 5dfdb20

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

include/module.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#ifndef __MODULE_H_
2+
#define __MODULE_H_
3+
4+
#define MODULE_NAME(name) static char *__MODULE_NAME __attribute((unused)) = name;
5+
#define MODULE_INIT(func) static void *__module_init_pointer __attribute((unused)) = &func;
6+
#define MODULE_EXIT(func) static void *__module_exit_pointer __attribute((unused)) = &func;
7+
8+
#endif

0 commit comments

Comments
 (0)