Eo events: Change event callback signature.
authorTom Hacohen <tom@stosb.com>
Mon, 29 Feb 2016 09:12:35 +0000 (09:12 +0000)
committerTom Hacohen <tom@stosb.com>
Mon, 29 Feb 2016 11:33:24 +0000 (11:33 +0000)
commit56ea371dfb064c28906c7d8344b0c0e03c1d3d4d
tree8752b68e7813915f2671c82c516acf3638cc6c32
parent409f45478be1143d843f5f9efe8bacb537677ed3
Eo events: Change event callback signature.

Change the Eo event callback signature to what suggested by Marcel
Hollerbach in the ML (Thread: EFL interface change - Animator).

This changes the signature of callbacks from
Eina_Bool cb(void *data, Eo *obj const Eo_Event_Description *desc, void *event_info)
to
Eina_Bool cb(void *data, const Eo_Event *event)

Where Eo_Event is a structure that holds these parameters.

This makes it less annoying to not use parameters (you end up using
EINA_UNUSED less), and allows for future extensions to callback
parameters.

@feature
src/lib/eo/Eo.h
src/lib/eo/eo_base.eo
src/lib/eo/eo_base_class.c