eo2: fix eo2_base_class function signatures.

"void func(void)" != "void func()" !
The former is a func that accepts 0 parameters.
The latter is a func that accepts variable number of parameters.

Watch out.
This commit is contained in:
Tom Hacohen 2013-11-08 14:55:29 +00:00
parent 7d79b10bb6
commit d0f71a6e8b
1 changed files with 11 additions and 11 deletions

View File

@ -717,7 +717,7 @@ EAPI Eina_Bool eo2_do_start(const Eo *obj, const Eo_Class *cur_klass, const char
// end of the eo2_do barrier, unref the obj, move the stack pointer
EAPI void eo2_do_end(const Eo **ojb);
EAPI int eo2_call_stack_depth();
EAPI int eo2_call_stack_depth(void);
#define EO2_DO_CLEANUP __attribute__((cleanup(eo2_do_end)))
@ -1326,7 +1326,7 @@ eo2_parent_set(Eo *parent);
*/
#define eo_parent_get(parent) EO_BASE_ID(EO_BASE_SUB_ID_PARENT_GET), EO_TYPECHECK(Eo **, parent)
EAPI Eo *
eo2_parent_get();
eo2_parent_get(void);
/**
* @def eo_children_iterator_new
@ -1338,7 +1338,7 @@ eo2_parent_get();
*/
#define eo_children_iterator_new(it) EO_BASE_ID(EO_BASE_SUB_ID_CHILDREN_ITERATOR_NEW), EO_TYPECHECK(Eina_Iterator **, it)
EAPI Eina_Iterator *
eo2_children_iterator_new();
eo2_children_iterator_new(void);
/**
* @def eo_wref_add
@ -1433,7 +1433,7 @@ eo2_wref_del(Eo **wref);
*/
#define eo_constructor() EO_BASE_ID(EO_BASE_SUB_ID_CONSTRUCTOR)
EAPI void
eo2_constructor();
eo2_constructor(void);
/**
* @def eo_destructor
@ -1445,7 +1445,7 @@ eo2_constructor();
*/
#define eo_destructor() EO_BASE_ID(EO_BASE_SUB_ID_DESTRUCTOR)
EAPI void
eo2_destructor();
eo2_destructor(void);
/**
* @addtogroup Eo_Events Eo's Event Handling
@ -1563,7 +1563,7 @@ eo2_event_callback_forwarder_del(const Eo_Event_Description *desc, Eo *new_obj);
*/
#define eo_event_freeze() EO_BASE_ID(EO_BASE_SUB_ID_EVENT_FREEZE)
EAPI void
eo2_event_freeze();
eo2_event_freeze(void);
/**
* @def eo_event_thaw
@ -1575,7 +1575,7 @@ eo2_event_freeze();
*/
#define eo_event_thaw() EO_BASE_ID(EO_BASE_SUB_ID_EVENT_THAW)
EAPI void
eo2_event_thaw();
eo2_event_thaw(void);
/**
* @def eo_event_freeze_get
@ -1590,7 +1590,7 @@ eo2_event_thaw();
*/
#define eo_event_freeze_get(fcount) EO_BASE_ID(EO_BASE_SUB_ID_EVENT_FREEZE_GET), EO_TYPECHECK(int *, fcount)
EAPI int
eo2_event_freeze_get();
eo2_event_freeze_get(void);
/**
* @def eo_event_global_freeze
@ -1603,7 +1603,7 @@ eo2_event_freeze_get();
*/
#define eo_event_global_freeze() EO_BASE_ID(EO_BASE_SUB_ID_EVENT_GLOBAL_FREEZE)
EAPI void
eo2_event_global_freeze();
eo2_event_global_freeze(void);
/**
* @def eo_event_global_thaw
@ -1616,7 +1616,7 @@ eo2_event_global_freeze();
*/
#define eo_event_global_thaw() EO_BASE_ID(EO_BASE_SUB_ID_EVENT_GLOBAL_THAW)
EAPI void
eo2_event_global_thaw();
eo2_event_global_thaw(void);
/**
* @def eo_event_global_freeze_get
@ -1632,7 +1632,7 @@ eo2_event_global_thaw();
*/
#define eo_event_global_freeze_get(fcount) EO_BASE_ID(EO_BASE_SUB_ID_EVENT_GLOBAL_FREEZE_GET), EO_TYPECHECK(int *, fcount)
EAPI int
eo2_event_global_freeze_get();
eo2_event_global_freeze_get(void);
/**
* @def eo_event_callback_add(obj, desc, cb, data)