diff --git a/src/ncmpc.h b/src/ncmpc.h
index 7c1d519584594eb00145dc3cc416c7be84d28e19..0b6441850a4972f14cf9921b726ab7868947af1b 100644 (file)
--- a/src/ncmpc.h
+++ b/src/ncmpc.h
+/* ncmpc (Ncurses MPD Client)
+ * (c) 2004-2010 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
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * 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.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
+
#ifndef NCMPC_H
#define NCMPC_H
#ifndef NCMPC_H
#define NCMPC_H
-#ifndef PACKAGE
-#include "config.h"
-#endif
-
-#ifdef DEBUG
-void D(char *format, ...);
-#else
-#define D(...)
-#endif
-
-/* i18n */
-#ifdef HAVE_LOCALE_H
-#include <locale.h>
-#endif
-#ifdef ENABLE_NLS
-#include <libintl.h>
-#include <glib/gi18n.h>
-#else
-#define _(x) x
-#define N_(x) x
-#endif
-
-#define YES _("y")
-#define NO _("n")
-
-/* welcome message time [s] */
-#define SCREEN_WELCOME_TIME 10
-
-/* getch() timeout for non blocking read [ms] */
-#define SCREEN_TIMEOUT 500
-
-/* time in seconds between mpd updates (double) */
-#define MPD_UPDATE_TIME 0.5
-
-/* time in milliseconds before trying to reconnect (int) */
-#define MPD_RECONNECT_TIME 1500
+#include "command.h"
-/* song format - list window */
-#define DEFAULT_LIST_FORMAT "%name%|[%artist% - ]%title%|%shortfile%"
-#define LIST_FORMAT (options.list_format ? options.list_format : \
- DEFAULT_LIST_FORMAT)
+/** put the terminal in a sane mode and stop/suspend ncmpc */
+void
+sigstop(void);
-/* song format - status window */
-#define DEFAULT_STATUS_FORMAT "[%artist% - ]%title%|%shortfile%"
-#define STATUS_FORMAT (options.status_format ? options.status_format : \
- DEFAULT_STATUS_FORMAT)
+void begin_input_event(void);
+void end_input_event(void);
+int do_input_event(command_t cmd);
#endif /* NCMPC_H */
#endif /* NCMPC_H */