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