From 65804e73eaed005b0f8114e5c6f03fa59341a2bc Mon Sep 17 00:00:00 2001 From: Thomas Jansen Date: Mon, 10 Nov 2008 14:13:46 +0100 Subject: lirc: refactored event handler * moved lirc_event to lirc.c and split out the parts that depend on variables in main.c into three separate functions * changed keyboard_event accordingly to avoid duplicate code * merged lirc_event with ncmpc_lirc_get_command --- src/lirc.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/lirc.h') diff --git a/src/lirc.h b/src/lirc.h index 9359898ad..a3045a206 100644 --- a/src/lirc.h +++ b/src/lirc.h @@ -2,9 +2,12 @@ #define LIRC_H #include "command.h" +#include int ncmpc_lirc_open(void); void ncmpc_lirc_close(void); -command_t ncmpc_lirc_get_command(void); + +gboolean +lirc_event(GIOChannel *source, GIOCondition condition, gpointer data); #endif -- cgit v1.2.3