diff --git a/src/core/lv_disp_private.h b/src/core/lv_disp_private.h index df78ae23c..64173998a 100644 --- a/src/core/lv_disp_private.h +++ b/src/core/lv_disp_private.h @@ -26,6 +26,11 @@ extern "C" { /********************** * TYPEDEFS **********************/ + +struct _lv_disp_t; + +typedef void (*lv_disp_flush_cb_t)(struct _lv_disp_t * disp, const lv_area_t * area, lv_color_t * px_map); + struct _lv_disp_t { /*--------------------- @@ -70,7 +75,7 @@ struct _lv_disp_t { /** MANDATORY: Write the internal buffer (draw_buf) to the display. 'lv_disp_flush_ready()' has to be * called when finished*/ - void (*flush_cb)(struct _lv_disp_t * disp_drv, const lv_area_t * area, lv_color_t * color_p); + lv_disp_flush_cb_t flush_cb; /*1: flushing is in progress. (It can't be a bit field because when it's cleared from IRQ Read-Modify-Write issue might occur)*/ volatile int flushing; diff --git a/src/core/lv_indev_private.h b/src/core/lv_indev_private.h index bd22f7151..fdea2c423 100644 --- a/src/core/lv_indev_private.h +++ b/src/core/lv_indev_private.h @@ -22,12 +22,16 @@ extern "C" { * TYPEDEFS **********************/ +struct _lv_indev_t; + +typedef void (*lv_indev_read_cb_t)(struct _lv_indev_t * indev, lv_indev_data_t * data); + struct _lv_indev_t { /**< Input device type*/ lv_indev_type_t type; /**< Function pointer to read input device data.*/ - void (*read_cb)(struct _lv_indev_t * indev, lv_indev_data_t * data); + lv_indev_read_cb_t read_cb; /** Called when an action happened on the input device. * The second parameter is the event from `lv_event_t`*/