diff input/input.c @ 4432:5105f5da01d6

Added lirc support in input
author albeu
date Thu, 31 Jan 2002 09:39:11 +0000
parents 8141d2c399e4
children 83128eed25f1
line wrap: on
line diff
--- a/input/input.c	Thu Jan 31 09:37:12 2002 +0000
+++ b/input/input.c	Thu Jan 31 09:39:11 2002 +0000
@@ -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 @@
   }
 #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 */