Efl object: Don't pass events to eo class creation.

This was never used and there is no plan to ever use it. I'm going to
soon add a different mechanism with which it will be possible to provide
them again to Eo if ever needed without breaking ABI. Though it's
unlikely it will ever be.
This commit is contained in:
Tom Hacohen 2016-08-23 14:11:38 +01:00
parent 12850d4e25
commit a6f126af12
38 changed files with 3 additions and 78 deletions

View File

@ -40,7 +40,6 @@ static const Efl_Class_Description class_desc = {
"Simple",
EFL_CLASS_TYPE_REGULAR,
EFL_CLASS_DESCRIPTION_OPS(op_desc),
NULL,
sizeof(Simple_Public_Data),
NULL,
NULL

View File

@ -70,7 +70,6 @@ bench_eo_do_super(int request)
"Simple2",
EFL_CLASS_TYPE_REGULAR,
EFL_CLASS_DESCRIPTION_OPS(op_desc),
NULL,
0,
NULL,
NULL

View File

@ -25,7 +25,7 @@ static const Efl_Op_Description custom_engine_op_desc[] = {
static const Efl_Class_Description custom_engine_class_desc = {
EO_VERSION, "Custom Layout Engine", EFL_CLASS_TYPE_INTERFACE,
EFL_CLASS_DESCRIPTION_OPS(custom_engine_op_desc), NULL, 0, NULL, NULL
EFL_CLASS_DESCRIPTION_OPS(custom_engine_op_desc), 0, NULL, NULL
};
EFL_DEFINE_CLASS(_test_ui_grid_custom_engine_class_get, &custom_engine_class_desc, EFL_PACK_LAYOUT_INTERFACE, NULL)

View File

@ -171,7 +171,7 @@ static const Efl_Op_Description custom_table_op_desc[] = {
static const Efl_Class_Description custom_table_class_desc = {
EO_VERSION, "Efl.Ui.Grid.Internal", EFL_CLASS_TYPE_REGULAR,
EFL_CLASS_DESCRIPTION_OPS(custom_table_op_desc), NULL,
EFL_CLASS_DESCRIPTION_OPS(custom_table_op_desc),
sizeof(Custom_Table_Data), NULL, NULL
};

View File

@ -411,7 +411,6 @@ struct _Efl_Class_Description
const char *name; /**< The name of the class. */
Efl_Class_Type type; /**< The type of the class. */
Efl_Object_Ops ops; /**< The ops description, should be filled using #EFL_CLASS_DESCRIPTION_OPS (later sorted by Eo). */
const Efl_Event_Description * const *events; /**< The event descriptions for this class. */
size_t data_size; /**< The size of data (private + protected + public) this class needs per object. */
void (*class_constructor)(Efl_Class *klass); /**< The constructor of the class. */
void (*class_destructor)(Efl_Class *klass); /**< The destructor of the class. */

View File

@ -27,7 +27,6 @@ static const Efl_Class_Description class_desc = {
"Inherit",
EFL_CLASS_TYPE_REGULAR,
EFL_CLASS_DESCRIPTION_OPS(op_descs),
NULL,
0,
NULL,
NULL

View File

@ -36,17 +36,11 @@ static Efl_Op_Description op_descs[] = {
EFL_OBJECT_OP_FUNC(simple_a_set, _a_set),
};
static const Efl_Event_Description *event_desc[] = {
EV_A_CHANGED,
NULL
};
static const Efl_Class_Description class_desc = {
EO_VERSION,
"Simple",
EFL_CLASS_TYPE_REGULAR,
EFL_CLASS_DESCRIPTION_OPS(op_descs),
event_desc,
sizeof(Private_Data),
NULL,
NULL

View File

@ -12,7 +12,6 @@ static const Efl_Class_Description class_desc = {
"Simple",
EFL_CLASS_TYPE_REGULAR,
EFL_CLASS_DESCRIPTION_NOOPS(),
NULL,
0,
NULL,
NULL

View File

@ -46,7 +46,6 @@ static const Efl_Class_Description class_desc = {
"Comp",
EFL_CLASS_TYPE_REGULAR,
EFL_CLASS_DESCRIPTION_OPS(op_descs),
NULL,
0,
NULL,
NULL

View File

@ -168,17 +168,11 @@ static Efl_Op_Description op_descs[] = {
EFL_OBJECT_OP_FUNC(simple_a_get, _a_get),
};
static const Efl_Event_Description *event_desc[] = {
EV_A_CHANGED,
NULL
};
static const Efl_Class_Description class_desc = {
EO_VERSION,
"Simple",
EFL_CLASS_TYPE_REGULAR,
EFL_CLASS_DESCRIPTION_OPS(op_descs),
event_desc,
sizeof(Simple_Public_Data),
NULL,
NULL

View File

@ -48,7 +48,6 @@ static const Efl_Class_Description class_desc = {
"Mixin",
EFL_CLASS_TYPE_MIXIN,
EFL_CLASS_DESCRIPTION_OPS(op_descs),
NULL,
0,
NULL,
NULL

View File

@ -100,7 +100,6 @@ static const Efl_Class_Description class_desc = {
"Simple",
EFL_CLASS_TYPE_REGULAR,
EFL_CLASS_DESCRIPTION_OPS(op_descs),
NULL,
sizeof(Private_Data),
_class_constructor,
_class_destructor

View File

@ -25,7 +25,6 @@ static const Efl_Class_Description class_desc = {
"Simple2",
EFL_CLASS_TYPE_REGULAR,
EFL_CLASS_DESCRIPTION_OPS(op_descs),
NULL,
0,
NULL,
NULL

View File

@ -23,7 +23,6 @@ static const Efl_Class_Description class_desc = {
"Simple3",
EFL_CLASS_TYPE_REGULAR,
EFL_CLASS_DESCRIPTION_OPS(op_descs),
NULL,
0,
NULL,
NULL

View File

@ -14,7 +14,6 @@ static const Efl_Class_Description class_desc = {
"Simple4",
EFL_CLASS_TYPE_REGULAR,
EFL_CLASS_DESCRIPTION_NOOPS(),
NULL,
0,
NULL,
NULL

View File

@ -23,7 +23,6 @@ static const Efl_Class_Description class_desc = {
"Simple5",
EFL_CLASS_TYPE_REGULAR,
EFL_CLASS_DESCRIPTION_OPS(op_descs),
NULL,
0,
NULL,
NULL

View File

@ -23,7 +23,6 @@ static const Efl_Class_Description class_desc = {
"Simple6",
EFL_CLASS_TYPE_REGULAR,
EFL_CLASS_DESCRIPTION_OPS(op_descs),
NULL,
0,
NULL,
NULL

View File

@ -27,7 +27,6 @@ static const Efl_Class_Description class_desc = {
"Simple7",
EFL_CLASS_TYPE_REGULAR,
EFL_CLASS_DESCRIPTION_OPS(op_descs),
NULL,
0,
NULL,
NULL

View File

@ -13,7 +13,6 @@ static const Efl_Class_Description class_desc = {
"Inherit",
EFL_CLASS_TYPE_REGULAR,
EFL_CLASS_DESCRIPTION_NOOPS(),
NULL,
0,
NULL,
NULL

View File

@ -71,7 +71,6 @@ static const Efl_Class_Description class_desc = {
"Inherit2",
EFL_CLASS_TYPE_REGULAR,
EFL_CLASS_DESCRIPTION_OPS(op_descs),
NULL,
0,
NULL,
NULL

View File

@ -25,7 +25,6 @@ static const Efl_Class_Description class_desc = {
"Inherit3",
EFL_CLASS_TYPE_REGULAR,
EFL_CLASS_DESCRIPTION_OPS(op_descs),
NULL,
0,
NULL,
NULL

View File

@ -68,7 +68,6 @@ static const Efl_Class_Description class_desc = {
"Simple",
EFL_CLASS_TYPE_REGULAR,
EFL_CLASS_DESCRIPTION_OPS(op_descs),
NULL,
sizeof(Simple_Public_Data),
NULL,
NULL

View File

@ -19,7 +19,6 @@ static const Efl_Class_Description class_desc = {
"Interface",
EFL_CLASS_TYPE_INTERFACE,
EFL_CLASS_DESCRIPTION_OPS(op_descs),
NULL,
0,
NULL,
NULL

View File

@ -20,7 +20,6 @@ static const Efl_Class_Description class_desc = {
"Interface2",
EFL_CLASS_TYPE_INTERFACE,
EFL_CLASS_DESCRIPTION_OPS(op_descs),
NULL,
0,
NULL,
NULL

View File

@ -70,7 +70,6 @@ static const Efl_Class_Description class_desc = {
"Simple",
EFL_CLASS_TYPE_REGULAR,
EFL_CLASS_DESCRIPTION_OPS(op_descs),
NULL,
sizeof(Private_Data),
NULL,
NULL

View File

@ -28,7 +28,6 @@ static const Efl_Class_Description class_desc = {
"Inherit",
EFL_CLASS_TYPE_REGULAR,
EFL_CLASS_DESCRIPTION_OPS(op_descs),
NULL,
0,
NULL,
NULL

View File

@ -43,7 +43,6 @@ static const Efl_Class_Description class_desc = {
"Mixin",
EFL_CLASS_TYPE_MIXIN,
EFL_CLASS_DESCRIPTION_OPS(op_descs),
NULL,
0,
NULL,
NULL

View File

@ -57,7 +57,6 @@ static const Efl_Class_Description class_desc = {
"Mixin2",
EFL_CLASS_TYPE_MIXIN,
EFL_CLASS_DESCRIPTION_OPS(op_descs),
NULL,
sizeof(Mixin2_Public_Data),
NULL,
NULL

View File

@ -56,7 +56,6 @@ static const Efl_Class_Description class_desc = {
"Mixin3",
EFL_CLASS_TYPE_MIXIN,
EFL_CLASS_DESCRIPTION_OPS(op_descs),
NULL,
sizeof(Mixin3_Public_Data),
NULL,
NULL

View File

@ -16,7 +16,6 @@ static const Efl_Class_Description class_desc = {
"Mixin4",
EFL_CLASS_TYPE_MIXIN,
EFL_CLASS_DESCRIPTION_NOOPS(),
NULL,
0,
NULL,
NULL

View File

@ -49,7 +49,6 @@ static const Efl_Class_Description class_desc = {
"Simple",
EFL_CLASS_TYPE_REGULAR,
EFL_CLASS_DESCRIPTION_OPS(op_descs),
NULL,
sizeof(Private_Data),
NULL,
NULL

View File

@ -76,19 +76,11 @@ static Efl_Op_Description op_descs[] = {
EFL_OBJECT_OP_FUNC(simple_a_set, _a_set),
};
static const Efl_Event_Description *event_desc[] = {
EV_A_CHANGED,
EV_RESTART,
NULL
};
static const Efl_Class_Description class_desc = {
EO_VERSION,
"Simple",
EFL_CLASS_TYPE_REGULAR,
EFL_CLASS_DESCRIPTION_OPS(op_descs),
event_desc,
sizeof(Private_Data),
NULL,
NULL

View File

@ -36,7 +36,6 @@ START_TEST(efl_destructor_unref)
"Simple",
EFL_CLASS_TYPE_REGULAR,
EFL_CLASS_DESCRIPTION_OPS(op_descs),
NULL,
0,
NULL,
NULL
@ -67,7 +66,6 @@ START_TEST(efl_destructor_double_del)
"Simple",
EFL_CLASS_TYPE_REGULAR,
EFL_CLASS_DESCRIPTION_NOOPS(),
NULL,
0,
NULL,
NULL

View File

@ -26,7 +26,6 @@ START_TEST(eo_inherit_errors)
"Simple",
EFL_CLASS_TYPE_REGULAR,
EFL_CLASS_DESCRIPTION_NOOPS(),
NULL,
0,
NULL,
NULL
@ -37,7 +36,6 @@ START_TEST(eo_inherit_errors)
"Mixin",
EFL_CLASS_TYPE_MIXIN,
EFL_CLASS_DESCRIPTION_NOOPS(),
NULL,
0,
NULL,
NULL
@ -48,7 +46,6 @@ START_TEST(eo_inherit_errors)
"General",
EFL_CLASS_TYPE_MIXIN,
EFL_CLASS_DESCRIPTION_NOOPS(),
NULL,
0,
NULL,
NULL
@ -94,7 +91,6 @@ START_TEST(eo_inconsistent_mro)
"Simple",
EFL_CLASS_TYPE_REGULAR,
EFL_CLASS_DESCRIPTION_NOOPS(),
NULL,
0,
NULL,
NULL
@ -105,7 +101,6 @@ START_TEST(eo_inconsistent_mro)
"Mixin",
EFL_CLASS_TYPE_MIXIN,
EFL_CLASS_DESCRIPTION_NOOPS(),
NULL,
0,
NULL,
NULL
@ -116,7 +111,6 @@ START_TEST(eo_inconsistent_mro)
"Mixin2",
EFL_CLASS_TYPE_MIXIN,
EFL_CLASS_DESCRIPTION_NOOPS(),
NULL,
0,
NULL,
NULL
@ -127,7 +121,6 @@ START_TEST(eo_inconsistent_mro)
"Mixin3",
EFL_CLASS_TYPE_MIXIN,
EFL_CLASS_DESCRIPTION_NOOPS(),
NULL,
0,
NULL,
NULL
@ -173,7 +166,6 @@ START_TEST(eo_bad_interface)
"Interface",
EFL_CLASS_TYPE_INTERFACE,
EFL_CLASS_DESCRIPTION_NOOPS(),
NULL,
10,
NULL,
NULL
@ -225,7 +217,6 @@ START_TEST(eo_null_api)
"Simple",
EFL_CLASS_TYPE_REGULAR,
EFL_CLASS_DESCRIPTION_OPS(op_descs),
NULL,
0,
NULL,
NULL
@ -257,7 +248,6 @@ START_TEST(eo_wrong_override)
"Simple",
EFL_CLASS_TYPE_REGULAR,
EFL_CLASS_DESCRIPTION_OPS(op_descs),
NULL,
0,
NULL,
NULL
@ -290,7 +280,6 @@ START_TEST(eo_api_redefined)
"Simple",
EFL_CLASS_TYPE_REGULAR,
EFL_CLASS_DESCRIPTION_OPS(op_descs),
NULL,
0,
NULL,
NULL
@ -323,7 +312,6 @@ START_TEST(eo_dich_func_override)
"Simple",
EFL_CLASS_TYPE_REGULAR,
EFL_CLASS_DESCRIPTION_OPS(op_descs),
NULL,
0,
NULL,
NULL

View File

@ -104,7 +104,6 @@ static const Efl_Class_Description class_desc = {
"Simple",
EFL_CLASS_TYPE_REGULAR,
EFL_CLASS_DESCRIPTION_OPS(op_descs),
NULL,
sizeof(Simple_Public_Data),
NULL,
NULL
@ -130,7 +129,6 @@ static const Efl_Class_Description class_desc2 = {
"Simple2",
EFL_CLASS_TYPE_REGULAR,
EFL_CLASS_DESCRIPTION_OPS(op_descs2),
NULL,
0,
NULL,
NULL
@ -155,10 +153,9 @@ static const Efl_Class_Description class_desc_searchable = {
"Searchable",
EFL_CLASS_TYPE_REGULAR,
EFL_CLASS_DESCRIPTION_OPS(op_descs_searchable),
NULL,
0,
NULL,
NULL
};
EFL_DEFINE_CLASS(searchable_class_get, &class_desc_searchable, EO_CLASS, NULL)
EFL_DEFINE_CLASS(searchable_class_get, &class_desc_searchable, EO_CLASS, NULL)

View File

@ -34,7 +34,6 @@ static const Efl_Class_Description class_desc = {
"Singleton",
EFL_CLASS_TYPE_REGULAR,
EFL_CLASS_DESCRIPTION_OPS(op_descs),
NULL,
0,
NULL,
NULL

View File

@ -268,7 +268,6 @@ START_TEST(efl_data_fetch)
"Simple2",
EFL_CLASS_TYPE_REGULAR,
EFL_CLASS_DESCRIPTION_NOOPS(),
NULL,
10,
NULL,
NULL
@ -311,7 +310,6 @@ START_TEST(efl_isa_tests)
"Iface",
EFL_CLASS_TYPE_INTERFACE,
EFL_CLASS_DESCRIPTION_NOOPS(),
NULL,
0,
NULL,
NULL
@ -328,7 +326,6 @@ START_TEST(efl_isa_tests)
"Mixin",
EFL_CLASS_TYPE_MIXIN,
EFL_CLASS_DESCRIPTION_NOOPS(),
NULL,
0,
NULL,
NULL
@ -345,7 +342,6 @@ START_TEST(efl_isa_tests)
"Simple2",
EFL_CLASS_TYPE_REGULAR,
EFL_CLASS_DESCRIPTION_NOOPS(),
NULL,
10,
NULL,
NULL
@ -445,7 +441,6 @@ START_TEST(eo_man_free)
"Simple2",
EFL_CLASS_TYPE_REGULAR,
EFL_CLASS_DESCRIPTION_OPS(op_descs),
NULL,
10,
NULL,
NULL
@ -994,7 +989,6 @@ START_TEST(eo_multiple_do)
"Inherit",
EFL_CLASS_TYPE_REGULAR,
EFL_CLASS_DESCRIPTION_OPS(_multi_do_op_descs),
NULL,
0,
NULL,
NULL
@ -1070,7 +1064,6 @@ START_TEST(eo_pointers_indirection)
"Simple",
EFL_CLASS_TYPE_REGULAR,
EFL_CLASS_DESCRIPTION_NOOPS(),
NULL,
0,
NULL,
NULL
@ -1168,7 +1161,6 @@ START_TEST(efl_add_failures)
"Simple2",
EFL_CLASS_TYPE_REGULAR,
EFL_CLASS_DESCRIPTION_OPS(_efl_add_failures_op_descs),
NULL,
0,
NULL,
NULL
@ -1206,7 +1198,6 @@ START_TEST(efl_del_intercept)
"Simple",
EFL_CLASS_TYPE_REGULAR,
EFL_CLASS_DESCRIPTION_NOOPS(),
NULL,
0,
NULL,
NULL

View File

@ -71,7 +71,6 @@ static const Efl_Class_Description class_desc = {
"Thread Test",
EFL_CLASS_TYPE_REGULAR,
EFL_CLASS_DESCRIPTION_OPS(op_descs),
NULL,
sizeof(Thread_Test_Public_Data),
NULL,
NULL