Moving files around to get rid of the shared include tree. Some other
[lttv.git] / ltt / branches / poly / lttv / modules / text / batchAnalysis.c
index 6270342945534a2317a50d94f119a57f0ab8972e..1c69df33fc8eedf802c848cdff1c361733dd90ba 100644 (file)
@@ -1,3 +1,21 @@
+/* This file is part of the Linux Trace Toolkit viewer
+ * Copyright (C) 2003-2004 Michel Dagenais
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License Version 2 as
+ * published by the Free Software Foundation;
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, 
+ * MA 02111-1307, USA.
+ */
+
 /* This module inserts a hook in the program main loop. This hook processes 
    all the events in the main tracefile. */
 
@@ -7,7 +25,7 @@
 #include <lttv/hook.h>
 #include <lttv/option.h>
 #include <lttv/module.h>
-#include <lttv/processTrace.h>
+#include <lttv/tracecontext.h>
 #include <lttv/state.h>
 #include <lttv/stats.h>
 #include <ltt/trace.h>
@@ -86,7 +104,7 @@ static gboolean process_traceset(void *hook_data, void *call_data)
 }
 
 
-G_MODULE_EXPORT void init(LttvModule *self, int argc, char **argv)
+static void init()
 {
   LttvAttributeValue value;
 
@@ -149,7 +167,7 @@ G_MODULE_EXPORT void init(LttvModule *self, int argc, char **argv)
 }
 
 
-G_MODULE_EXPORT void destroy()
+static void destroy()
 {
   guint i, nb;
 
@@ -180,3 +198,7 @@ G_MODULE_EXPORT void destroy()
   lttv_traceset_destroy(traceset); 
 }
 
+
+LTTV_MODULE("batchAnalysis", "Batch processing of a trace", \
+    "Run through a trace calling all the registered hooks", \
+    init, destroy, "state", "stats", "option")
This page took 0.023782 seconds and 4 git commands to generate.