Linus Nielsen Feltzing | 7c64830 | 2002-07-22 22:41:32 +0000 | [diff] [blame] | 1 | /*************************************************************************** |
| 2 | * __________ __ ___. |
| 3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ |
| 4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / |
| 5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < |
| 6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ |
| 7 | * \/ \/ \/ \/ \/ |
| 8 | * $Id$ |
| 9 | * |
| 10 | * Copyright (C) 2002 Linus Nielsen Feltzing |
| 11 | * |
Daniel Stenberg | 2acc0ac | 2008-06-28 18:10:04 +0000 | [diff] [blame] | 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. |
Linus Nielsen Feltzing | 7c64830 | 2002-07-22 22:41:32 +0000 | [diff] [blame] | 16 | * |
| 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 Feltzing | 7da9477 | 2005-10-28 00:00:00 +0000 | [diff] [blame] | 24 | #if defined(HAVE_LCD_CHARCELLS) |
| 25 | extern bool record; |
| 26 | extern bool audio; |
| 27 | extern bool param; |
| 28 | extern bool usb; |
| 29 | #endif |
| 30 | |
Linus Nielsen Feltzing | 7c64830 | 2002-07-22 22:41:32 +0000 | [diff] [blame] | 31 | enum playmode |
| 32 | { |
| 33 | STATUS_PLAY, |
| 34 | STATUS_STOP, |
Markus Braun | de8fbf0 | 2002-08-07 10:35:26 +0000 | [diff] [blame] | 35 | STATUS_PAUSE, |
| 36 | STATUS_FASTFORWARD, |
| 37 | STATUS_FASTBACKWARD, |
| 38 | STATUS_RECORD, |
Anton Oleynikov | 2c83634 | 2005-11-19 20:45:32 +0000 | [diff] [blame] | 39 | STATUS_RECORD_PAUSE, |
| 40 | STATUS_RADIO, |
| 41 | STATUS_RADIO_PAUSE |
Linus Nielsen Feltzing | 7c64830 | 2002-07-22 22:41:32 +0000 | [diff] [blame] | 42 | }; |
| 43 | |
Linus Nielsen Feltzing | 32e27d9 | 2004-06-27 01:05:40 +0000 | [diff] [blame] | 44 | void status_set_ffmode(enum playmode mode); |
Miika Pekkarinen | d9874b2 | 2005-08-21 19:17:50 +0000 | [diff] [blame] | 45 | enum playmode status_get_ffmode(void); |
Linus Nielsen Feltzing | 7da9477 | 2005-10-28 00:00:00 +0000 | [diff] [blame] | 46 | int current_playmode(void); |
| 47 | |
Thomas Martitz | 35e8b14 | 2010-06-21 16:53:00 +0000 | [diff] [blame] | 48 | #if (CONFIG_PLATFORM & PLATFORM_HOSTED) |
Kevin Ferrare | 1a1abf2 | 2005-11-20 01:02:14 +0000 | [diff] [blame] | 49 | #include <time.h> |
| 50 | #endif |
| 51 | #ifdef HAVE_LCD_CHARCELLS |
Mats Lidell | a87ce29 | 2002-10-15 12:53:33 +0000 | [diff] [blame] | 52 | void status_set_record(bool b); |
| 53 | void status_set_audio(bool b); |
| 54 | void status_set_param(bool b); |
| 55 | void status_set_usb(bool b); |
Kevin Ferrare | 1a1abf2 | 2005-11-20 01:02:14 +0000 | [diff] [blame] | 56 | #endif /* HAVE_LCD_CHARCELLS */ |
Mats Lidell | a87ce29 | 2002-10-15 12:53:33 +0000 | [diff] [blame] | 57 | |
Kevin Ferrare | 1a1abf2 | 2005-11-20 01:02:14 +0000 | [diff] [blame] | 58 | #endif /* _STATUS_H */ |