summaryrefslogtreecommitdiffstats
path: root/video/out/drm_common.h
diff options
context:
space:
mode:
Diffstat (limited to 'video/out/drm_common.h')
-rw-r--r--video/out/drm_common.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/video/out/drm_common.h b/video/out/drm_common.h
index da26af7f97..98a4bad04d 100644
--- a/video/out/drm_common.h
+++ b/video/out/drm_common.h
@@ -18,6 +18,7 @@
#ifndef MP_VT_SWITCHER_H
#define MP_VT_SWITCHER_H
+#include <stdbool.h>
#include <xf86drm.h>
#include <xf86drmMode.h>
@@ -37,7 +38,7 @@ struct vt_switcher {
void *handler_data[2];
};
-int vt_switcher_init(struct vt_switcher *s, struct mp_log *log);
+bool vt_switcher_init(struct vt_switcher *s, struct mp_log *log);
void vt_switcher_destroy(struct vt_switcher *s);
void vt_switcher_poll(struct vt_switcher *s, int timeout_ms);
void vt_switcher_interrupt_poll(struct vt_switcher *s);
@@ -46,7 +47,7 @@ void vt_switcher_acquire(struct vt_switcher *s, void (*handler)(void*), void *us
void vt_switcher_release(struct vt_switcher *s, void (*handler)(void*), void *user_data);
struct kms *kms_create(struct mp_log *log);
-int kms_setup(struct kms *kms, const char *device_path, int conn_id, int mode_id);
+bool kms_setup(struct kms *kms, const char *device_path, int conn_id, int mode_id);
void kms_destroy(struct kms *kms);
#endif