X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Flttv%2Fmodules%2Fexamples%2Fsampledep.c;h=dd64c9f4106e4d12d0e2e4a061df08b326182254;hb=c7ba3367a9ed8c8af951847f0a81aeb3f167aecb;hp=805c52837b1ef9af23739b3f404e0ce167d1070c;hpb=86fd9e018236796824f8e4ffe05b3f553c67ad7b;p=lttv.git diff --git a/ltt/branches/poly/lttv/modules/examples/sampledep.c b/ltt/branches/poly/lttv/modules/examples/sampledep.c index 805c5283..dd64c9f4 100644 --- a/ltt/branches/poly/lttv/modules/examples/sampledep.c +++ b/ltt/branches/poly/lttv/modules/examples/sampledep.c @@ -8,14 +8,13 @@ /* Include module.h from lttv headers for module loading */ #include -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); }