Bump version numbers for 3.13
[maemo-rb.git] / apps / gui / wps.h
bloba463b0e9bb9791e4b3bc470751a4fb7b3d30c48f
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 _WPS_H_
22 #define _WPS_H_
23 #include <stdbool.h>
24 #include "config.h"
25 #include "screen_access.h"
27 long gui_wps_show(void);
29 /* wrapper for the wps to load the skin (.wps/.rwps) files */
30 void wps_data_load(enum screen_type, const char *, bool);
32 void gui_sync_wps_init(void) INIT_ATTR;
34 /* fade (if enabled) and pause the audio, optionally rewind a little */
35 void pause_action(bool may_fade, bool updatewps);
36 void unpause_action(bool may_fade, bool updatewps);
38 /* fades the volume, e.g. on pause or stop */
39 void fade(bool fade_in, bool updatewps);
41 bool ffwd_rew(int button);
42 void wps_do_playpause(bool updatewps);
44 #ifdef IPOD_ACCESSORY_PROTOCOL
45 /* whether the wps is fading the volume due to pausing/stopping */
46 bool is_wps_fading(void);
47 /* return length of the current ff or rewin action, IAP needs this */
48 int wps_get_ff_rewind_count(void);
49 #endif /* IPOD_ACCESSORY_PROTOCOL */
51 /* in milliseconds */
52 #define DEFAULT_SKIP_TRESH 3000l
54 #endif /* _WPS_H_ */