py/stream: Implement generic flush() method, in terms of C-level ioctl.

This commit is contained in:
Paul Sokolovsky
2016-07-27 00:39:10 +03:00
parent ade36806c8
commit a60b0263ba
2 changed files with 12 additions and 0 deletions

View File

@@ -58,6 +58,7 @@ MP_DECLARE_CONST_FUN_OBJ(mp_stream_write_obj);
MP_DECLARE_CONST_FUN_OBJ(mp_stream_write1_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_flush_obj);
MP_DECLARE_CONST_FUN_OBJ(mp_stream_ioctl_obj);
// these are for mp_get_stream_raise and can be or'd together