Andreea Costinas | c7d5ad0 | 2020-03-09 09:41:51 +0100 | [diff] [blame^] | 1 | // 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 | |
| 11 | namespace system_proxy { |
| 12 | |
| 13 | // System-proxy daemon uses protobufs to communicate with the workers. |
| 14 | bool ReadProtobuf(int fd, google::protobuf::MessageLite* message); |
| 15 | bool WriteProtobuf(int fd, const google::protobuf::MessageLite& message); |
| 16 | |
| 17 | } // namespace system_proxy |
| 18 | |
| 19 | #endif // SYSTEM_PROXY_PROTOBUF_UTIL_H_ |