aboutsummaryrefslogtreecommitdiff
path: root/car/pb_stream.h
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2017-08-20 15:27:52 +0200
committerDimitri Sokolyuk <demon@dim13.org>2017-08-20 15:27:52 +0200
commit615215d3137d6bd753cbd855928a4dbea105fd05 (patch)
treeeca194596e79592ff48bacebbd0b89ceb4460cbc /car/pb_stream.h
parent0f3a959b2f0bb78b12e404230d4a7a3db79e03e4 (diff)
stream
Diffstat (limited to 'car/pb_stream.h')
-rw-r--r--car/pb_stream.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/car/pb_stream.h b/car/pb_stream.h
new file mode 100644
index 0000000..00be77c
--- /dev/null
+++ b/car/pb_stream.h
@@ -0,0 +1,12 @@
+#ifndef PB_STREAM
+#define PB_STREAM
+
+#include <Stream.h>
+#include <Print.h>
+#include "pb_encode.h"
+#include "pb_decode.h"
+
+void pb_istream_from_stream(Stream &stream, pb_istream_t &istream);
+void pb_ostream_from_stream(Print &stream, pb_ostream_t &ostream);
+
+#endif