diff options
| author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-04-05 21:58:03 +0300 |
|---|---|---|
| committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-04-05 22:06:52 +0300 |
| commit | e6a4d4e23c5e3d31436d3cebfabc894d5772c0d8 (patch) | |
| tree | 1a6b09a3a339daaf2183730d7922fd7de121f843 /py/obj.h | |
| parent | e4cb7c61582e0908f5c461b297f0387aa9c33785 (diff) | |
py: Move stream-related declarations from obj.h to stream.h.
Diffstat (limited to 'py/obj.h')
| -rw-r--r-- | py/obj.h | 12 |
1 files changed, 0 insertions, 12 deletions
@@ -444,7 +444,6 @@ bool mp_get_buffer(mp_obj_t obj, mp_buffer_info_t *bufinfo, mp_uint_t flags); void mp_get_buffer_raise(mp_obj_t obj, mp_buffer_info_t *bufinfo, mp_uint_t flags); // Stream protocol -#define MP_STREAM_ERROR ((mp_uint_t)-1) typedef struct _mp_stream_p_t { // On error, functions should return MP_STREAM_ERROR and fill in *errcode (values // are implementation-dependent, but will be exposed to user, e.g. via exception). @@ -454,17 +453,6 @@ typedef struct _mp_stream_p_t { mp_uint_t is_text : 1; // default is bytes, set this for text stream } mp_stream_p_t; -// Stream ioctl request codes -#define MP_STREAM_FLUSH (1) -#define MP_STREAM_SEEK (2) -#define MP_STREAM_POLL (3) - -// Argument structure for MP_STREAM_SEEK -struct mp_stream_seek_t { - mp_off_t offset; - int whence; -}; - struct _mp_obj_type_t { mp_obj_base_t base; qstr name; |
