Find /dev/dri/card path that exists (the first one)

This commit is contained in:
dec05eba
2023-04-16 22:48:22 +02:00
committed by dec05eba
parent d953d0bb36
commit c0ebae365d
7 changed files with 42 additions and 15 deletions

View File

@@ -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 */