diff options
author | albeu <albeu@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-01-31 09:39:11 +0000 |
---|---|---|
committer | albeu <albeu@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-01-31 09:39:11 +0000 |
commit | ebdb9bffa36c7017c2f472641f3799b7003147e0 (patch) | |
tree | 314e47b8da9287d1045e2856bfdacf2750b4e7e8 /input/input.c | |
parent | 5679476c95928aa73ac0e7de5d6278211879a912 (diff) |
Added lirc support in input
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4433 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'input/input.c')
-rw-r--r-- | input/input.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/input/input.c b/input/input.c index 1ddfc25f7e..110d7a0fca 100644 --- a/input/input.c +++ b/input/input.c @@ -25,6 +25,10 @@ #include "joystick.h" #endif +#ifdef HAVE_LIRC +#include "lirc.h" +#endif + // If the args field is not NULL, the command will only be passed if // an argument exist. @@ -793,6 +797,23 @@ mp_input_init(void) { } #endif +#ifdef HAVE_LIRC + { + int fd = mp_input_lirc_init(); + if(fd > 0) + mp_input_add_cmd_fd(fd,1,NULL,(mp_close_func_t)close); + } +#endif + +} + +void +mp_input_uninit(void) { + +#ifdef HAVE_LIRC + mp_input_lirc_uninit(); +#endif + } #endif /* HAVE_NEW_INPUT */ |