summaryrefslogtreecommitdiffstats
path: root/video/out/hwdec/hwdec_cuda.h
diff options
context:
space:
mode:
Diffstat (limited to 'video/out/hwdec/hwdec_cuda.h')
-rw-r--r--video/out/hwdec/hwdec_cuda.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/video/out/hwdec/hwdec_cuda.h b/video/out/hwdec/hwdec_cuda.h
index 9c55053d59..6e671b364e 100644
--- a/video/out/hwdec/hwdec_cuda.h
+++ b/video/out/hwdec/hwdec_cuda.h
@@ -50,10 +50,13 @@ struct cuda_mapper_priv {
void *ext[4];
};
-typedef bool (*cuda_interop_init)(const struct ra_hwdec *hw);
+struct cuda_interop_fn {
+ bool (*check)(const struct ra_hwdec *hw);
+ bool (*init)(const struct ra_hwdec *hw);
+};
-bool cuda_gl_init(const struct ra_hwdec *hw);
+extern struct cuda_interop_fn cuda_gl_fn;
-bool cuda_vk_init(const struct ra_hwdec *hw);
+extern struct cuda_interop_fn cuda_vk_fn;
int check_cu(const struct ra_hwdec *hw, CUresult err, const char *func);