summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f2dfa15)
raw | patch | inline | side by side (parent: f2dfa15)
author | Max Kellermann <max.kellermann@gmail.com> | |
Sun, 19 Mar 2017 09:52:42 +0000 (10:52 +0100) | ||
committer | Max Kellermann <max.kellermann@gmail.com> | |
Sun, 19 Mar 2017 09:52:42 +0000 (10:52 +0100) |
src/lirc.c | patch | blob | history | |
src/lirc.h | patch | blob | history | |
src/main.c | patch | blob | history |
diff --git a/src/lirc.c b/src/lirc.c
index 58b2cd7b0138afaf0f7d606d06730b3504394a33..ce8f92891345fc24d509cfa040637b6d01bb879e 100644 (file)
--- a/src/lirc.c
+++ b/src/lirc.c
}
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);
diff --git a/src/lirc.h b/src/lirc.h
index 1d7650b559c4cd0518d717926f531d01125607e9..fa5f3b17958797e577712516510c6aa43f769cfc 100644 (file)
--- a/src/lirc.h
+++ b/src/lirc.h
#define LIRC_H
void
-ncmpc_lirc_open(void);
-void ncmpc_lirc_close(void);
+ncmpc_lirc_init(void);
+
+void
+ncmpc_lirc_deinit(void);
#endif
diff --git a/src/main.c b/src/main.c
index fd6cd7be5ae9363f443beb0a031a24c1761029d5..27a3a603b0f29871a5644cfc98c26dd290045a96 100644 (file)
--- a/src/main.c
+++ b/src/main.c
#ifdef ENABLE_LIRC
/* watch out for lirc input */
- ncmpc_lirc_open();
+ ncmpc_lirc_init();
#endif
#ifndef WIN32
close(sigwinch_pipes[1]);
#ifdef ENABLE_LIRC
- ncmpc_lirc_close();
+ ncmpc_lirc_deinit();
#endif
screen_exit();