Commit | Line | Data |
---|---|---|
27dd5fdf | 1 | /* This file is part of the Linux Trace Toolkit viewer |
2 | * Copyright (C) 2006 Mathieu Desnoyers | |
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 | |
b9ce0bad YB |
15 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
16 | * MA 02110-1301, USA. | |
27dd5fdf | 17 | */ |
18 | ||
19 | #ifndef LTTV_PLUGIN_TAB_H | |
20 | #define LTTV_PLUGIN_TAB_H | |
21 | ||
22 | #include <lttvwindow/lttv_plugin.h> | |
23 | #include <lttvwindow/mainwindow-private.h> | |
24 | ||
25 | /* | |
26 | * Type macros. | |
27 | */ | |
28 | ||
29 | #define LTTV_TYPE_PLUGIN_TAB (lttv_plugin_tab_get_type ()) | |
30 | #define LTTV_PLUGIN_TAB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LTTV_TYPE_PLUGIN_TAB, LttvPluginTab)) | |
31 | #define LTTV_PLUGIN_TAB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LTTV_TYPE_PLUGIN_TAB, LttvPluginTabClass)) | |
32 | #define LTTV_IS_PLUGIN_TAB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LTTV_TYPE_PLUGIN_TAB)) | |
33 | #define LTTV_IS_PLUGIN_TAB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LTTV_TYPE_PLUGIN_TAB)) | |
34 | #define LTTV_PLUGIN_TAB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LTTV_TYPE_PLUGIN_TAB, LttvPluginTabClass)) | |
35 | ||
36 | typedef struct _LttvPluginTab LttvPluginTab; | |
37 | typedef struct _LttvPluginTabClass LttvPluginTabClass; | |
38 | ||
39 | struct _LttvPluginTab { | |
40 | LttvPlugin parent; | |
41 | ||
42 | /* instance members */ | |
43 | Tab *tab; | |
44 | ||
45 | /* private */ | |
46 | }; | |
47 | ||
48 | struct _LttvPluginTabClass { | |
49 | LttvPluginClass parent; | |
50 | ||
51 | /* class members */ | |
52 | }; | |
53 | ||
54 | /* used by LTTV_PLUGIN_TAB_TYPE */ | |
55 | GType lttv_plugin_tab_get_type (void); | |
56 | ||
57 | /* | |
58 | * Method definitions. | |
59 | */ | |
60 | ||
61 | ||
62 | #endif |