Some .h files should be accessible to user programmed modules and thus
[lttv.git] / ltt / branches / poly / lttv / main.c
index fdb44c70e3e4f15e7ad0fd1a436460995bcc6020..54093b267cd1b129d19d74ded454fae556ab9802 100644 (file)
@@ -1,7 +1,11 @@
 
-#include <lttv/lttv.h>
-#include <lttv/trace.h>
+#include <lttv/hook.h>
+#include <lttv/module.h>
 
+#include "lttv.h"
+#include "trace.h"
+#include "attribute.h"
+#include "option.h"
 
 /* The main program maintains a few central data structures and relies
    on modules for the rest. These data structures may be accessed by modules
@@ -11,7 +15,7 @@
    they are loaded and initialized. */
 
 
-lttv_attributes *attributes_global;
+static lttv_attributes *attributes_global;
 
 static lttv_hooks
   *hooks_init_after,
@@ -121,6 +125,12 @@ int main(int argc, char **argv) {
   
 }
 
+lttv_attributes *lttv_global_attributes()
+{
+       return attributes_global;
+}
+
+
 void lttv_module_option(void *hook_data)
 { 
   lttv_module_load(aModule,aArgc,aArgv,STANDALONE);
This page took 0.021993 seconds and 4 git commands to generate.