diff options
Diffstat (limited to 'tools/perf/ui/gtk/gtk.h')
-rw-r--r-- | tools/perf/ui/gtk/gtk.h | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/tools/perf/ui/gtk/gtk.h b/tools/perf/ui/gtk/gtk.h index 3d96785ef155..0a9173ff9a61 100644 --- a/tools/perf/ui/gtk/gtk.h +++ b/tools/perf/ui/gtk/gtk.h | |||
@@ -12,7 +12,7 @@ struct perf_gtk_context { | |||
12 | GtkWidget *main_window; | 12 | GtkWidget *main_window; |
13 | GtkWidget *notebook; | 13 | GtkWidget *notebook; |
14 | 14 | ||
15 | #ifdef HAVE_GTK_INFO_BAR | 15 | #ifdef HAVE_GTK_INFO_BAR_SUPPORT |
16 | GtkWidget *info_bar; | 16 | GtkWidget *info_bar; |
17 | GtkWidget *message_label; | 17 | GtkWidget *message_label; |
18 | #endif | 18 | #endif |
@@ -20,6 +20,9 @@ struct perf_gtk_context { | |||
20 | guint statbar_ctx_id; | 20 | guint statbar_ctx_id; |
21 | }; | 21 | }; |
22 | 22 | ||
23 | int perf_gtk__init(void); | ||
24 | void perf_gtk__exit(bool wait_for_ok); | ||
25 | |||
23 | extern struct perf_gtk_context *pgctx; | 26 | extern struct perf_gtk_context *pgctx; |
24 | 27 | ||
25 | static inline bool perf_gtk__is_active_context(struct perf_gtk_context *ctx) | 28 | static inline bool perf_gtk__is_active_context(struct perf_gtk_context *ctx) |
@@ -31,7 +34,7 @@ struct perf_gtk_context *perf_gtk__activate_context(GtkWidget *window); | |||
31 | int perf_gtk__deactivate_context(struct perf_gtk_context **ctx); | 34 | int perf_gtk__deactivate_context(struct perf_gtk_context **ctx); |
32 | 35 | ||
33 | void perf_gtk__init_helpline(void); | 36 | void perf_gtk__init_helpline(void); |
34 | void perf_gtk__init_progress(void); | 37 | void gtk_ui_progress__init(void); |
35 | void perf_gtk__init_hpp(void); | 38 | void perf_gtk__init_hpp(void); |
36 | 39 | ||
37 | void perf_gtk__signal(int sig); | 40 | void perf_gtk__signal(int sig); |
@@ -39,7 +42,7 @@ void perf_gtk__resize_window(GtkWidget *window); | |||
39 | const char *perf_gtk__get_percent_color(double percent); | 42 | const char *perf_gtk__get_percent_color(double percent); |
40 | GtkWidget *perf_gtk__setup_statusbar(void); | 43 | GtkWidget *perf_gtk__setup_statusbar(void); |
41 | 44 | ||
42 | #ifdef HAVE_GTK_INFO_BAR | 45 | #ifdef HAVE_GTK_INFO_BAR_SUPPORT |
43 | GtkWidget *perf_gtk__setup_info_bar(void); | 46 | GtkWidget *perf_gtk__setup_info_bar(void); |
44 | #else | 47 | #else |
45 | static inline GtkWidget *perf_gtk__setup_info_bar(void) | 48 | static inline GtkWidget *perf_gtk__setup_info_bar(void) |
@@ -48,4 +51,17 @@ static inline GtkWidget *perf_gtk__setup_info_bar(void) | |||
48 | } | 51 | } |
49 | #endif | 52 | #endif |
50 | 53 | ||
54 | struct perf_evsel; | ||
55 | struct perf_evlist; | ||
56 | struct hist_entry; | ||
57 | struct hist_browser_timer; | ||
58 | |||
59 | int perf_evlist__gtk_browse_hists(struct perf_evlist *evlist, const char *help, | ||
60 | struct hist_browser_timer *hbt, | ||
61 | float min_pcnt); | ||
62 | int hist_entry__gtk_annotate(struct hist_entry *he, | ||
63 | struct perf_evsel *evsel, | ||
64 | struct hist_browser_timer *hbt); | ||
65 | void perf_gtk__show_annotations(void); | ||
66 | |||
51 | #endif /* _PERF_GTK_H_ */ | 67 | #endif /* _PERF_GTK_H_ */ |