aboutsummaryrefslogtreecommitdiff
path: root/include/utils.h
diff options
context:
space:
mode:
authordec05eba <dec05eba®protonmail.com>2023-04-16 22:48:22 +0200
committerdec05eba <dec05eba@protonmail.com>2023-04-16 22:50:43 +0200
commitc0ebae365d3ee20dc6ed1cf71d998bf040e93149 (patch)
treed66723be1a63cb7fb571a7115972c79fde5176f9 /include/utils.h
parentd953d0bb363799211d546035e825d248b9b3c2ed (diff)
Find /dev/dri/card path that exists (the first one)
Diffstat (limited to 'include/utils.h')
-rw-r--r--include/utils.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/utils.h b/include/utils.h
index fb1365b..7d76a2d 100644
--- a/include/utils.h
+++ b/include/utils.h
@@ -36,4 +36,7 @@ bool get_monitor_by_name(Display *display, const char *name, gsr_monitor *monito
bool gl_get_gpu_info(Display *dpy, gsr_gpu_info *info);
+/* |output| should be at least 128 bytes in size */
+bool gsr_get_valid_card_path(char *output);
+
#endif /* GSR_UTILS_H */