2014-06-08 10:51:01 +04:00
|
|
|
/* vim: tabstop=4 shiftwidth=4 noexpandtab
|
2014-06-08 10:58:31 +04:00
|
|
|
* This file is part of ToaruOS and is released under the terms
|
2014-06-08 10:13:29 +04:00
|
|
|
* of the NCSA / University of Illinois License - see LICENSE.md
|
|
|
|
* Copyright (C) 2014 Kevin Lange
|
|
|
|
*/
|
2014-03-12 11:18:55 +04:00
|
|
|
#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);
|
2014-03-19 07:11:56 +04:00
|
|
|
MODULE_DEPENDS(test);
|
2014-03-12 11:18:55 +04:00
|
|
|
|