X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Flttv%2Fmain.c;h=54093b267cd1b129d19d74ded454fae556ab9802;hb=48f6f3c280c4b511fdbdc3a650b2f4aa7040fc97;hp=fdb44c70e3e4f15e7ad0fd1a436460995bcc6020;hpb=eccb53529c117e1c39bd558e1db7fb801e054fb8;p=lttv.git diff --git a/ltt/branches/poly/lttv/main.c b/ltt/branches/poly/lttv/main.c index fdb44c70..54093b26 100644 --- a/ltt/branches/poly/lttv/main.c +++ b/ltt/branches/poly/lttv/main.c @@ -1,7 +1,11 @@ -#include -#include +#include +#include +#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);