summaryrefslogtreecommitdiff
path: root/py/stream.h
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-01-08 02:43:48 +0200
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-01-08 17:38:38 +0200
commite98cf40c34b46cc1a4b814344f40d28a04c79d57 (patch)
treee4fac74070111a48e7054355047a0e245571b9b2 /py/stream.h
parent5b15daf6d1f41c166d8c94677663d2d5f91538d1 (diff)
Add generic implementations of Python read()/write methods for streams.
These can be used for any object which implements stream protocol (mp_stream_p_t).
Diffstat (limited to 'py/stream.h')
-rw-r--r--py/stream.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/py/stream.h b/py/stream.h
new file mode 100644
index 000000000..8a579b762
--- /dev/null
+++ b/py/stream.h
@@ -0,0 +1,2 @@
+extern const mp_obj_fun_native_t mp_stream_read_obj;
+extern const mp_obj_fun_native_t mp_stream_write_obj;