diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-04-10 12:45:46 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-04-10 12:45:46 +0300 |
commit | 0c97e4c4144565ca3b18593d708f0d7a94905c71 (patch) | |
tree | 5678dba241d46cf99ee7acf46f84538a4a9de3db /py/stream.h | |
parent | a45e280c5814d093076048424160f03ebbec6ff4 (diff) |
py/stream: Add Python-level ioctl() method.
Will call underlying C virtual methods of stream interface. This isn't
intended to be added to every stream object (it's not in CPython), but
is convenient way to expose extra operation on Python side without
adding bunch of Python-level methods.
Diffstat (limited to 'py/stream.h')
-rw-r--r-- | py/stream.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/py/stream.h b/py/stream.h index 3df669fda..df6e94adf 100644 --- a/py/stream.h +++ b/py/stream.h @@ -55,6 +55,7 @@ MP_DECLARE_CONST_FUN_OBJ(mp_stream_unbuffered_readlines_obj); MP_DECLARE_CONST_FUN_OBJ(mp_stream_write_obj); MP_DECLARE_CONST_FUN_OBJ(mp_stream_seek_obj); MP_DECLARE_CONST_FUN_OBJ(mp_stream_tell_obj); +MP_DECLARE_CONST_FUN_OBJ(mp_stream_ioctl_obj); // these are for mp_get_stream_raise and can be or'd together #define MP_STREAM_OP_READ (1) |