Implement native function pointer check, addr conversion and register, update documents (#185)
Modified WASM runtime API: - wasm_runtime_module_malloc() - wasm_runtime_lookup_function() Introduced runtime API - wasm_runtime_register_natives()
This commit is contained in:
@ -58,11 +58,11 @@ enum {
|
||||
|
||||
extern void xpt2046_init(void);
|
||||
|
||||
extern bool touchscreen_read(lv_indev_data_t * data);
|
||||
extern bool touchscreen_read(lv_indev_data_t *data);
|
||||
|
||||
extern bool mouse_read(lv_indev_data_t * data);
|
||||
extern bool mouse_read(lv_indev_data_t *data);
|
||||
|
||||
extern void display_init(wasm_exec_env_t exec_env);
|
||||
extern void display_init(void);
|
||||
|
||||
extern void display_deinit(wasm_exec_env_t exec_env);
|
||||
|
||||
@ -70,22 +70,21 @@ extern int time_get_ms(wasm_exec_env_t exec_env);
|
||||
|
||||
extern void display_flush(wasm_exec_env_t exec_env,
|
||||
int32_t x1, int32_t y1, int32_t x2, int32_t y2,
|
||||
int32 color_p_offset);
|
||||
lv_color_t *color);
|
||||
|
||||
extern void display_fill(wasm_exec_env_t exec_env,
|
||||
int32_t x1, int32_t y1, int32_t x2, int32_t y2,
|
||||
lv_color_t color_p);
|
||||
lv_color_t *color);
|
||||
|
||||
extern void display_map(wasm_exec_env_t exec_env,
|
||||
int32_t x1, int32_t y1, int32_t x2, int32_t y2,
|
||||
const lv_color_t * color_p);
|
||||
const lv_color_t *color);
|
||||
|
||||
extern bool display_input_read(wasm_exec_env_t exec_env,
|
||||
int32 data_offset);
|
||||
extern bool display_input_read(wasm_exec_env_t exec_env, void *data);
|
||||
|
||||
void display_vdb_write(wasm_exec_env_t exec_env,
|
||||
int32 buf_offset, lv_coord_t buf_w, lv_coord_t x,
|
||||
lv_coord_t y, int32 color_p_offset, lv_opa_t opa);
|
||||
void *buf, lv_coord_t buf_w, lv_coord_t x, lv_coord_t y,
|
||||
lv_color_t *color, lv_opa_t opa);
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user