Code

lirc: rename public functions
authorMax Kellermann <max.kellermann@gmail.com>
Sun, 19 Mar 2017 09:52:42 +0000 (10:52 +0100)
committerMax Kellermann <max.kellermann@gmail.com>
Sun, 19 Mar 2017 09:52:42 +0000 (10:52 +0100)
src/lirc.c
src/lirc.h
src/main.c

index 58b2cd7b0138afaf0f7d606d06730b3504394a33..ce8f92891345fc24d509cfa040637b6d01bb879e 100644 (file)
@@ -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);
index 1d7650b559c4cd0518d717926f531d01125607e9..fa5f3b17958797e577712516510c6aa43f769cfc 100644 (file)
@@ -21,7 +21,9 @@
 #define LIRC_H
 
 void
-ncmpc_lirc_open(void);
-void ncmpc_lirc_close(void);
+ncmpc_lirc_init(void);
+
+void
+ncmpc_lirc_deinit(void);
 
 #endif
index fd6cd7be5ae9363f443beb0a031a24c1761029d5..27a3a603b0f29871a5644cfc98c26dd290045a96 100644 (file)
@@ -555,7 +555,7 @@ main(int argc, const char *argv[])
 
 #ifdef ENABLE_LIRC
        /* watch out for lirc input */
-       ncmpc_lirc_open();
+       ncmpc_lirc_init();
 #endif
 
 #ifndef WIN32
@@ -603,7 +603,7 @@ main(int argc, const char *argv[])
        close(sigwinch_pipes[1]);
 
 #ifdef ENABLE_LIRC
-       ncmpc_lirc_close();
+       ncmpc_lirc_deinit();
 #endif
 
        screen_exit();