blob: aef26d35a6e95fd5154a2c0d0d7850c7bf666cc1 [file] [log] [blame]
// Copyright 2020 The Chromium OS 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 SYSTEM_PROXY_PROTOBUF_UTIL_H_
#define SYSTEM_PROXY_PROTOBUF_UTIL_H_
#include <google/protobuf/message_lite.h>
#include <string>
namespace system_proxy {
// System-proxy daemon uses protobufs to communicate with the workers.
bool ReadProtobuf(int fd, google::protobuf::MessageLite* message);
bool WriteProtobuf(int fd, const google::protobuf::MessageLite& message);
} // namespace system_proxy
#endif // SYSTEM_PROXY_PROTOBUF_UTIL_H_