X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fplayer_command.h;h=99f73e0cebb8cc815da996b4f582f10c10d48f9b;hb=373736315529f8b760df043a21ee7526941c8bea;hp=70d07fd5decf53059be5f8608f2229b20fef4152;hpb=e9e1ac46382355c1eb77dde720d026f25e62a329;p=ncmpc.git diff --git a/src/player_command.h b/src/player_command.h index 70d07fd..99f73e0 100644 --- a/src/player_command.h +++ b/src/player_command.h @@ -1,17 +1,17 @@ /* ncmpc (Ncurses MPD Client) - * (c) 2004-2009 The Music Player Daemon Project + * (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 * 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. @@ -22,12 +22,21 @@ #include "command.h" +#include + struct mpdclient; extern int seek_id; extern int seek_target_time; -int +/** + * Call this before exiting; it will unschedule the timer for delayed + * seeking. + */ +void +cancel_seek_timer(void); + +bool handle_player_command(struct mpdclient *c, command_t cmd); #endif