Make the statusbar setting use a temp variable so it doesnt look wierd when changing it
[Rockbox.git] / firmware / export / power.h
blobfbc3ded3c15f6d2fe4169fb76aec1ef60208497d
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
10 * Copyright (C) 2002 by Linus Nielsen Feltzing
12 * All files in this archive are subject to the GNU General Public License.
13 * See the file COPYING in the source tree root for full license agreement.
15 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
16 * KIND, either express or implied.
18 ****************************************************************************/
19 #ifndef _POWER_H_
20 #define _POWER_H_
22 #if CONFIG_CHARGING == CHARGING_CONTROL
23 extern bool charger_enabled;
24 void charger_enable(bool on);
25 #endif
27 #if CONFIG_CHARGING
28 bool charger_inserted(void);
29 #endif
31 void power_off(void);
32 void ide_power_enable(bool on);
34 #ifndef SIMULATOR
36 void power_init(void);
38 # if CONFIG_CHARGING == CHARGING_MONITOR
39 bool charging_state(void);
40 # endif
42 bool ide_powered(void);
43 #endif
45 #ifdef HAVE_SPDIF_POWER
46 void spdif_power_enable(bool on);
47 bool spdif_powered(void);
48 #endif
50 #if CONFIG_TUNER
51 extern bool tuner_power(bool status);
52 extern bool tuner_power_nolock(bool status);
53 extern bool tuner_powered(void);
54 #endif
56 #endif