diff options
Diffstat (limited to 'input/appleir.c')
-rw-r--r-- | input/appleir.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/input/appleir.c b/input/appleir.c index 07a9c5b797..aca666110c 100644 --- a/input/appleir.c +++ b/input/appleir.c @@ -38,7 +38,6 @@ #include <linux/input.h> #include "mp_msg.h" -#include "help_mp.h" #define EVDEV_MAX_EVENTS 32 @@ -79,12 +78,12 @@ int mp_input_appleir_init (char *dev) if (dev) { - mp_msg (MSGT_INPUT, MSGL_V, MSGTR_INPUT_APPLE_IR_Init, dev); + mp_tmsg (MSGT_INPUT, MSGL_V, "Initializing Apple IR on %s\n", dev); fd = open (dev, O_RDONLY | O_NONBLOCK); if (fd < 0) { - mp_msg (MSGT_INPUT, MSGL_ERR, - MSGTR_INPUT_APPLE_IR_CantOpen, strerror (errno)); + mp_tmsg (MSGT_INPUT, MSGL_ERR, + "Can't open Apple IR device: %s\n", strerror (errno)); return -1; } @@ -108,20 +107,20 @@ int mp_input_appleir_init (char *dev) id.vendor == USB_VENDOR_APPLE && (id.product == USB_DEV_APPLE_IR ||id.product == USB_DEV_APPLE_IR_2)) { - mp_msg (MSGT_INPUT, MSGL_V, MSGTR_INPUT_APPLE_IR_Detect, file); + mp_tmsg (MSGT_INPUT, MSGL_V, "Detected Apple IR on %s\n", file); return fd; } close (fd); } - mp_msg (MSGT_INPUT, MSGL_ERR, - MSGTR_INPUT_APPLE_IR_CantOpen, strerror (errno)); + mp_tmsg (MSGT_INPUT, MSGL_ERR, + "Can't open Apple IR device: %s\n", strerror (errno)); } return -1; } -int mp_input_appleir_read (int fd) +int mp_input_appleir_read(void *ctx, int fd) { struct input_event ev; int i, r; |