diff --git a/src/lirc.c b/src/lirc.c
index 58b2cd7b0138afaf0f7d606d06730b3504394a33..965037bd23f94e8304b85278f4ecbce236b05001 100644 (file)
--- a/src/lirc.c
+++ b/src/lirc.c
if (lirc_nextcode(&code) == 0) {
while (lirc_code2char(lc, code, &txt) == 0 && txt != NULL) {
cmd = get_key_command_from_name(txt);
- if (do_input_event(cmd) != 0)
+ if (!do_input_event(cmd))
return FALSE;
}
}
}
void
-ncmpc_lirc_open()
+ncmpc_lirc_init()
{
char prog[] = "ncmpc";
int lirc_socket = 0;
g_io_channel_unref(channel);
}
-void ncmpc_lirc_close()
+void
+ncmpc_lirc_deinit()
{
if (lc)
lirc_freeconfig(lc);