forked from Tasssadar/multirom
-
Notifications
You must be signed in to change notification settings - Fork 12
/
hooks.h
52 lines (42 loc) · 1.49 KB
/
hooks.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
/*
* 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 MR_DEVICE_HOOKS_H
#define MR_DEVICE_HOOKS_H
#ifdef MR_DEVICE_HOOKS
#if MR_DEVICE_HOOKS >= 1
int mrom_hook_after_android_mounts(const char *busybox_path, const char *base_path, int type);
#endif
#if MR_DEVICE_HOOKS >= 2
void mrom_hook_before_fb_close(void);
#endif
#if MR_DEVICE_HOOKS >= 3
void tramp_hook_before_device_init(void);
#endif
#if MR_DEVICE_HOOKS >= 4
int mrom_hook_allow_incomplete_fstab(void);
#endif
#if MR_DEVICE_HOOKS >= 5
void mrom_hook_fixup_bootimg_cmdline(char *bootimg_cmdline, size_t bootimg_cmdline_cap);
int mrom_hook_has_kexec(void);
#endif
#if MR_DEVICE_HOOKS >= 6
void tramp_hook_encryption_setup(void);
void tramp_hook_encryption_cleanup(void);
void mrom_hook_fixup_full_cmdline(char *bootimg_cmdline, size_t bootimg_cmdline_cap);
#endif
#endif /* MR_DEVICE_HOOKS */
#endif /* MR_DEVICE_HOOKS_H */