add global proxy / cache settings to httpget class. This removes the need of passing...
[Rockbox.git] / firmware / export / power.h
bloba78a1eec78b5eaed599eebd63140bf2be29462d3
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 # if CONFIG_CHARGING == CHARGING_MONITOR
35 bool charging_state(void);
36 # endif
38 #ifndef SIMULATOR
40 void power_init(void);
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 bool tuner_power(bool status);
52 #endif
54 #endif