diff options
author | Thomas Jansen <mithi@mithi.net> | 2008-11-10 14:13:46 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-11-10 14:13:46 +0100 |
commit | 65804e73eaed005b0f8114e5c6f03fa59341a2bc (patch) | |
tree | 293df2bec18223dda8cffbc6c70c50be6ced24dc /src/lirc.h | |
parent | 237fc6e8d2a4e6d1b958fbd40322a8b99b9525d2 (diff) | |
download | mpd-65804e73eaed005b0f8114e5c6f03fa59341a2bc.tar.gz mpd-65804e73eaed005b0f8114e5c6f03fa59341a2bc.tar.xz mpd-65804e73eaed005b0f8114e5c6f03fa59341a2bc.zip |
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
Diffstat (limited to '')
-rw-r--r-- | src/lirc.h | 5 |
1 files changed, 4 insertions, 1 deletions
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 <glib.h> 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 |