From 08e6d4912dc83dc37f49a23a5e4247981eeccae4 Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Mon, 9 Jul 2012 09:09:46 +0000 Subject: [PATCH] Eo: added a version field to the class description. SVN revision: 73494 --- legacy/eobj/src/examples/eo_isa/complex.c | 1 + legacy/eobj/src/examples/eo_isa/interface.c | 1 + legacy/eobj/src/examples/eo_isa/mixin.c | 1 + legacy/eobj/src/examples/eo_isa/simple.c | 1 + legacy/eobj/src/examples/evas/elw_box.c | 1 + legacy/eobj/src/examples/evas/elw_boxedbutton.c | 1 + legacy/eobj/src/examples/evas/elw_button.c | 1 + legacy/eobj/src/examples/evas/elw_win.c | 1 + legacy/eobj/src/examples/evas/evas_obj.c | 1 + legacy/eobj/src/examples/simple/interface.c | 1 + legacy/eobj/src/examples/simple/mixin.c | 1 + legacy/eobj/src/examples/simple/simple.c | 1 + legacy/eobj/src/lib/Eo.h | 7 +++++++ legacy/eobj/src/lib/eo_base_class.c | 1 + legacy/eobj/src/tests/access/inherit.c | 1 + legacy/eobj/src/tests/access/simple.c | 1 + legacy/eobj/src/tests/composite_objects/comp.c | 1 + legacy/eobj/src/tests/composite_objects/simple.c | 1 + legacy/eobj/src/tests/constructors/mixin.c | 1 + legacy/eobj/src/tests/constructors/simple.c | 1 + legacy/eobj/src/tests/constructors/simple2.c | 1 + legacy/eobj/src/tests/constructors/simple3.c | 1 + legacy/eobj/src/tests/constructors/simple4.c | 1 + legacy/eobj/src/tests/constructors/simple5.c | 1 + legacy/eobj/src/tests/constructors/simple6.c | 1 + legacy/eobj/src/tests/constructors/simple7.c | 1 + legacy/eobj/src/tests/eo_suite/class_simple.c | 1 + legacy/eobj/src/tests/eo_suite/eo_test_class_errors.c | 10 ++++++++++ legacy/eobj/src/tests/eo_suite/eo_test_general.c | 7 +++++++ legacy/eobj/src/tests/function_overrides/inherit.c | 1 + legacy/eobj/src/tests/function_overrides/inherit2.c | 1 + legacy/eobj/src/tests/function_overrides/inherit3.c | 1 + legacy/eobj/src/tests/function_overrides/simple.c | 1 + legacy/eobj/src/tests/interface/interface.c | 1 + legacy/eobj/src/tests/interface/interface2.c | 1 + legacy/eobj/src/tests/interface/simple.c | 1 + legacy/eobj/src/tests/mixin/mixin.c | 1 + legacy/eobj/src/tests/mixin/mixin2.c | 1 + legacy/eobj/src/tests/mixin/mixin3.c | 1 + legacy/eobj/src/tests/mixin/simple.c | 1 + legacy/eobj/src/tests/signals/simple.c | 1 + 41 files changed, 62 insertions(+) diff --git a/legacy/eobj/src/examples/eo_isa/complex.c b/legacy/eobj/src/examples/eo_isa/complex.c index 03656f0cfd..4265af6ac9 100644 --- a/legacy/eobj/src/examples/eo_isa/complex.c +++ b/legacy/eobj/src/examples/eo_isa/complex.c @@ -6,6 +6,7 @@ #define MY_CLASS COMPLEX_CLASS static const Eo_Class_Description class_desc = { + EO_VERSION, "Complex", EO_CLASS_TYPE_REGULAR, EO_CLASS_DESCRIPTION_OPS(NULL, NULL, 0), diff --git a/legacy/eobj/src/examples/eo_isa/interface.c b/legacy/eobj/src/examples/eo_isa/interface.c index 52ef1d3c3d..2bfcc8a7f1 100644 --- a/legacy/eobj/src/examples/eo_isa/interface.c +++ b/legacy/eobj/src/examples/eo_isa/interface.c @@ -13,6 +13,7 @@ static const Eo_Op_Description op_desc[] = { }; static const Eo_Class_Description class_desc = { + EO_VERSION, "Interface", EO_CLASS_TYPE_INTERFACE, EO_CLASS_DESCRIPTION_OPS(&INTERFACE_BASE_ID, op_desc, INTERFACE_SUB_ID_LAST), diff --git a/legacy/eobj/src/examples/eo_isa/mixin.c b/legacy/eobj/src/examples/eo_isa/mixin.c index cd3cfb5ff6..b94ba6db83 100644 --- a/legacy/eobj/src/examples/eo_isa/mixin.c +++ b/legacy/eobj/src/examples/eo_isa/mixin.c @@ -37,6 +37,7 @@ static const Eo_Op_Description op_desc[] = { }; static const Eo_Class_Description class_desc = { + EO_VERSION, "Mixin", EO_CLASS_TYPE_MIXIN, EO_CLASS_DESCRIPTION_OPS(&MIXIN_BASE_ID, op_desc, MIXIN_SUB_ID_LAST), diff --git a/legacy/eobj/src/examples/eo_isa/simple.c b/legacy/eobj/src/examples/eo_isa/simple.c index 6bf3fbf914..d16032bfa0 100644 --- a/legacy/eobj/src/examples/eo_isa/simple.c +++ b/legacy/eobj/src/examples/eo_isa/simple.c @@ -63,6 +63,7 @@ static const Eo_Op_Description op_desc[] = { }; static const Eo_Class_Description class_desc = { + EO_VERSION, "Simple", EO_CLASS_TYPE_REGULAR, EO_CLASS_DESCRIPTION_OPS(&SIMPLE_BASE_ID, op_desc, SIMPLE_SUB_ID_LAST), diff --git a/legacy/eobj/src/examples/evas/elw_box.c b/legacy/eobj/src/examples/evas/elw_box.c index 77c838fecb..027a0e3257 100644 --- a/legacy/eobj/src/examples/evas/elw_box.c +++ b/legacy/eobj/src/examples/evas/elw_box.c @@ -58,6 +58,7 @@ static const Eo_Op_Description op_desc[] = { }; static const Eo_Class_Description class_desc = { + EO_VERSION, "Elw Box", EO_CLASS_TYPE_REGULAR, EO_CLASS_DESCRIPTION_OPS(&ELW_BOX_BASE_ID, op_desc, ELW_BOX_SUB_ID_LAST), diff --git a/legacy/eobj/src/examples/evas/elw_boxedbutton.c b/legacy/eobj/src/examples/evas/elw_boxedbutton.c index 5da231ab46..59d9d6b716 100644 --- a/legacy/eobj/src/examples/evas/elw_boxedbutton.c +++ b/legacy/eobj/src/examples/evas/elw_boxedbutton.c @@ -41,6 +41,7 @@ _class_constructor(Eo_Class *klass) } static const Eo_Class_Description class_desc = { + EO_VERSION, "Elw BoxedButton", EO_CLASS_TYPE_REGULAR, EO_CLASS_DESCRIPTION_OPS(NULL, NULL, 0), diff --git a/legacy/eobj/src/examples/evas/elw_button.c b/legacy/eobj/src/examples/evas/elw_button.c index df2b13a6cd..d1a5231d42 100644 --- a/legacy/eobj/src/examples/evas/elw_button.c +++ b/legacy/eobj/src/examples/evas/elw_button.c @@ -99,6 +99,7 @@ static const Eo_Event_Description *event_desc[] = { }; static const Eo_Class_Description class_desc = { + EO_VERSION, "Elw Button", EO_CLASS_TYPE_REGULAR, EO_CLASS_DESCRIPTION_OPS(&ELW_BUTTON_BASE_ID, op_desc, ELW_BUTTON_SUB_ID_LAST), diff --git a/legacy/eobj/src/examples/evas/elw_win.c b/legacy/eobj/src/examples/evas/elw_win.c index ea15d45ffe..d05d465e0a 100644 --- a/legacy/eobj/src/examples/evas/elw_win.c +++ b/legacy/eobj/src/examples/evas/elw_win.c @@ -55,6 +55,7 @@ _class_constructor(Eo_Class *klass) } static const Eo_Class_Description class_desc = { + EO_VERSION, "Elw Win", EO_CLASS_TYPE_REGULAR, EO_CLASS_DESCRIPTION_OPS(NULL, NULL, 0), diff --git a/legacy/eobj/src/examples/evas/evas_obj.c b/legacy/eobj/src/examples/evas/evas_obj.c index 24bcb757f3..957be476fe 100644 --- a/legacy/eobj/src/examples/evas/evas_obj.c +++ b/legacy/eobj/src/examples/evas/evas_obj.c @@ -131,6 +131,7 @@ static const Eo_Op_Description op_desc[] = { }; static const Eo_Class_Description class_desc = { + EO_VERSION, "Evas Object", EO_CLASS_TYPE_REGULAR_NO_INSTANT, EO_CLASS_DESCRIPTION_OPS(&EXEVAS_OBJ_BASE_ID, op_desc, EXEVAS_OBJ_SUB_ID_LAST), diff --git a/legacy/eobj/src/examples/simple/interface.c b/legacy/eobj/src/examples/simple/interface.c index 52ef1d3c3d..2bfcc8a7f1 100644 --- a/legacy/eobj/src/examples/simple/interface.c +++ b/legacy/eobj/src/examples/simple/interface.c @@ -13,6 +13,7 @@ static const Eo_Op_Description op_desc[] = { }; static const Eo_Class_Description class_desc = { + EO_VERSION, "Interface", EO_CLASS_TYPE_INTERFACE, EO_CLASS_DESCRIPTION_OPS(&INTERFACE_BASE_ID, op_desc, INTERFACE_SUB_ID_LAST), diff --git a/legacy/eobj/src/examples/simple/mixin.c b/legacy/eobj/src/examples/simple/mixin.c index cd3cfb5ff6..b94ba6db83 100644 --- a/legacy/eobj/src/examples/simple/mixin.c +++ b/legacy/eobj/src/examples/simple/mixin.c @@ -37,6 +37,7 @@ static const Eo_Op_Description op_desc[] = { }; static const Eo_Class_Description class_desc = { + EO_VERSION, "Mixin", EO_CLASS_TYPE_MIXIN, EO_CLASS_DESCRIPTION_OPS(&MIXIN_BASE_ID, op_desc, MIXIN_SUB_ID_LAST), diff --git a/legacy/eobj/src/examples/simple/simple.c b/legacy/eobj/src/examples/simple/simple.c index 6bf3fbf914..d16032bfa0 100644 --- a/legacy/eobj/src/examples/simple/simple.c +++ b/legacy/eobj/src/examples/simple/simple.c @@ -63,6 +63,7 @@ static const Eo_Op_Description op_desc[] = { }; static const Eo_Class_Description class_desc = { + EO_VERSION, "Simple", EO_CLASS_TYPE_REGULAR, EO_CLASS_DESCRIPTION_OPS(&SIMPLE_BASE_ID, op_desc, SIMPLE_SUB_ID_LAST), diff --git a/legacy/eobj/src/lib/Eo.h b/legacy/eobj/src/lib/Eo.h index b1d00d017f..d2fa9d7bb3 100644 --- a/legacy/eobj/src/lib/Eo.h +++ b/legacy/eobj/src/lib/Eo.h @@ -330,6 +330,12 @@ struct _Eo_Op_Description */ typedef struct _Eo_Op_Description Eo_Op_Description; +/** + * @def EO_VERSION + * The current version of EO. + */ +#define EO_VERSION 1 + /** * @struct _Eo_Class_Description * This struct holds the description of a class. @@ -338,6 +344,7 @@ typedef struct _Eo_Op_Description Eo_Op_Description; */ struct _Eo_Class_Description { + unsigned int version; /**< The current version of eo, use #EO_VERSION */ const char *name; /**< The name of the class. */ Eo_Class_Type type; /**< The type of the class. */ struct { diff --git a/legacy/eobj/src/lib/eo_base_class.c b/legacy/eobj/src/lib/eo_base_class.c index 1aa3aedffd..9b5870cc63 100644 --- a/legacy/eobj/src/lib/eo_base_class.c +++ b/legacy/eobj/src/lib/eo_base_class.c @@ -562,6 +562,7 @@ static const Eo_Event_Description *event_desc[] = { }; static const Eo_Class_Description class_desc = { + EO_VERSION, "Eo Base", EO_CLASS_TYPE_REGULAR_NO_INSTANT, EO_CLASS_DESCRIPTION_OPS(NULL, op_desc, EO_BASE_SUB_ID_LAST), diff --git a/legacy/eobj/src/tests/access/inherit.c b/legacy/eobj/src/tests/access/inherit.c index 32360e571a..8f3fe4b862 100644 --- a/legacy/eobj/src/tests/access/inherit.c +++ b/legacy/eobj/src/tests/access/inherit.c @@ -35,6 +35,7 @@ static const Eo_Op_Description op_desc[] = { }; static const Eo_Class_Description class_desc = { + EO_VERSION, "Inherit", EO_CLASS_TYPE_REGULAR, EO_CLASS_DESCRIPTION_OPS(&INHERIT_BASE_ID, op_desc, INHERIT_SUB_ID_LAST), diff --git a/legacy/eobj/src/tests/access/simple.c b/legacy/eobj/src/tests/access/simple.c index 12cb082399..64484be203 100644 --- a/legacy/eobj/src/tests/access/simple.c +++ b/legacy/eobj/src/tests/access/simple.c @@ -52,6 +52,7 @@ static const Eo_Event_Description *event_desc[] = { }; static const Eo_Class_Description class_desc = { + EO_VERSION, "Simple", EO_CLASS_TYPE_REGULAR, EO_CLASS_DESCRIPTION_OPS(&SIMPLE_BASE_ID, op_desc, SIMPLE_SUB_ID_LAST), diff --git a/legacy/eobj/src/tests/composite_objects/comp.c b/legacy/eobj/src/tests/composite_objects/comp.c index c126c5b078..2c27576c68 100644 --- a/legacy/eobj/src/tests/composite_objects/comp.c +++ b/legacy/eobj/src/tests/composite_objects/comp.c @@ -48,6 +48,7 @@ _class_constructor(Eo_Class *klass) } static const Eo_Class_Description class_desc = { + EO_VERSION, "Comp", EO_CLASS_TYPE_REGULAR, EO_CLASS_DESCRIPTION_OPS(NULL, NULL, 0), diff --git a/legacy/eobj/src/tests/composite_objects/simple.c b/legacy/eobj/src/tests/composite_objects/simple.c index da56b651db..2bd3259f08 100644 --- a/legacy/eobj/src/tests/composite_objects/simple.c +++ b/legacy/eobj/src/tests/composite_objects/simple.c @@ -55,6 +55,7 @@ static const Eo_Event_Description *event_desc[] = { }; static const Eo_Class_Description class_desc = { + EO_VERSION, "Simple", EO_CLASS_TYPE_REGULAR, EO_CLASS_DESCRIPTION_OPS(&SIMPLE_BASE_ID, op_desc, SIMPLE_SUB_ID_LAST), diff --git a/legacy/eobj/src/tests/constructors/mixin.c b/legacy/eobj/src/tests/constructors/mixin.c index 5c8b16fc77..859032928b 100644 --- a/legacy/eobj/src/tests/constructors/mixin.c +++ b/legacy/eobj/src/tests/constructors/mixin.c @@ -54,6 +54,7 @@ static const Eo_Op_Description op_desc[] = { }; static const Eo_Class_Description class_desc = { + EO_VERSION, "Mixin", EO_CLASS_TYPE_MIXIN, EO_CLASS_DESCRIPTION_OPS(&MIXIN_BASE_ID, op_desc, MIXIN_SUB_ID_LAST), diff --git a/legacy/eobj/src/tests/constructors/simple.c b/legacy/eobj/src/tests/constructors/simple.c index 789a7622a0..856b2b4898 100644 --- a/legacy/eobj/src/tests/constructors/simple.c +++ b/legacy/eobj/src/tests/constructors/simple.c @@ -90,6 +90,7 @@ static const Eo_Op_Description op_desc[] = { }; static const Eo_Class_Description class_desc = { + EO_VERSION, "Simple", EO_CLASS_TYPE_REGULAR, EO_CLASS_DESCRIPTION_OPS(&SIMPLE_BASE_ID, op_desc, SIMPLE_SUB_ID_LAST), diff --git a/legacy/eobj/src/tests/constructors/simple2.c b/legacy/eobj/src/tests/constructors/simple2.c index 9effd917b4..65c9252585 100644 --- a/legacy/eobj/src/tests/constructors/simple2.c +++ b/legacy/eobj/src/tests/constructors/simple2.c @@ -26,6 +26,7 @@ _class_constructor(Eo_Class *klass) } static const Eo_Class_Description class_desc = { + EO_VERSION, "Simple2", EO_CLASS_TYPE_REGULAR, EO_CLASS_DESCRIPTION_OPS(NULL, NULL, 0), diff --git a/legacy/eobj/src/tests/constructors/simple3.c b/legacy/eobj/src/tests/constructors/simple3.c index 7ecc874d23..f199cc6ad9 100644 --- a/legacy/eobj/src/tests/constructors/simple3.c +++ b/legacy/eobj/src/tests/constructors/simple3.c @@ -24,6 +24,7 @@ _class_constructor(Eo_Class *klass) } static const Eo_Class_Description class_desc = { + EO_VERSION, "Simple3", EO_CLASS_TYPE_REGULAR, EO_CLASS_DESCRIPTION_OPS(NULL, NULL, 0), diff --git a/legacy/eobj/src/tests/constructors/simple4.c b/legacy/eobj/src/tests/constructors/simple4.c index 0c7eb62726..d2a3dbfa11 100644 --- a/legacy/eobj/src/tests/constructors/simple4.c +++ b/legacy/eobj/src/tests/constructors/simple4.c @@ -6,6 +6,7 @@ #define MY_CLASS SIMPLE4_CLASS static const Eo_Class_Description class_desc = { + EO_VERSION, "Simple4", EO_CLASS_TYPE_REGULAR, EO_CLASS_DESCRIPTION_OPS(NULL, NULL, 0), diff --git a/legacy/eobj/src/tests/constructors/simple5.c b/legacy/eobj/src/tests/constructors/simple5.c index 098a168354..5fc83782c7 100644 --- a/legacy/eobj/src/tests/constructors/simple5.c +++ b/legacy/eobj/src/tests/constructors/simple5.c @@ -24,6 +24,7 @@ _class_constructor(Eo_Class *klass) } static const Eo_Class_Description class_desc = { + EO_VERSION, "Simple5", EO_CLASS_TYPE_REGULAR, EO_CLASS_DESCRIPTION_OPS(NULL, NULL, 0), diff --git a/legacy/eobj/src/tests/constructors/simple6.c b/legacy/eobj/src/tests/constructors/simple6.c index f6e5cbae66..2749a8a8d4 100644 --- a/legacy/eobj/src/tests/constructors/simple6.c +++ b/legacy/eobj/src/tests/constructors/simple6.c @@ -26,6 +26,7 @@ _class_constructor(Eo_Class *klass) } static const Eo_Class_Description class_desc = { + EO_VERSION, "Simple6", EO_CLASS_TYPE_REGULAR, EO_CLASS_DESCRIPTION_OPS(NULL, NULL, 0), diff --git a/legacy/eobj/src/tests/constructors/simple7.c b/legacy/eobj/src/tests/constructors/simple7.c index a8f43d9eda..ba86e2b478 100644 --- a/legacy/eobj/src/tests/constructors/simple7.c +++ b/legacy/eobj/src/tests/constructors/simple7.c @@ -26,6 +26,7 @@ _class_constructor(Eo_Class *klass) } static const Eo_Class_Description class_desc = { + EO_VERSION, "Simple7", EO_CLASS_TYPE_REGULAR, EO_CLASS_DESCRIPTION_OPS(NULL, NULL, 0), diff --git a/legacy/eobj/src/tests/eo_suite/class_simple.c b/legacy/eobj/src/tests/eo_suite/class_simple.c index 64e13e0341..e0db709449 100644 --- a/legacy/eobj/src/tests/eo_suite/class_simple.c +++ b/legacy/eobj/src/tests/eo_suite/class_simple.c @@ -53,6 +53,7 @@ static const Eo_Op_Description op_desc[] = { }; static const Eo_Class_Description class_desc = { + EO_VERSION, "Simple", EO_CLASS_TYPE_REGULAR, EO_CLASS_DESCRIPTION_OPS(&SIMPLE_BASE_ID, op_desc, SIMPLE_SUB_ID_LAST), diff --git a/legacy/eobj/src/tests/eo_suite/eo_test_class_errors.c b/legacy/eobj/src/tests/eo_suite/eo_test_class_errors.c index 77658b04a2..5b0a705010 100644 --- a/legacy/eobj/src/tests/eo_suite/eo_test_class_errors.c +++ b/legacy/eobj/src/tests/eo_suite/eo_test_class_errors.c @@ -34,6 +34,7 @@ START_TEST(eo_incomplete_desc) /* XXX: In real life this should be const, this is just for testing. */ static Eo_Class_Description class_desc = { + EO_VERSION, "Simple", EO_CLASS_TYPE_REGULAR, EO_CLASS_DESCRIPTION_OPS(NULL, op_desc, 1), @@ -100,6 +101,7 @@ START_TEST(eo_inherit_errors) const Eo_Class *klass_simple; static const Eo_Class_Description class_desc_simple = { + EO_VERSION, "Simple", EO_CLASS_TYPE_REGULAR, EO_CLASS_DESCRIPTION_OPS(NULL, NULL, 0), @@ -110,6 +112,7 @@ START_TEST(eo_inherit_errors) }; static const Eo_Class_Description class_desc_mixin = { + EO_VERSION, "Mixin", EO_CLASS_TYPE_MIXIN, EO_CLASS_DESCRIPTION_OPS(NULL, NULL, 0), @@ -120,6 +123,7 @@ START_TEST(eo_inherit_errors) }; static Eo_Class_Description class_desc = { + EO_VERSION, "General", EO_CLASS_TYPE_MIXIN, EO_CLASS_DESCRIPTION_OPS(NULL, NULL, 0), @@ -159,6 +163,7 @@ START_TEST(eo_inconsistent_mro) const Eo_Class *klass_mixin3; static const Eo_Class_Description class_desc_simple = { + EO_VERSION, "Simple", EO_CLASS_TYPE_REGULAR, EO_CLASS_DESCRIPTION_OPS(NULL, NULL, 0), @@ -169,6 +174,7 @@ START_TEST(eo_inconsistent_mro) }; static const Eo_Class_Description class_desc_mixin = { + EO_VERSION, "Mixin", EO_CLASS_TYPE_MIXIN, EO_CLASS_DESCRIPTION_OPS(NULL, NULL, 0), @@ -179,6 +185,7 @@ START_TEST(eo_inconsistent_mro) }; static const Eo_Class_Description class_desc_mixin2 = { + EO_VERSION, "Mixin2", EO_CLASS_TYPE_MIXIN, EO_CLASS_DESCRIPTION_OPS(NULL, NULL, 0), @@ -189,6 +196,7 @@ START_TEST(eo_inconsistent_mro) }; static const Eo_Class_Description class_desc_mixin3 = { + EO_VERSION, "Mixin3", EO_CLASS_TYPE_MIXIN, EO_CLASS_DESCRIPTION_OPS(NULL, NULL, 0), @@ -229,6 +237,7 @@ START_TEST(eo_bad_interface) const Eo_Class *klass; static Eo_Class_Description class_desc = { + EO_VERSION, "Interface", EO_CLASS_TYPE_INTERFACE, EO_CLASS_DESCRIPTION_OPS(NULL, NULL, 0), @@ -307,6 +316,7 @@ START_TEST(eo_op_types) const Eo_Class *klass; static Eo_Class_Description class_desc = { + EO_VERSION, "Simple", EO_CLASS_TYPE_REGULAR, EO_CLASS_DESCRIPTION_OPS(NULL, NULL, 0), diff --git a/legacy/eobj/src/tests/eo_suite/eo_test_general.c b/legacy/eobj/src/tests/eo_suite/eo_test_general.c index 74379bd963..0624f61276 100644 --- a/legacy/eobj/src/tests/eo_suite/eo_test_general.c +++ b/legacy/eobj/src/tests/eo_suite/eo_test_general.c @@ -31,6 +31,7 @@ START_TEST(eo_data_fetch) /* Usually should be const, not const only for the test... */ static Eo_Class_Description class_desc = { + EO_VERSION, "Simple2", EO_CLASS_TYPE_REGULAR, EO_CLASS_DESCRIPTION_OPS(NULL, NULL, 0), @@ -72,6 +73,7 @@ START_TEST(eo_isa_tests) { /* Usually should be const, not const only for the test... */ static Eo_Class_Description class_desc = { + EO_VERSION, "Iface", EO_CLASS_TYPE_INTERFACE, EO_CLASS_DESCRIPTION_OPS(NULL, NULL, 0), @@ -88,6 +90,7 @@ START_TEST(eo_isa_tests) { /* Usually should be const, not const only for the test... */ static Eo_Class_Description class_desc = { + EO_VERSION, "Mixin", EO_CLASS_TYPE_MIXIN, EO_CLASS_DESCRIPTION_OPS(NULL, NULL, 0), @@ -104,6 +107,7 @@ START_TEST(eo_isa_tests) { /* Usually should be const, not const only for the test... */ static Eo_Class_Description class_desc = { + EO_VERSION, "Simple2", EO_CLASS_TYPE_REGULAR, EO_CLASS_DESCRIPTION_OPS(NULL, NULL, 0), @@ -171,6 +175,7 @@ START_TEST(eo_static_classes) /* Usually should be const, not const only for the test... */ static Eo_Class_Description class_desc = { + EO_VERSION, "Simple2", EO_CLASS_TYPE_REGULAR, EO_CLASS_DESCRIPTION_OPS(NULL, op_desc, 1), @@ -231,6 +236,7 @@ START_TEST(eo_man_free) /* Usually should be const, not const only for the test... */ static Eo_Class_Description class_desc = { + EO_VERSION, "Simple2", EO_CLASS_TYPE_REGULAR, EO_CLASS_DESCRIPTION_OPS(NULL, NULL, 0), @@ -450,6 +456,7 @@ START_TEST(eo_op_errors) eo_init(); static const Eo_Class_Description class_desc = { + EO_VERSION, "Simple", EO_CLASS_TYPE_REGULAR, EO_CLASS_DESCRIPTION_OPS(NULL, NULL, 0), diff --git a/legacy/eobj/src/tests/function_overrides/inherit.c b/legacy/eobj/src/tests/function_overrides/inherit.c index c9d256a25d..a3cd3c9c95 100644 --- a/legacy/eobj/src/tests/function_overrides/inherit.c +++ b/legacy/eobj/src/tests/function_overrides/inherit.c @@ -6,6 +6,7 @@ #define MY_CLASS INHERIT_CLASS static const Eo_Class_Description class_desc = { + EO_VERSION, "Inherit", EO_CLASS_TYPE_REGULAR, EO_CLASS_DESCRIPTION_OPS(NULL, NULL, 0), diff --git a/legacy/eobj/src/tests/function_overrides/inherit2.c b/legacy/eobj/src/tests/function_overrides/inherit2.c index a3344571db..84c6be93c2 100644 --- a/legacy/eobj/src/tests/function_overrides/inherit2.c +++ b/legacy/eobj/src/tests/function_overrides/inherit2.c @@ -67,6 +67,7 @@ static const Eo_Op_Description op_desc[] = { }; static const Eo_Class_Description class_desc = { + EO_VERSION, "Inherit2", EO_CLASS_TYPE_REGULAR, EO_CLASS_DESCRIPTION_OPS(&INHERIT2_BASE_ID, op_desc, INHERIT2_SUB_ID_LAST), diff --git a/legacy/eobj/src/tests/function_overrides/inherit3.c b/legacy/eobj/src/tests/function_overrides/inherit3.c index 185962e7da..e36ab77233 100644 --- a/legacy/eobj/src/tests/function_overrides/inherit3.c +++ b/legacy/eobj/src/tests/function_overrides/inherit3.c @@ -29,6 +29,7 @@ _class_constructor(Eo_Class *klass) } static const Eo_Class_Description class_desc = { + EO_VERSION, "Inherit3", EO_CLASS_TYPE_REGULAR, EO_CLASS_DESCRIPTION_OPS(NULL, NULL, 0), diff --git a/legacy/eobj/src/tests/function_overrides/simple.c b/legacy/eobj/src/tests/function_overrides/simple.c index db9660e4b7..bc3692cf22 100644 --- a/legacy/eobj/src/tests/function_overrides/simple.c +++ b/legacy/eobj/src/tests/function_overrides/simple.c @@ -65,6 +65,7 @@ static const Eo_Op_Description op_desc[] = { }; static const Eo_Class_Description class_desc = { + EO_VERSION, "Simple", EO_CLASS_TYPE_REGULAR, EO_CLASS_DESCRIPTION_OPS(&SIMPLE_BASE_ID, op_desc, SIMPLE_SUB_ID_LAST), diff --git a/legacy/eobj/src/tests/interface/interface.c b/legacy/eobj/src/tests/interface/interface.c index 42ad7b5afa..16659d507c 100644 --- a/legacy/eobj/src/tests/interface/interface.c +++ b/legacy/eobj/src/tests/interface/interface.c @@ -14,6 +14,7 @@ static const Eo_Op_Description op_desc[] = { }; static const Eo_Class_Description class_desc = { + EO_VERSION, "Interface", EO_CLASS_TYPE_INTERFACE, EO_CLASS_DESCRIPTION_OPS(&INTERFACE_BASE_ID, op_desc, INTERFACE_SUB_ID_LAST), diff --git a/legacy/eobj/src/tests/interface/interface2.c b/legacy/eobj/src/tests/interface/interface2.c index 59c4ff8066..2ccd83215d 100644 --- a/legacy/eobj/src/tests/interface/interface2.c +++ b/legacy/eobj/src/tests/interface/interface2.c @@ -15,6 +15,7 @@ static const Eo_Op_Description op_desc[] = { }; static const Eo_Class_Description class_desc = { + EO_VERSION, "Interface2", EO_CLASS_TYPE_INTERFACE, EO_CLASS_DESCRIPTION_OPS(&INTERFACE2_BASE_ID, op_desc, INTERFACE2_SUB_ID_LAST), diff --git a/legacy/eobj/src/tests/interface/simple.c b/legacy/eobj/src/tests/interface/simple.c index 748aa0b2e6..c76315afaf 100644 --- a/legacy/eobj/src/tests/interface/simple.c +++ b/legacy/eobj/src/tests/interface/simple.c @@ -85,6 +85,7 @@ static const Eo_Op_Description op_desc[] = { }; static const Eo_Class_Description class_desc = { + EO_VERSION, "Simple", EO_CLASS_TYPE_REGULAR, EO_CLASS_DESCRIPTION_OPS(&SIMPLE_BASE_ID, op_desc, SIMPLE_SUB_ID_LAST), diff --git a/legacy/eobj/src/tests/mixin/mixin.c b/legacy/eobj/src/tests/mixin/mixin.c index 4aa20079bd..e9381e91d3 100644 --- a/legacy/eobj/src/tests/mixin/mixin.c +++ b/legacy/eobj/src/tests/mixin/mixin.c @@ -51,6 +51,7 @@ static const Eo_Op_Description op_desc[] = { }; static const Eo_Class_Description class_desc = { + EO_VERSION, "Mixin", EO_CLASS_TYPE_MIXIN, EO_CLASS_DESCRIPTION_OPS(&MIXIN_BASE_ID, op_desc, MIXIN_SUB_ID_LAST), diff --git a/legacy/eobj/src/tests/mixin/mixin2.c b/legacy/eobj/src/tests/mixin/mixin2.c index c5ad62da09..c17dea60c0 100644 --- a/legacy/eobj/src/tests/mixin/mixin2.c +++ b/legacy/eobj/src/tests/mixin/mixin2.c @@ -54,6 +54,7 @@ _class_constructor(Eo_Class *klass) } static const Eo_Class_Description class_desc = { + EO_VERSION, "Mixin2", EO_CLASS_TYPE_MIXIN, EO_CLASS_DESCRIPTION_OPS(NULL, NULL, 0), diff --git a/legacy/eobj/src/tests/mixin/mixin3.c b/legacy/eobj/src/tests/mixin/mixin3.c index 5560274af7..94253b613b 100644 --- a/legacy/eobj/src/tests/mixin/mixin3.c +++ b/legacy/eobj/src/tests/mixin/mixin3.c @@ -54,6 +54,7 @@ _class_constructor(Eo_Class *klass) } static const Eo_Class_Description class_desc = { + EO_VERSION, "Mixin3", EO_CLASS_TYPE_MIXIN, EO_CLASS_DESCRIPTION_OPS(NULL, NULL, 0), diff --git a/legacy/eobj/src/tests/mixin/simple.c b/legacy/eobj/src/tests/mixin/simple.c index 3c2412e5fa..ae93708a6b 100644 --- a/legacy/eobj/src/tests/mixin/simple.c +++ b/legacy/eobj/src/tests/mixin/simple.c @@ -62,6 +62,7 @@ static const Eo_Op_Description op_desc[] = { }; static const Eo_Class_Description class_desc = { + EO_VERSION, "Simple", EO_CLASS_TYPE_REGULAR, EO_CLASS_DESCRIPTION_OPS(&SIMPLE_BASE_ID, op_desc, SIMPLE_SUB_ID_LAST), diff --git a/legacy/eobj/src/tests/signals/simple.c b/legacy/eobj/src/tests/signals/simple.c index 6bbd3bd7c8..08210ead3d 100644 --- a/legacy/eobj/src/tests/signals/simple.c +++ b/legacy/eobj/src/tests/signals/simple.c @@ -96,6 +96,7 @@ static const Eo_Event_Description *event_desc[] = { }; static const Eo_Class_Description class_desc = { + EO_VERSION, "Simple", EO_CLASS_TYPE_REGULAR, EO_CLASS_DESCRIPTION_OPS(&SIMPLE_BASE_ID, op_desc, SIMPLE_SUB_ID_LAST),