blob: 99f8253287c17d3caddaba2d016c4ee276bb8cfa [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 RebootLog& reboot_log);
ErrorOr<std::string> LastRebootUptimeAnnotation(const RebootLog& reboot_log);
} // namespace forensics::feedback
#endif // SRC_DEVELOPER_FORENSICS_FEEDBACK_REBOOT_LOG_ANNOTATIONS_H_