aboutsummaryrefslogtreecommitdiff
path: root/include/utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/utils.h')
-rw-r--r--include/utils.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/utils.h b/include/utils.h
index f4925e5..fb1365b 100644
--- a/include/utils.h
+++ b/include/utils.h
@@ -5,6 +5,17 @@
#include <stdbool.h>
#include <X11/extensions/Xrandr.h>
+typedef enum {
+ GSR_GPU_VENDOR_AMD,
+ GSR_GPU_VENDOR_INTEL,
+ GSR_GPU_VENDOR_NVIDIA
+} gsr_gpu_vendor;
+
+typedef struct {
+ gsr_gpu_vendor vendor;
+ int gpu_version; /* 0 if unknown */
+} gsr_gpu_info;
+
typedef struct {
vec2i pos;
vec2i size;
@@ -23,4 +34,6 @@ typedef void (*active_monitor_callback)(const XRROutputInfo *output_info, const
void for_each_active_monitor_output(Display *display, active_monitor_callback callback, void *userdata);
bool get_monitor_by_name(Display *display, const char *name, gsr_monitor *monitor);
+bool gl_get_gpu_info(Display *dpy, gsr_gpu_info *info);
+
#endif /* GSR_UTILS_H */