aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/nanopb/examples/network_server/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/nanopb/examples/network_server/common.h')
-rw-r--r--third_party/nanopb/examples/network_server/common.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/third_party/nanopb/examples/network_server/common.h b/third_party/nanopb/examples/network_server/common.h
new file mode 100644
index 0000000000..8dab3b7c38
--- /dev/null
+++ b/third_party/nanopb/examples/network_server/common.h
@@ -0,0 +1,9 @@
+#ifndef _PB_EXAMPLE_COMMON_H_
+#define _PB_EXAMPLE_COMMON_H_
+
+#include <pb.h>
+
+pb_ostream_t pb_ostream_from_socket(int fd);
+pb_istream_t pb_istream_from_socket(int fd);
+
+#endif \ No newline at end of file