diff options
author | Tao Bao <tbao@google.com> | 2016-11-04 17:08:26 +0100 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2016-11-04 17:08:26 +0100 |
commit | cb3cbaffacee7a576a849a3bca5f58e855bd2e48 (patch) | |
tree | 00d7749b9e5380f91443b69898c62df89620a577 /common.h | |
parent | Merge "updater: Fix an off-by-1 bug in file_getprop()." (diff) | |
parent | Merge "Revert "Revert "Some cleanups to recovery.""" (diff) | |
download | android_bootable_recovery-cb3cbaffacee7a576a849a3bca5f58e855bd2e48.tar android_bootable_recovery-cb3cbaffacee7a576a849a3bca5f58e855bd2e48.tar.gz android_bootable_recovery-cb3cbaffacee7a576a849a3bca5f58e855bd2e48.tar.bz2 android_bootable_recovery-cb3cbaffacee7a576a849a3bca5f58e855bd2e48.tar.lz android_bootable_recovery-cb3cbaffacee7a576a849a3bca5f58e855bd2e48.tar.xz android_bootable_recovery-cb3cbaffacee7a576a849a3bca5f58e855bd2e48.tar.zst android_bootable_recovery-cb3cbaffacee7a576a849a3bca5f58e855bd2e48.zip |
Diffstat (limited to 'common.h')
-rw-r--r-- | common.h | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -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); |