From: Max Kellermann Date: Sun, 19 Mar 2017 09:52:42 +0000 (+0100) Subject: lirc: rename public functions X-Git-Tag: v0.26~40 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=911670a90a1a2f50651351157f16775a00f784da;p=ncmpc.git lirc: rename public functions --- 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();