X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Flttv%2Fmodules%2Fexamples%2Fsampledep.c;h=9f0ca614d818eb6dfd1df01cb1369e160a9fc5ad;hb=0a06ab49ede668b34dee3ecf5406a4f1d37b6f97;hp=dd64c9f4106e4d12d0e2e4a061df08b326182254;hpb=94ec763790b1784412383217115ffacc6be8fa32;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..9f0ca614 100644 --- a/ltt/branches/poly/lttv/modules/examples/sampledep.c +++ b/ltt/branches/poly/lttv/modules/examples/sampledep.c @@ -2,19 +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(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" }) +