From c0319b60f56d445c2d1c74f551e01f069b028fe6 Mon Sep 17 00:00:00 2001 From: Tao Bao Date: Thu, 13 Oct 2016 15:17:04 -0700 Subject: Some cleanups to recovery. - Remove the duplicate gCurrentUI variable in recovery.cpp; - Refactor the load/save of locale functions; - Clean up ui_print() to get rid of 256-byte buffer limit; - Declare ui in common.h; - Move the typedef of Volume into roots.h. Test: Build and boot into recovery image. Change-Id: Ia28c116858ca754133127a5ff9c722af67ad55b7 --- common.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'common.h') diff --git a/common.h b/common.h index a948fb1a0..f10fe6735 100644 --- a/common.h +++ b/common.h @@ -17,15 +17,16 @@ #ifndef RECOVERY_COMMON_H #define RECOVERY_COMMON_H -#include #include #include #define STRINGIFY(x) #x #define EXPAND(x) STRINGIFY(x) +class RecoveryUI; + +extern RecoveryUI* ui; extern bool modified_flash; -typedef struct fstab_rec Volume; // fopen a file, mounting volumes and making parent dirs as necessary. FILE* fopen_path(const char *path, const char *mode); -- cgit v1.2.3