aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/capture/kms_vaapi.h1
-rw-r--r--include/capture/xcomposite_vaapi.h1
-rw-r--r--include/utils.h3
3 files changed, 5 insertions, 0 deletions
diff --git a/include/capture/kms_vaapi.h b/include/capture/kms_vaapi.h
index a4aa3ed..2836123 100644
--- a/include/capture/kms_vaapi.h
+++ b/include/capture/kms_vaapi.h
@@ -12,6 +12,7 @@ typedef struct {
Display *dpy;
const char *display_to_capture; /* if this is "screen", then the entire x11 screen is captured (all displays). A copy is made of this */
gsr_gpu_info gpu_inf;
+ const char *card_path; /* reference */
} gsr_capture_kms_vaapi_params;
gsr_capture* gsr_capture_kms_vaapi_create(const gsr_capture_kms_vaapi_params *params);
diff --git a/include/capture/xcomposite_vaapi.h b/include/capture/xcomposite_vaapi.h
index e152f29..6cf30c3 100644
--- a/include/capture/xcomposite_vaapi.h
+++ b/include/capture/xcomposite_vaapi.h
@@ -11,6 +11,7 @@ typedef struct {
Window window;
bool follow_focused; /* If this is set then |window| is ignored */
vec2i region_size; /* This is currently only used with |follow_focused| */
+ const char *card_path; /* reference */
} gsr_capture_xcomposite_vaapi_params;
gsr_capture* gsr_capture_xcomposite_vaapi_create(const gsr_capture_xcomposite_vaapi_params *params);
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 */