summaryrefslogtreecommitdiffstats
path: root/logging.h
diff options
context:
space:
mode:
authorxunchang <xunchang@google.com>2019-04-13 01:22:15 +0200
committerxunchang <xunchang@google.com>2019-04-15 21:22:11 +0200
commit316e9717461890dd319dc370970069fe4532a561 (patch)
treebe9173eec48b83689ea9c4222e660a6341ece9d3 /logging.h
parentMerge "Add socket communication between recovery and minadbd" (diff)
downloadandroid_bootable_recovery-316e9717461890dd319dc370970069fe4532a561.tar
android_bootable_recovery-316e9717461890dd319dc370970069fe4532a561.tar.gz
android_bootable_recovery-316e9717461890dd319dc370970069fe4532a561.tar.bz2
android_bootable_recovery-316e9717461890dd319dc370970069fe4532a561.tar.lz
android_bootable_recovery-316e9717461890dd319dc370970069fe4532a561.tar.xz
android_bootable_recovery-316e9717461890dd319dc370970069fe4532a561.tar.zst
android_bootable_recovery-316e9717461890dd319dc370970069fe4532a561.zip
Diffstat (limited to '')
-rw-r--r--otautil/include/otautil/logging.h (renamed from logging.h)5
1 files changed, 3 insertions, 2 deletions
diff --git a/logging.h b/otautil/include/otautil/logging.h
index 3cfbc7af6..c4f13292b 100644
--- a/logging.h
+++ b/otautil/include/otautil/logging.h
@@ -26,6 +26,8 @@
static constexpr int KEEP_LOG_COUNT = 10;
+struct selabel_handle;
+
ssize_t logbasename(log_id_t id, char prio, const char* filename, const char* buf, size_t len,
void* arg);
@@ -41,8 +43,7 @@ void rotate_logs(const char* last_log_file, const char* last_kmsg_file);
void check_and_fclose(FILE* fp, const std::string& name);
void copy_log_file_to_pmsg(const std::string& source, const std::string& destination);
-void copy_log_file(const std::string& source, const std::string& destination, bool append);
-void copy_logs(bool modified_flash, bool has_cache);
+void copy_logs(bool save_current_log, bool has_cache, const selabel_handle* sehandle);
void reset_tmplog_offset();
void save_kernel_log(const char* destination);