summaryrefslogtreecommitdiffstats
path: root/common.h
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2016-11-03 19:37:15 +0100
committerTao Bao <tbao@google.com>2016-11-03 19:57:46 +0100
commitac9d94d19c5f0e8c769d2368790df679c665ea34 (patch)
treef6121362d8836f34d5e05aca8f7bd9d89d278365 /common.h
parentMerge "tests: Set up testdata path for continuous native tests." (diff)
downloadandroid_bootable_recovery-ac9d94d19c5f0e8c769d2368790df679c665ea34.tar
android_bootable_recovery-ac9d94d19c5f0e8c769d2368790df679c665ea34.tar.gz
android_bootable_recovery-ac9d94d19c5f0e8c769d2368790df679c665ea34.tar.bz2
android_bootable_recovery-ac9d94d19c5f0e8c769d2368790df679c665ea34.tar.lz
android_bootable_recovery-ac9d94d19c5f0e8c769d2368790df679c665ea34.tar.xz
android_bootable_recovery-ac9d94d19c5f0e8c769d2368790df679c665ea34.tar.zst
android_bootable_recovery-ac9d94d19c5f0e8c769d2368790df679c665ea34.zip
Diffstat (limited to 'common.h')
-rw-r--r--common.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/common.h b/common.h
index a948fb1a0..319af3d72 100644
--- a/common.h
+++ b/common.h
@@ -17,15 +17,22 @@
#ifndef RECOVERY_COMMON_H
#define RECOVERY_COMMON_H
-#include <stdbool.h>
#include <stdio.h>
#include <stdarg.h>
#define STRINGIFY(x) #x
#define EXPAND(x) STRINGIFY(x)
+class RecoveryUI;
+
+extern RecoveryUI* ui;
extern bool modified_flash;
-typedef struct fstab_rec Volume;
+
+// The current stage, e.g. "1/2".
+extern const char* stage;
+
+// The reason argument provided in "--reason=".
+extern const char* reason;
// fopen a file, mounting volumes and making parent dirs as necessary.
FILE* fopen_path(const char *path, const char *mode);