From 62f261a7b82922bce32eeaff9d1ab1b6c660598c Mon Sep 17 00:00:00 2001 From: rr- Date: Sat, 7 Nov 2015 21:11:04 +0100 Subject: vo_drm: use bool rather than integer return values Since the errors weren't used for anything other than simple success/fail checks, I simplified things a bit. --- video/out/drm_common.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'video/out/drm_common.h') 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 #include #include @@ -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 -- cgit v1.2.3