/* Include module.h from lttv headers for module loading */
#include <lttv/module.h>
-G_MODULE_EXPORT void init() {
+G_MODULE_EXPORT void init(int argc, char * argv[], LttvModule *self) {
g_critical("Sample module dependant init()");
- lttv_module_load("samplemodule",0,NULL,DEPENDANT);
+ lttv_module_require(self, "samplemodule",argc,argv);
}
G_MODULE_EXPORT void destroy() {
g_critical("Sample module dependant destroy()");
- lttv_module_unload_name("samplemodule",DEPENDANT);
}