9c312311 |
1 | /* This file is part of the Linux Trace Toolkit viewer |
2 | * Copyright (C) 2003-2004 Michel Dagenais |
3 | * |
4 | * This program is free software; you can redistribute it and/or modify |
5 | * it under the terms of the GNU General Public License Version 2 as |
6 | * published by the Free Software Foundation; |
7 | * |
8 | * This program is distributed in the hope that it will be useful, |
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | * GNU General Public License for more details. |
12 | * |
13 | * You should have received a copy of the GNU General Public License |
14 | * along with this program; if not, write to the Free Software |
15 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, |
16 | * MA 02111-1307, USA. |
17 | */ |
18 | |
c5d77517 |
19 | #ifndef LTTV_H |
20 | #define LTTV_H |
21 | |
996acd92 |
22 | #include <lttv/attribute.h> |
c71d80de |
23 | |
c5d77517 |
24 | /* The modules in the visualizer communicate with the main module and |
dc877563 |
25 | with each other through attributes. There is a global set of attributes */ |
c5d77517 |
26 | |
996acd92 |
27 | LttvAttribute *lttv_global_attributes(); |
c5d77517 |
28 | |
29 | |
30 | /* A number of global attributes are initialized before modules are |
31 | loaded, for example hooks lists. More global attributes are defined |
32 | in individual mudules to store information or to communicate with other |
33 | modules (GUI windows, menus...). |
34 | |
35 | The hooks lists (lttv_hooks) are initialized in the main module and may be |
36 | used by other modules. Each corresponds to a specific location in the main |
37 | module processing loop. The attribute key and typical usage for each |
38 | is indicated. |
39 | |
40 | /hooks/options/before |
41 | Good place to define new command line options to be parsed. |
42 | |
43 | /hooks/options/after |
44 | Read the values set by the command line options. |
45 | |
dc877563 |
46 | /hooks/main/before |
c5d77517 |
47 | |
dc877563 |
48 | /hooks/main/after |
c5d77517 |
49 | |
50 | */ |
51 | |
b445142a |
52 | #define g_info(format...) g_log (G_LOG_DOMAIN, G_LOG_LEVEL_INFO, format) |
53 | #define g_debug(format...) g_log (G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, format) |
54 | |
c5d77517 |
55 | #endif // LTTV_H |