blob: aef26d35a6e95fd5154a2c0d0d7850c7bf666cc1 [file] [log] [blame]
Andreea Costinasc7d5ad02020-03-09 09:41:51 +01001// Copyright 2020 The Chromium OS Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef SYSTEM_PROXY_PROTOBUF_UTIL_H_
6#define SYSTEM_PROXY_PROTOBUF_UTIL_H_
7
8#include <google/protobuf/message_lite.h>
9#include <string>
10
11namespace system_proxy {
12
13// System-proxy daemon uses protobufs to communicate with the workers.
14bool ReadProtobuf(int fd, google::protobuf::MessageLite* message);
15bool WriteProtobuf(int fd, const google::protobuf::MessageLite& message);
16
17} // namespace system_proxy
18
19#endif // SYSTEM_PROXY_PROTOBUF_UTIL_H_