| // Copyright 2020 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 LIB_SYSLOG_STREAMS_CPP_ENCODE_H_ |
| #define LIB_SYSLOG_STREAMS_CPP_ENCODE_H_ |
| |
| #include <fuchsia/diagnostics/cpp/fidl.h> |
| #include <fuchsia/diagnostics/stream/cpp/fidl.h> |
| #include <zircon/status.h> |
| |
| #include <vector> |
| |
| namespace streams { |
| // log_record: writes a given record in trace format to the buffer |
| zx_status_t log_record(const fuchsia::diagnostics::stream::Record&, std::vector<uint8_t>*); |
| |
| } // namespace streams |
| |
| #endif // LIB_SYSLOG_STREAMS_CPP_ENCODE_H_ |