X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Flttv%2Fmodules%2Fexamples%2Fsampledep.c;h=9f0ca614d818eb6dfd1df01cb1369e160a9fc5ad;hb=728d0c3ea0f5f236770ac2f330dccada59c59366;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..9f0ca614 100644 --- a/ltt/branches/poly/lttv/modules/examples/sampledep.c +++ b/ltt/branches/poly/lttv/modules/examples/sampledep.c @@ -2,20 +2,24 @@ /* Created by Mathieu Desnoyers, may 2003 */ +#ifdef HAVE_CONFIG_H +#include +#endif + #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" }) +