aboutsummaryrefslogtreecommitdiff
path: root/include/utils.h
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-02-09 00:23:52 +0100
committerdec05eba <dec05eba@protonmail.com>2024-02-09 00:23:52 +0100
commit3eb7bae12c9fe50913a57656d2b324d4da18c30a (patch)
treee979679a7d9103a7e67648f70c54da79e71a62c0 /include/utils.h
parent463393a0c0615ca500645a856f348684546bc1f6 (diff)
Move card path to egl struct, use egl struct for monitor enumeration
Diffstat (limited to 'include/utils.h')
-rw-r--r--include/utils.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/utils.h b/include/utils.h
index 392591a..26a0aed 100644
--- a/include/utils.h
+++ b/include/utils.h
@@ -43,8 +43,9 @@ typedef struct {
double clock_get_monotonic_seconds(void);
typedef void (*active_monitor_callback)(const gsr_monitor *monitor, void *userdata);
-void for_each_active_monitor_output(void *connection, gsr_connection_type connection_type, active_monitor_callback callback, void *userdata);
-bool get_monitor_by_name(void *connection, gsr_connection_type connection_type, const char *name, gsr_monitor *monitor);
+void for_each_active_monitor_output_x11(Display *display, active_monitor_callback callback, void *userdata);
+void for_each_active_monitor_output(const gsr_egl *egl, gsr_connection_type connection_type, active_monitor_callback callback, void *userdata);
+bool get_monitor_by_name(const gsr_egl *egl, gsr_connection_type connection_type, const char *name, gsr_monitor *monitor);
bool gl_get_gpu_info(gsr_egl *egl, gsr_gpu_info *info);