xref: /openbmc/linux/tools/perf/ui/gtk/setup.c (revision 95e9fd10)
1 #include "gtk.h"
2 #include "../../util/cache.h"
3 #include "../../util/debug.h"
4 
5 extern struct perf_error_ops perf_gtk_eops;
6 
7 int perf_gtk__init(void)
8 {
9 	perf_error__register(&perf_gtk_eops);
10 	return gtk_init_check(NULL, NULL) ? 0 : -1;
11 }
12 
13 void perf_gtk__exit(bool wait_for_ok __used)
14 {
15 	perf_error__unregister(&perf_gtk_eops);
16 	gtk_main_quit();
17 }
18