forked from multirom-dev/multirom
-
Notifications
You must be signed in to change notification settings - Fork 12
/
multirom_ui.h
78 lines (67 loc) · 2.24 KB
/
multirom_ui.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
/*
* This file is part of MultiROM.
*
* MultiROM 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 3 of the License, or
* (at your option) any later version.
*
* MultiROM 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 MultiROM. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef MULTIROM_UI_H
#define MULTIROM_UI_H
#include "multirom.h"
#include "lib/input.h"
#include "lib/listview.h"
enum
{
TAB_INTERNAL = 0,
#ifndef MR_UNIFIED_TABS
TAB_USB,
#endif
TAB_MISC,
TAB_COUNT
};
#ifdef MR_UNIFIED_TABS
#define TAB_USB TAB_INTERNAL
#endif
enum
{
UI_EXIT_BOOT_ROM = 1,
UI_EXIT_REBOOT = 2,
UI_EXIT_REBOOT_RECOVERY = 3,
UI_EXIT_REBOOT_BOOTLOADER = 4,
UI_EXIT_SHUTDOWN = 5
};
int multirom_ui(struct multirom_status *s, struct multirom_rom **to_boot);
void multirom_ui_init_header(void);
void multirom_ui_change_header_selector_pos(float pos);
void multirom_ui_destroy_tab(int tab);
int multirom_ui_destroy_msgbox(void);
void multirom_ui_switch(int tab);
void multirom_ui_switch_btn(void *data);
int multirom_ui_fill_rom_list(listview *view, int mask);
void multirom_ui_auto_boot(void);
void multirom_ui_refresh_usb_handler(void);
void multirom_ui_start_pong(void *data);
void multirom_ui_init_theme(int tab);
void multirom_ui_destroy_theme(void);
void *multirom_ui_tab_rom_init(int tab_type);
void multirom_ui_tab_rom_destroy(void *data);
void multirom_ui_tab_rom_boot(void);
void multirom_ui_tab_rom_confirmed(listview_item *it);
void multirom_ui_tab_rom_refresh_usb(int action);
void multirom_ui_tab_rom_update_usb(void);
void multirom_ui_tab_rom_set_empty(void *data, int empty);
void *multirom_ui_tab_misc_init(void);
void multirom_ui_tab_misc_destroy(void *data);
void multirom_ui_tab_misc_copy_log(void *data);
void multirom_ui_tab_misc_change_clr(void *data);
void multirom_ui_reboot_btn(void *data);
#endif