forked from iPodLinux/ipodloader2
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathconfig.h
More file actions
37 lines (31 loc) · 693 Bytes
/
config.h
File metadata and controls
37 lines (31 loc) · 693 Bytes
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
#ifndef _CONFIG_H_
#define _CONFIG_H_
#include "bootloader.h"
#define CONFIG_IMAGE_BINARY 0x00
#define CONFIG_IMAGE_SPECIAL 0x01
#define CONFIG_IMAGE_ROCKBOX 0x02
typedef struct {
uint32 type;
char *title;
char *path;
} config_image_t;
typedef struct {
config_image_t *image;
int16 timeout;
int16 def; // default item index in menu, 1-based
int16 items;
int16 backlight;
int16 contrast;
uint16 debug;
uint16 usegradient;
uint16 bgcolor;
uint16 hicolor;
uint16 beep_time; // in ms
uint16 beep_period;
char *boot_tune;
int16 disable_boot_tune;
int16 ata_standby_code;
} config_t;
void config_init(void);
config_t *config_get(void);
#endif