X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Flttv%2Fmodules%2Fexamples%2Fsampledep.c;h=305e0460503f68597e368c9fc823ade9ee3f7d9f;hb=08b1c66e3a5ad9588d08f9477af98c0cda4f070c;hp=dd64c9f4106e4d12d0e2e4a061df08b326182254;hpb=dbb7bb0937929c494291d7a286c6ece90c27ac07;p=lttv.git diff --git a/ltt/branches/poly/lttv/modules/examples/sampledep.c b/ltt/branches/poly/lttv/modules/examples/sampledep.c index dd64c9f4..305e0460 100644 --- a/ltt/branches/poly/lttv/modules/examples/sampledep.c +++ b/ltt/branches/poly/lttv/modules/examples/sampledep.c @@ -3,18 +3,19 @@ /* Created by Mathieu Desnoyers, may 2003 */ #include -#include /* Include module.h from lttv headers for module loading */ #include -G_MODULE_EXPORT void init(int argc, char * argv[], LttvModule *self) { +static void init() { g_critical("Sample module dependant init()"); - - lttv_module_require(self, "samplemodule",argc,argv); } -G_MODULE_EXPORT void destroy() { +static void destroy() { g_critical("Sample module dependant destroy()"); } - + + +LTTV_MODULE("sampledep", "Medium desc...", "Long desc...", init, destroy, \ + { "samplemodule" }) +