From 911670a90a1a2f50651351157f16775a00f784da Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 19 Mar 2017 10:52:42 +0100 Subject: [PATCH] lirc: rename public functions --- src/lirc.c | 5 +++-- src/lirc.h | 6 ++++-- src/main.c | 4 ++-- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/src/lirc.c b/src/lirc.c index 58b2cd7..ce8f928 100644 --- a/src/lirc.c +++ b/src/lirc.c @@ -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); diff --git a/src/lirc.h b/src/lirc.h index 1d7650b..fa5f3b1 100644 --- a/src/lirc.h +++ b/src/lirc.h @@ -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 diff --git a/src/main.c b/src/main.c index fd6cd7b..27a3a60 100644 --- a/src/main.c +++ b/src/main.c @@ -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(); -- 2.30.2