diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-04-09 00:25:28 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-04-09 01:07:37 +0300 |
commit | 3aa8ee7c9e2e9fd50ffb4b588518bd84b40fef84 (patch) | |
tree | 98cce37eac4fbb744c8c1841fae47e735e0466a4 /py/obj.h | |
parent | 2b0091983ff88272314ab69aaceb3c69f88c4518 (diff) | |
download | micropython-3aa8ee7c9e2e9fd50ffb4b588518bd84b40fef84.tar.gz micropython-3aa8ee7c9e2e9fd50ffb4b588518bd84b40fef84.zip |
py: Add mp_get_buffer(), mp_get_buffer_raise() convenience functions to API.
Diffstat (limited to 'py/obj.h')
-rw-r--r-- | py/obj.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -196,6 +196,8 @@ typedef struct _buffer_info_t { typedef struct _mp_buffer_p_t { machine_int_t (*get_buffer)(mp_obj_t obj, buffer_info_t *bufinfo, int flags); } mp_buffer_p_t; +bool mp_get_buffer(mp_obj_t obj, buffer_info_t *bufinfo); +void mp_get_buffer_raise(mp_obj_t obj, buffer_info_t *bufinfo); // Stream protocol typedef struct _mp_stream_p_t { |