summaryrefslogtreecommitdiffstats
path: root/libs/nanopb/examples/network_server/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'libs/nanopb/examples/network_server/common.h')
-rw-r--r--libs/nanopb/examples/network_server/common.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/libs/nanopb/examples/network_server/common.h b/libs/nanopb/examples/network_server/common.h
new file mode 100644
index 00000000..8dab3b7c
--- /dev/null
+++ b/libs/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