Eo base: Mark class methods.

Use the new @class attribute to mark class methods.
This commit is contained in:
Tom Hacohen 2014-07-24 14:41:23 +01:00
parent 58a9de0309
commit 490eebabea
2 changed files with 6 additions and 6 deletions

View File

@ -22,7 +22,7 @@ Parents keep references to their children so in order to delete objects that hav
Eo* parent; /*@ the new parent */
}
}
event_global_freeze_count {
event_global_freeze_count @class {
get {
/*@ return freeze events of object.
Return event freeze count. */
@ -57,7 +57,7 @@ Lets event callbacks be called for the object. */
/*@ freeze events of object.
Prevents event callbacks from being called for the object. */
}
event_global_freeze {
event_global_freeze @class {
/*@ freeze events of object.
Prevents event callbacks from being called for the object. */
}
@ -105,7 +105,7 @@ Should not be used with #eo_do. Only use it with #eo_do_super. */
@in const(void)* user_data; /*@ The data to compare */
}
}
event_global_thaw {
event_global_thaw @class {
/*@ thaw events of object.
Lets event callbacks be called for the object. */
}

View File

@ -781,13 +781,13 @@ _eo_base_event_freeze_count_get(Eo *obj EINA_UNUSED, Eo_Base_Data *pd)
}
EOLIAN static void
_eo_base_event_global_freeze(Eo *klass EINA_UNUSED, Eo_Base_Data *pd EINA_UNUSED)
_eo_base_event_global_freeze(Eo *klass EINA_UNUSED, void *pd EINA_UNUSED)
{
event_freeze_count++;
}
EOLIAN static void
_eo_base_event_global_thaw(Eo *klass EINA_UNUSED, Eo_Base_Data *pd EINA_UNUSED)
_eo_base_event_global_thaw(Eo *klass EINA_UNUSED, void *pd EINA_UNUSED)
{
if (event_freeze_count > 0)
{
@ -800,7 +800,7 @@ _eo_base_event_global_thaw(Eo *klass EINA_UNUSED, Eo_Base_Data *pd EINA_UNUSED)
}
EOLIAN static int
_eo_base_event_global_freeze_count_get(Eo *klass EINA_UNUSED, Eo_Base_Data *pd EINA_UNUSED)
_eo_base_event_global_freeze_count_get(Eo *klass EINA_UNUSED, void *pd EINA_UNUSED)
{
return event_freeze_count;
}