From: compudj Date: Wed, 1 Oct 2003 02:44:57 +0000 (+0000) Subject: required module for textDump : batchAnalysis X-Git-Tag: v0.12.20~3203 X-Git-Url: https://git.lttng.org/?a=commitdiff_plain;h=9402662db85a5ad444fde16c55c035f89a7115ed;hp=0f48dea4a9b867375fb65257247bdd60524d9b41;p=lttv.git required module for textDump : batchAnalysis git-svn-id: http://ltt.polymtl.ca/svn@286 04897980-b3bd-0310-b5e0-8ef037075253 --- diff --git a/ltt/branches/poly/lttv/textDump.c b/ltt/branches/poly/lttv/textDump.c index 797e7a12..ccc69c07 100644 --- a/ltt/branches/poly/lttv/textDump.c +++ b/ltt/branches/poly/lttv/textDump.c @@ -196,13 +196,22 @@ static int write_event_content(void *hook_data, void *call_data) } -//void init(int argc, char **argv) G_MODULE_EXPORT void init(LttvModule *self, int argc, char **argv) { LttvAttributeValue value; LttvIAttribute *attributes = LTTV_IATTRIBUTE(lttv_global_attributes()); + LttvModule *batchAnalysis = + lttv_module_require(self, "batchAnalysis", argc, argv); + + if(batchAnalysis == NULL) + { + g_error("Can't load required module batchAnalysis"); + return; + } + + a_string = g_string_new(""); a_file_name = NULL;