Eo base: Mark class methods.
authorTom Hacohen <tom@stosb.com>
Thu, 24 Jul 2014 13:41:23 +0000 (14:41 +0100)
committerTom Hacohen <tom@stosb.com>
Thu, 24 Jul 2014 14:35:00 +0000 (15:35 +0100)
Use the new @class attribute to mark class methods.

src/lib/eo/eo_base.eo
src/lib/eo/eo_base_class.c

index c6a9ac6..01c5124 100644 (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. */
       }
index fe9cc5f..6bc53ab 100644 (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;
 }