diff options
author | Damien George <damien.p.george@gmail.com> | 2014-04-18 22:59:24 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-04-18 22:59:24 +0100 |
commit | b11b85adaac9ac2e460647e59f951f5086cd2d4e (patch) | |
tree | c0c2e5b3159cc7e6455e9614ce93c5e432029428 /py/obj.h | |
parent | a8f5d15fc6f2ee988e028ce8a5fc9f50c17309f4 (diff) | |
download | micropython-b11b85adaac9ac2e460647e59f951f5086cd2d4e.tar.gz micropython-b11b85adaac9ac2e460647e59f951f5086cd2d4e.zip |
py: Allow to pass buffer protocol flags to get_buffer helper funcs.
Diffstat (limited to 'py/obj.h')
-rw-r--r-- | py/obj.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -209,8 +209,8 @@ typedef struct _mp_buffer_info_t { typedef struct _mp_buffer_p_t { machine_int_t (*get_buffer)(mp_obj_t obj, mp_buffer_info_t *bufinfo, int flags); } mp_buffer_p_t; -bool mp_get_buffer(mp_obj_t obj, mp_buffer_info_t *bufinfo); -void mp_get_buffer_raise(mp_obj_t obj, mp_buffer_info_t *bufinfo); +bool mp_get_buffer(mp_obj_t obj, mp_buffer_info_t *bufinfo, int flags); +void mp_get_buffer_raise(mp_obj_t obj, mp_buffer_info_t *bufinfo, int flags); // Stream protocol typedef struct _mp_stream_p_t { |