lv_vg_lite_pending.h

Typedefs

typedef struct lv_vg_lite_pending_t lv_vg_lite_pending_t
typedef void (*lv_vg_lite_pending_free_cb_t)(void *obj, void *user_data)

Functions

lv_vg_lite_pending_t *lv_vg_lite_pending_create(size_t obj_size, uint32_t capacity_default)

Create a pending list

参数:
  • obj_size -- the size of the objects in the list

  • capacity_default -- the default capacity of the list

返回:

a pointer to the pending list

void lv_vg_lite_pending_destroy(lv_vg_lite_pending_t *pending)

Destroy a pending list

参数:

pending -- pointer to the pending list

void lv_vg_lite_pending_set_free_cb(lv_vg_lite_pending_t *pending, lv_vg_lite_pending_free_cb_t free_cb, void *user_data)

Set a free callback for the pending list

参数:
  • pending -- pointer to the pending list

  • free_cb -- the free callback

  • user_data -- user data to pass to the free callback

void lv_vg_lite_pending_add(lv_vg_lite_pending_t *pending, void *obj)

Add an object to the pending list

参数:
  • pending -- pointer to the pending list

  • obj -- pointer to the object to add

void lv_vg_lite_pending_remove_all(lv_vg_lite_pending_t *pending)

Remove all objects from the pending list

参数:

pending -- pointer to the pending list