blob: 5a71497b9b37e7bccf5ede7010df9b122338e6f3 [file] [log] [blame]
// Copyright 2019 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.
#include "src/developer/forensics/crash_reports/info/main_service_info.h"
#include <lib/syslog/cpp/macros.h>
namespace forensics {
namespace crash_reports {
MainServiceInfo::MainServiceInfo(std::shared_ptr<InfoContext> context)
: context_(std::move(context)) {
FX_CHECK(context_);
}
void MainServiceInfo::ExposeConfig(const Config& config) {
context_->InspectManager().ExposeConfig(config);
}
void MainServiceInfo::UpdateCrashRegisterProtocolStats(InspectProtocolStatsUpdateFn update) {
context_->InspectManager().UpdateCrashRegisterProtocolStats(update);
}
void MainServiceInfo::UpdateCrashReporterProtocolStats(InspectProtocolStatsUpdateFn update) {
context_->InspectManager().UpdateCrashReporterProtocolStats(update);
}
} // namespace crash_reports
} // namespace forensics