py/dynruntime: Export mp_load_method_maybe and mp_arg_parse_all* funcs.
Also define `mp_type_bytearray`. These all help to write native modules. Signed-off-by: Brian Pugh <bnp117@gmail.com> Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
committed by
Damien George
parent
a196468c47
commit
c624a5c0c4
@@ -154,13 +154,16 @@ 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 (*load_method_maybe)(mp_obj_t base, qstr attr, mp_obj_t *dest);
|
||||
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);
|
||||
void (*arg_parse_all)(size_t n_pos, const mp_obj_t *pos, mp_map_t *kws, size_t n_allowed, const mp_arg_t *allowed, mp_arg_val_t *out_vals);
|
||||
void (*arg_parse_all_kw_array)(size_t n_pos, size_t n_kw, const mp_obj_t *args, size_t n_allowed, const mp_arg_t *allowed, mp_arg_val_t *out_vals);
|
||||
size_t (*binary_get_size)(char struct_type, char val_type, size_t *palign);
|
||||
mp_obj_t (*binary_get_val_array)(char typecode, void *p, size_t index);
|
||||
void (*binary_set_val_array)(char typecode, void *p, size_t index, mp_obj_t val_in);
|
||||
const mp_print_t *plat_print;
|
||||
// The following entries start at index 70 and are referenced by tools-mpy_ld.py,
|
||||
// The following entries start at index 73 and are referenced by tools-mpy_ld.py,
|
||||
// see constant MP_FUN_TABLE_MP_TYPE_TYPE_OFFSET.
|
||||
const mp_obj_type_t *type_type;
|
||||
const mp_obj_type_t *type_str;
|
||||
|
||||
Reference in New Issue
Block a user