X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fncmpc.h;h=56dee646b5b14e091cb28efc112990d2f82736b7;hb=119ed0ee8feb2a88ebd56f2afcaf931f8c5f8801;hp=e7da71778d81006e2a1143b5b36fab3fed5b7443;hpb=75fa0c73ee4ee2648f587e2eb852316061fc1053;p=ncmpc.git diff --git a/src/ncmpc.h b/src/ncmpc.h index e7da717..56dee64 100644 --- a/src/ncmpc.h +++ b/src/ncmpc.h @@ -1,49 +1,33 @@ +/* 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 PACKAGE -#include "config.h" -#endif - -/* i18n */ -#ifdef HAVE_LOCALE_H -#include -#endif -#ifdef ENABLE_NLS -#include -#include -#else -#define _(x) x -#define N_(x) x -#endif - -#define YES _("y") -#define NO _("n") - -/* welcome message time [s] */ -#define SCREEN_WELCOME_TIME 10 - -/* status message time [s] */ -#define SCREEN_STATUS_MESSAGE_TIME 3 - -/* getch() timeout for non blocking read [ms] */ -#define SCREEN_TIMEOUT 500 - -/* minumum window size */ -#define SCREEN_MIN_COLS 14 -#define SCREEN_MIN_ROWS 5 - -/* time between mpd updates [s] */ -#define MPD_UPDATE_TIME 0.5 - -/* time before trying to reconnect [ms] */ -#define MPD_RECONNECT_TIME 1500 - -#define LIST_FORMAT options.list_format - -#define STATUS_FORMAT options.status_format +#include "command.h" +/** put the terminal in a sane mode and stop/suspend ncmpc */ void sigstop(void); +void begin_input_event(void); +void end_input_event(void); +int do_input_event(command_t cmd); + #endif /* NCMPC_H */