X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Flttv%2Fmodules%2Fexamples%2Fsampledep.c;h=305e0460503f68597e368c9fc823ade9ee3f7d9f;hb=08b1c66e3a5ad9588d08f9477af98c0cda4f070c;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..305e0460 100644 --- a/ltt/branches/poly/lttv/modules/examples/sampledep.c +++ b/ltt/branches/poly/lttv/modules/examples/sampledep.c @@ -3,19 +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() { +static void init() { g_critical("Sample module dependant init()"); - - lttv_module_load("samplemodule",0,NULL,DEPENDANT); } -G_MODULE_EXPORT void destroy() { +static void destroy() { g_critical("Sample module dependant destroy()"); - lttv_module_unload_name("samplemodule",DEPENDANT); } - + + +LTTV_MODULE("sampledep", "Medium desc...", "Long desc...", init, destroy, \ + { "samplemodule" }) +