FS#10365 - Optional debug output for albumart.c
[kugel-rb.git] / apps / gui / gwps-common.h
blob0d196b28e4517d06dbaf6ea09c486cf5ef5c249c
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
10 * Copyright (C) 2002 Björn Stenberg
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
20 ****************************************************************************/
21 #ifndef _GWPS_COMMON_
22 #define _GWPS_COMMON_
23 #include <stdbool.h>
24 #include <sys/types.h> /* for size_t */
26 #include "gwps.h"
28 /* fades the volume, e.g. on pause or stop */
29 void fade(bool fade_in, bool updatewps);
31 /* Initially display the wps, can fall back to the built-in wps
32 * if the chosen wps is invalid.
34 * Return true on success, otherwise false */
35 bool gui_wps_display(struct gui_wps *gui_wps);
37 /* return true if screen restore is needed
38 return false otherwise */
39 bool update_onvol_change(struct gui_wps * gwps);
41 /* Update track info related stuff, handle cue sheets as well, and redraw */
42 bool gui_wps_update(struct gui_wps *gwps);
44 bool ffwd_rew(int button);
45 void display_keylock_text(bool locked);
47 /* Refresh the WPS according to refresh_mode.
49 * Return true on success, otherwise false */
50 bool gui_wps_redraw(struct gui_wps *gwps,
51 int ffwd_offset,
52 unsigned refresh_mode);
53 #endif