blob: c8ec7bb354aa1d1e5a0c38572f677a0730da6f50 [file] [log] [blame]
Linus Nielsen Feltzing7c648302002-07-22 22:41:32 +00001/***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
9 *
10 * Copyright (C) 2002 Linus Nielsen Feltzing
11 *
Daniel Stenberg2acc0ac2008-06-28 18:10:04 +000012 * 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.
Linus Nielsen Feltzing7c648302002-07-22 22:41:32 +000016 *
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
19 *
20 ****************************************************************************/
21#ifndef _STATUS_H
22#define _STATUS_H
23
Linus Nielsen Feltzing7da94772005-10-28 00:00:00 +000024#if defined(HAVE_LCD_CHARCELLS)
25extern bool record;
26extern bool audio;
27extern bool param;
28extern bool usb;
29#endif
30
Linus Nielsen Feltzing7c648302002-07-22 22:41:32 +000031enum playmode
32{
33 STATUS_PLAY,
34 STATUS_STOP,
Markus Braunde8fbf02002-08-07 10:35:26 +000035 STATUS_PAUSE,
36 STATUS_FASTFORWARD,
37 STATUS_FASTBACKWARD,
38 STATUS_RECORD,
Anton Oleynikov2c836342005-11-19 20:45:32 +000039 STATUS_RECORD_PAUSE,
40 STATUS_RADIO,
41 STATUS_RADIO_PAUSE
Linus Nielsen Feltzing7c648302002-07-22 22:41:32 +000042};
43
Linus Nielsen Feltzing32e27d92004-06-27 01:05:40 +000044void status_set_ffmode(enum playmode mode);
Miika Pekkarinend9874b22005-08-21 19:17:50 +000045enum playmode status_get_ffmode(void);
Linus Nielsen Feltzing7da94772005-10-28 00:00:00 +000046int current_playmode(void);
47
Thomas Martitz35e8b142010-06-21 16:53:00 +000048#if (CONFIG_PLATFORM & PLATFORM_HOSTED)
Kevin Ferrare1a1abf22005-11-20 01:02:14 +000049#include <time.h>
50#endif
51#ifdef HAVE_LCD_CHARCELLS
Mats Lidella87ce292002-10-15 12:53:33 +000052void status_set_record(bool b);
53void status_set_audio(bool b);
54void status_set_param(bool b);
55void status_set_usb(bool b);
Kevin Ferrare1a1abf22005-11-20 01:02:14 +000056#endif /* HAVE_LCD_CHARCELLS */
Mats Lidella87ce292002-10-15 12:53:33 +000057
Kevin Ferrare1a1abf22005-11-20 01:02:14 +000058#endif /* _STATUS_H */