Code

po: update ncmpc.pot
[ncmpc.git] / src / lirc.c
index 58b2cd7b0138afaf0f7d606d06730b3504394a33..965037bd23f94e8304b85278f4ecbce236b05001 100644 (file)
@@ -39,7 +39,7 @@ lirc_event(gcc_unused GIOChannel *source,
        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;
                }
        }
@@ -49,7 +49,7 @@ lirc_event(gcc_unused GIOChannel *source,
 }
 
 void
-ncmpc_lirc_open()
+ncmpc_lirc_init()
 {
        char prog[] = "ncmpc";
        int lirc_socket = 0;
@@ -67,7 +67,8 @@ ncmpc_lirc_open()
        g_io_channel_unref(channel);
 }
 
-void ncmpc_lirc_close()
+void
+ncmpc_lirc_deinit()
 {
        if (lc)
                lirc_freeconfig(lc);