| 1 | #ifndef LTTV_H |
| 2 | #define LTTV_H |
| 3 | |
| 4 | #include <lttv/attribute.h> |
| 5 | |
| 6 | /* The modules in the visualizer communicate with the main module and |
| 7 | with each other through attributes. There is a global set of attributes */ |
| 8 | |
| 9 | LttvAttribute *lttv_global_attributes(); |
| 10 | |
| 11 | |
| 12 | /* A number of global attributes are initialized before modules are |
| 13 | loaded, for example hooks lists. More global attributes are defined |
| 14 | in individual mudules to store information or to communicate with other |
| 15 | modules (GUI windows, menus...). |
| 16 | |
| 17 | The hooks lists (lttv_hooks) are initialized in the main module and may be |
| 18 | used by other modules. Each corresponds to a specific location in the main |
| 19 | module processing loop. The attribute key and typical usage for each |
| 20 | is indicated. |
| 21 | |
| 22 | /hooks/options/before |
| 23 | Good place to define new command line options to be parsed. |
| 24 | |
| 25 | /hooks/options/after |
| 26 | Read the values set by the command line options. |
| 27 | |
| 28 | /hooks/main/before |
| 29 | |
| 30 | /hooks/main/after |
| 31 | |
| 32 | */ |
| 33 | |
| 34 | #endif // LTTV_H |