require on guiEvents module
authorcompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Sat, 27 Sep 2003 23:08:01 +0000 (23:08 +0000)
committercompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Sat, 27 Sep 2003 23:08:01 +0000 (23:08 +0000)
git-svn-id: http://ltt.polymtl.ca/svn@268 04897980-b3bd-0310-b5e0-8ef037075253

ltt/branches/poly/lttv/modules/guiControlFlow/module.c
ltt/branches/poly/lttv/modules/guiEvents.c

index 2d2ef062fa3ff0c710799d7510187d19e7f9b620..058c5b1cffea325b90e76ab83b0f2671ac3eadcb 100644 (file)
@@ -27,7 +27,7 @@
 
 // #include "../icons/hGuiControlFlowInsert.xpm"
 
-LttvModule *Main_Win_Module;
+static LttvModule *Main_Win_Module;
 
 
 /** Array containing instanced objects. Used when module is unloaded */
index 39341b7fe05f6ac2716b96c76e0dfba9a1991045..ae3cec660e2ecd151caa2b996cf1cabbac8216f8 100644 (file)
@@ -162,13 +162,24 @@ static void get_events(EventViewerData* Event_Viewer_Data, LttTime start,
                       LttTime end, unsigned maxNumEvents, unsigned * realNumEvent);
 static gboolean parse_event(void *hook_data, void *call_data);
 
+static LttvModule *Main_Win_Module;
+
 /**
  * plugin's init function
  *
  * This function initializes the Event Viewer functionnality through the
  * gtkTraceSet API.
  */
-G_MODULE_EXPORT void init() {
+G_MODULE_EXPORT void init(LttvModule *self, int argc, char *argv[]) {
+
+       Main_Win_Module = lttv_module_require(self, "mainwin", argc, argv);
+       
+       if(Main_Win_Module == NULL)
+       {
+         g_critical("Can't load Control Flow Viewer : missing mainwin\n");
+         return;
+       }
+       
 
   g_critical("GUI Event Viewer init()");
   
This page took 0.026856 seconds and 4 git commands to generate.