6 #pragma GCC diagnostic ignored "-Wstrict-prototypes"
8 #pragma GCC diagnostic error "-Wstrict-prototypes"
11 struct perf_gtk_context {
12 GtkWidget *main_window;
17 extern struct perf_gtk_context *pgctx;
19 static inline bool perf_gtk__is_active_context(struct perf_gtk_context *ctx)
21 return ctx && ctx->main_window;
24 struct perf_gtk_context *perf_gtk__activate_context(GtkWidget *window);
25 int perf_gtk__deactivate_context(struct perf_gtk_context **ctx);
27 #endif /* _PERF_GTK_H_ */