summaryrefslogtreecommitdiff
path: root/py/nativeglue.h
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2023-10-13 17:37:56 +1100
committerDamien George <damien@micropython.org>2023-10-16 11:23:11 +1100
commit9b63421fb36a9674eda01c1bc111f070b7b81329 (patch)
tree2e55d9a23c17ff80ca7e539e7678d7138b54193e /py/nativeglue.h
parent9c7ea9b14ac0378f580bd8ed55b22ef311eda20b (diff)
py/dynruntime: Add mp_get_buffer.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'py/nativeglue.h')
-rw-r--r--py/nativeglue.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/nativeglue.h b/py/nativeglue.h
index 7b1ccd8d4..cf73ffbfc 100644
--- a/py/nativeglue.h
+++ b/py/nativeglue.h
@@ -154,7 +154,7 @@ typedef struct _mp_fun_table_t {
mp_obj_t (*obj_new_float_from_d)(double d);
float (*obj_get_float_to_f)(mp_obj_t o);
double (*obj_get_float_to_d)(mp_obj_t o);
- void (*get_buffer_raise)(mp_obj_t obj, mp_buffer_info_t *bufinfo, mp_uint_t flags);
+ bool (*get_buffer)(mp_obj_t obj, mp_buffer_info_t *bufinfo, mp_uint_t flags);
const mp_stream_p_t *(*get_stream_raise)(mp_obj_t self_in, int flags);
const mp_print_t *plat_print;
const mp_obj_type_t *type_type;