blob: 11b7e3ec917368ed9ccaf541579cc9d4da7c73c5 [file] [log] [blame]
// Copyright 2021 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef SRC_DEVELOPER_FORENSICS_FEEDBACK_REBOOT_LOG_ANNOTATIONS_H_
#define SRC_DEVELOPER_FORENSICS_FEEDBACK_REBOOT_LOG_ANNOTATIONS_H_
#include "src/developer/forensics/feedback/reboot_log/reboot_log.h"
#include "src/developer/forensics/utils/errors.h"
namespace forensics::feedback {
// Utilities for converting a RebootLog into annotations for snapshots.
std::string LastRebootReasonAnnotation(const FinalShutdownInfo& final_shutdown_info);
ErrorOrString LastRebootUptimeAnnotation(const RebootLog& reboot_log);
ErrorOrString LastRebootRuntimeAnnotation(const RebootLog& reboot_log);
ErrorOrString LastRebootTotalSuspendedTimeAnnotation(const RebootLog& reboot_log);
ErrorOrString LastShutdownGracefulActionAnnotation(const FinalShutdownInfo& final_shutdown_info);
} // namespace forensics::feedback
#endif // SRC_DEVELOPER_FORENSICS_FEEDBACK_REBOOT_LOG_ANNOTATIONS_H_