Change-Id: Icc4fcbfbf0b339e6301632afcaac6e0bb74c3ea4
{
pepper_event_listener_t *listener, *tmp;
- if (object->handle_event)
- object->handle_event(object, id, info);
-
pepper_list_for_each_safe(listener, tmp, &object->event_listener_list, link)
{
if (listener->id == PEPPER_EVENT_ALL || listener->id == id)
typedef struct pepper_input pepper_input_t;
typedef struct pepper_touch_point pepper_touch_point_t;
-typedef void (*pepper_callback_t)(pepper_object_t *object, void *data);
-
struct pepper_object
{
pepper_object_type_t type;
pepper_map_t user_data_map;
pepper_map_entry_t *buckets[1 << PEPPER_OBJECT_BUCKET_BITS];
- void (*handle_event)(pepper_object_t *object, uint32_t id, void *info);
pepper_list_t event_listener_list;
};