diff options
author | rr- <mkurczew@gmail.com> | 2015-11-07 21:11:04 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-11-08 15:00:15 +0100 |
commit | 62f261a7b82922bce32eeaff9d1ab1b6c660598c (patch) | |
tree | 5c989f20e4b951bc92f58fdb745f2c40885d00ae /video/out/drm_common.h | |
parent | c3f2ef5491dc28d1f2f68d024b4be01c27b029e7 (diff) | |
download | mpv-62f261a7b82922bce32eeaff9d1ab1b6c660598c.tar.bz2 mpv-62f261a7b82922bce32eeaff9d1ab1b6c660598c.tar.xz |
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.
Diffstat (limited to 'video/out/drm_common.h')
-rw-r--r-- | video/out/drm_common.h | 5 |
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 |