update
[lttv.git] / ltt / branches / poly / lttv / lttv / lttv.h
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
19 #ifndef LTTV_H
20 #define LTTV_H
21
22 #include <lttv/attribute.h>
23
24 /* The modules in the visualizer communicate with the main module and
25 with each other through attributes. There is a global set of attributes */
26
27 LttvAttribute *lttv_global_attributes();
28
29 extern gboolean lttv_profile_memory;
30
31 extern int lttv_argc;
32
33 extern char **lttv_argv;
34
35 /* A number of global attributes are initialized before modules are
36 loaded, for example hooks lists. More global attributes are defined
37 in individual mudules to store information or to communicate with other
38 modules (GUI windows, menus...).
39
40 The hooks lists (lttv_hooks) are initialized in the main module and may be
41 used by other modules. Each corresponds to a specific location in the main
42 module processing loop. The attribute key and typical usage for each
43 is indicated.
44
45 /hooks/options/before
46 Good place to define new command line options to be parsed.
47
48 /hooks/options/after
49 Read the values set by the command line options.
50
51 /hooks/main/before
52
53 /hooks/main/after
54
55 */
56
57 #define g_info(format...) g_log (G_LOG_DOMAIN, G_LOG_LEVEL_INFO, format)
58
59 #ifndef g_debug
60 #define g_debug(format...) g_log (G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, format)
61 #endif
62
63 #endif // LTTV_H
This page took 0.034401 seconds and 4 git commands to generate.