| // Copyright 2018 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 GARNET_BIN_GUEST_PKG_BISCOTTI_GUEST_BIN_LOG_COLLECTOR_H_ |
| #define GARNET_BIN_GUEST_PKG_BISCOTTI_GUEST_BIN_LOG_COLLECTOR_H_ |
| |
| #include "garnet/bin/guest/pkg/biscotti_guest/third_party/protos/vm_host.grpc.pb.h" |
| |
| namespace biscotti { |
| |
| class LogCollector : public vm_tools::LogCollector::Service { |
| private: |
| // |vm_tools::LogCollector::Service| |
| grpc::Status CollectKernelLogs(grpc::ServerContext* context, |
| const ::vm_tools::LogRequest* request, |
| vm_tools::EmptyMessage* response) override; |
| grpc::Status CollectUserLogs(grpc::ServerContext* context, |
| const ::vm_tools::LogRequest* request, |
| vm_tools::EmptyMessage* response) override; |
| |
| grpc::Status CollectLogs(const vm_tools::LogRequest* request); |
| }; |
| |
| } // namespace biscotti |
| |
| #endif // GARNET_BIN_GUEST_PKG_BISCOTTI_GUEST_BIN_LOG_COLLECTOR_H_ |