forked from iPodLinux/podzilla0
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ipod.h
112 lines (82 loc) · 2.55 KB
/
ipod.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
/*
* Copyright (C) 2004 Bernard Leach
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#ifndef __IPOD_H__
#define __IPOD_H__
/* Global Settings */
#ifdef IPOD
#define IPOD_SETTINGS_FILE "/opt/Zillae/Podzilla0-SVN/Conf/podzilla0-svn.conf"
#else
#define IPOD_SETTINGS_FILE "podzilla.conf"
#endif
/* DISPLAY SETINGS 0 - 9 */
#define CONTRAST 0
#define BACKLIGHT 1
#define BACKLIGHT_TIMER 2
/* AUDIO SETTIGNS 10 - 19 */
#define CLICKER 10
#define VOLUME 11
#define EQUILIZER 12
#define DSPFREQUENCY 13
/* PLAYLIST SETTINGS 20 - 29 */
#define SHUFFLE 20
#define REPEAT 21
/* OTHER SETTINGS 30 - 99 */
#define LANGUAGE 30
#define WHEEL_DEBOUNCE 34
#define ACTION_DEBOUNCE 32
#define KEY_DEBOUNCE 33
#define TIME_ZONE (35)
#define TIME_DST (36)
#define TIME_IN_TITLE (37)
#define TIME_TICKER (38)
#define TIME_1224 (39)
#define TIME_WORLDTZ (40)
#define TIME_WORLDDST (41)
#define BROWSER_PATH (42)
#define BROWSER_HIDDEN (43)
#define COLORSCHEME (44) /* appearance */
#define DECORATIONS (45) /* appearance */
#define BATTERY_DIGITS (46) /* appearance */
#define DISPLAY_LOAD (47) /* appearance */
#define FONT_FILE (48)
#define SLIDE_TRANSIT (49)
#define MIN_CONTRAST 0
#define MAX_CONTRAST 128
int ipod_get_contrast(void);
int ipod_set_contrast(int contrast);
int ipod_get_backlight(void);
int ipod_set_backlight(int backlight);
int ipod_load_settings(void);
int ipod_save_settings(void);
void ipod_reset_settings(void);
int ipod_set_setting(short setting, int value);
int ipod_get_setting(short setting);
void ipod_touch_settings(void);
int ipod_set_blank_mode(int blank);
void ipod_beep(void);
#define BATTERY_LEVEL_LOW 50
#define BATTERY_LEVEL_FULL 512
int ipod_get_battery_level(void);
int ipod_is_charging(void);
void ipod_turn_off(void);
int usb_is_connected(void);
void usb_check_goto_diskmode(void);
int fw_is_connected(void);
void fw_check_goto_diskmode(void);
long ipod_get_hw_version(void);
#endif