aboutsummaryrefslogtreecommitdiff
path: root/car/pb/pb_stream.h
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2017-08-21 23:20:18 +0200
committerDimitri Sokolyuk <demon@dim13.org>2017-08-21 23:20:18 +0200
commit2de5220071f515ac59261d1e40b076701f40923a (patch)
tree706f312c71dc0dd2426e7de8c02c0a1262f504cc /car/pb/pb_stream.h
parent22bec7ba538aa7619bd4f742684c2007d1fe9e7c (diff)
Add trim
Diffstat (limited to 'car/pb/pb_stream.h')
-rw-r--r--car/pb/pb_stream.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/car/pb/pb_stream.h b/car/pb/pb_stream.h
new file mode 100644
index 0000000..00be77c
--- /dev/null
+++ b/car/pb/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