summaryrefslogtreecommitdiffstats
path: root/common.h
diff options
context:
space:
mode:
authorJerry Zhang <zhangjerry@google.com>2018-05-03 01:56:00 +0200
committerJerry Zhang <zhangjerry@google.com>2018-05-07 23:14:17 +0200
commit152933a28e9afd9d696f5b0284e638894e6492ee (patch)
tree5cb7ba653a1a16dd2b603cc66a3da75c59e0ef1b /common.h
parentMerge changes I1cc5d702,I32ab9854 (diff)
downloadandroid_bootable_recovery-152933a28e9afd9d696f5b0284e638894e6492ee.tar
android_bootable_recovery-152933a28e9afd9d696f5b0284e638894e6492ee.tar.gz
android_bootable_recovery-152933a28e9afd9d696f5b0284e638894e6492ee.tar.bz2
android_bootable_recovery-152933a28e9afd9d696f5b0284e638894e6492ee.tar.lz
android_bootable_recovery-152933a28e9afd9d696f5b0284e638894e6492ee.tar.xz
android_bootable_recovery-152933a28e9afd9d696f5b0284e638894e6492ee.tar.zst
android_bootable_recovery-152933a28e9afd9d696f5b0284e638894e6492ee.zip
Diffstat (limited to 'common.h')
-rw-r--r--common.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/common.h b/common.h
index de536fdb4..3dc36a960 100644
--- a/common.h
+++ b/common.h
@@ -27,7 +27,9 @@
static constexpr int kRecoveryApiVersion = 3;
class RecoveryUI;
+struct selabel_handle;
+extern struct selabel_handle* sehandle;
extern RecoveryUI* ui;
extern bool modified_flash;
@@ -37,13 +39,6 @@ extern std::string stage;
// The reason argument provided in "--reason=".
extern const char* reason;
-// fopen(3)'s the given file, by mounting volumes and making parent dirs as necessary. Returns the
-// file pointer, or nullptr on error.
-FILE* fopen_path(const std::string& path, const char* mode);
-
-// In turn fflush(3)'s, fsync(3)'s and fclose(3)'s the given stream.
-void check_and_fclose(FILE* fp, const std::string& name);
-
void ui_print(const char* format, ...) __printflike(1, 2);
bool is_ro_debuggable();