Code

release v0.29
[ncmpc.git] / src / lirc.h
index 199ef58adfe191d06c2c1fcf504bac36aefa2e79..551879b344bd65c0756520a8ec41fbee80b45de7 100644 (file)
@@ -1,6 +1,6 @@
-/*
- * (c) 2004-2008 The Music Player Daemon Project
- * http://www.musicpd.org/
+/* ncmpc (Ncurses MPD Client)
+ * (c) 2004-2017 The Music Player Daemon Project
+ * Project homepage: http://musicpd.org
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 
 #ifndef LIRC_H
 #define LIRC_H
 
-#include "command.h"
-#include <glib.h>
+#include "config.h"
 
-int ncmpc_lirc_open(void);
-void ncmpc_lirc_close(void);
+#ifdef ENABLE_LIRC
 
-gboolean
-lirc_event(GIOChannel *source, GIOCondition condition, gpointer data);
+void
+ncmpc_lirc_init(void);
+
+void
+ncmpc_lirc_deinit(void);
+
+#else
+
+static inline void
+ncmpc_lirc_init(void) {}
+
+static inline void
+ncmpc_lirc_deinit(void) {}
+
+#endif
 
 #endif