toaruos/modules/testb.c
2014-03-18 20:11:56 -07:00

22 lines
363 B
C

#include <system.h>
#include <hashmap.h>
#include <module.h>
#include <logging.h>
extern int a_function(void);
static int hello(void) {
debug_print(NOTICE, "Calling a_function from other module.");
a_function();
return 0;
}
static int goodbye(void) {
debug_print(NOTICE, "Goodbye!");
return 0;
}
MODULE_DEF(testb, hello, goodbye);
MODULE_DEPENDS(test);