X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Finclude%2Flttv%2Flttv.h;h=77dac57e7b8e85e47b58034ae355e1931f7f8ca1;hb=f4f8f203b436430ee95b85b0cf1c391a68dee73e;hp=ad9f3044599e8b6e922fcd8b18ca12becb583311;hpb=48f6f3c280c4b511fdbdc3a650b2f4aa7040fc97;p=lttv.git diff --git a/ltt/branches/poly/include/lttv/lttv.h b/ltt/branches/poly/include/lttv/lttv.h index ad9f3044..77dac57e 100644 --- a/ltt/branches/poly/include/lttv/lttv.h +++ b/ltt/branches/poly/include/lttv/lttv.h @@ -1,38 +1,12 @@ #ifndef LTTV_H #define LTTV_H -#include "attribute.h" - -/* Initial draft by Michel Dagenais May 2003 - * Reworked by Mathieu Desnoyers, May 2003 - */ - +#include /* The modules in the visualizer communicate with the main module and - with each other through attributes. There is a global set of attributes as - well as attributes attached to each trace set, trace and tracefile. */ - -lttv_attributes *lttv_global_attributes(); - - - -/* Modules are allowed to define new command line options. - - Each option has a long name (--long_name), a short one character - name (-c), a descriptive text, the argument type, and a - pointer to where the argument value will be stored. For an option of - type LTTV_OPT_NONE, the argument is a boolean value set to true when the - option is present. */ - -/* Those are already in option.h, cause conflict */ -//typedef enum _lttv_option_type -//{LTTV_OPT_NONE, LTTV_OPT_STRING, LTTV_OPT_INT, LTTV_OPT_LONG } -//lttv_option_type; - - -//void lttv_option_add(char *long_name, char char_name, char *description, -// lttv_option_type t, void *p); + with each other through attributes. There is a global set of attributes */ +LttvAttribute *lttv_global_attributes(); /* A number of global attributes are initialized before modules are @@ -51,30 +25,9 @@ lttv_attributes *lttv_global_attributes(); /hooks/options/after Read the values set by the command line options. - /hooks/trace_set/before - Before any analysis. - - /hooks/trace_set/after - After all traces were analyzed. - - /hooks/trace/before - Before each trace. - - /hooks/trace/after - After each trace. - - /hooks/tracefile/before - Before each tracefile. - - /hooks/tracefile/after - After each tracefile. - - /hooks/event - Called for each event + /hooks/main/before - /hooks/event_id - This attribute contains an lttv_hooks_by_id, where the hooks for each - id are to be called when an event of the associated type are found. + /hooks/main/after */