summaryrefslogtreecommitdiff
path: root/src/lib/eo
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2019-02-06 09:53:25 +0100
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2019-02-07 14:43:25 +0100
commit0709bdea6f94149b6b319461edd27b7a0035552d (patch)
treecc887a873d37b75dbb54ac2cb2d17ec88d820da4 /src/lib/eo
parent4f9abba44049561d31e81ccdfddb4b9c3feae017 (diff)
eo: change API call of efl_class_functions_set
The next commit will bring support for something like reflection. This commit prepares the whole tree for getting another argument in efl_class_functions_set. ref T7681 Differential Revision: https://phab.enlightenment.org/D7882
Diffstat (limited to 'src/lib/eo')
-rw-r--r--src/lib/eo/Eo.h3
-rw-r--r--src/lib/eo/eo.c6
2 files changed, 5 insertions, 4 deletions
diff --git a/src/lib/eo/Eo.h b/src/lib/eo/Eo.h
index 186d7fb..1406984 100644
--- a/src/lib/eo/Eo.h
+++ b/src/lib/eo/Eo.h
@@ -856,13 +856,14 @@ EAPI const Efl_Class *efl_class_new(const Efl_Class_Description *desc, const Efl
856 * @param klass_id the class whose functions we are setting. 856 * @param klass_id the class whose functions we are setting.
857 * @param object_ops The function structure we are setting for object functions 857 * @param object_ops The function structure we are setting for object functions
858 * @param class_ops The function structure we are setting for class functions 858 * @param class_ops The function structure we are setting for class functions
859 * @param reflection_table The reflection table to use within eo
859 * @return True on success, False otherwise. 860 * @return True on success, False otherwise.
860 * 861 *
861 * This should only be called from within the initializer function. 862 * This should only be called from within the initializer function.
862 * 863 *
863 * @see #EFL_DEFINE_CLASS 864 * @see #EFL_DEFINE_CLASS
864 */ 865 */
865EAPI Eina_Bool efl_class_functions_set(const Efl_Class *klass_id, const Efl_Object_Ops *object_ops, const Efl_Object_Ops *class_ops); 866EAPI Eina_Bool efl_class_functions_set(const Efl_Class *klass_id, const Efl_Object_Ops *object_ops, const Efl_Object_Ops *class_ops, const void *reflection_table);
866 867
867/** 868/**
868 * @brief Override Eo functions of this object. 869 * @brief Override Eo functions of this object.
diff --git a/src/lib/eo/eo.c b/src/lib/eo/eo.c
index c39777b..0d1ae5b 100644
--- a/src/lib/eo/eo.c
+++ b/src/lib/eo/eo.c
@@ -819,7 +819,7 @@ _eo_class_funcs_set(Eo_Vtable *vtable, const Efl_Object_Ops *ops, const _Efl_Cla
819} 819}
820 820
821EAPI Eina_Bool 821EAPI Eina_Bool
822efl_class_functions_set(const Efl_Class *klass_id, const Efl_Object_Ops *object_ops, const Efl_Object_Ops *class_ops) 822efl_class_functions_set(const Efl_Class *klass_id, const Efl_Object_Ops *object_ops, const Efl_Object_Ops *class_ops, const void *reflection_table)
823{ 823{
824 EO_CLASS_POINTER_GOTO(klass_id, klass, err_klass); 824 EO_CLASS_POINTER_GOTO(klass_id, klass, err_klass);
825 Efl_Object_Ops empty_ops = { 0 }; 825 Efl_Object_Ops empty_ops = { 0 };
@@ -982,7 +982,7 @@ _efl_add_internal_end(Eo *eo_id, Eo *finalized_id)
982 // fails or succeeds based on if service is there. 982 // fails or succeeds based on if service is there.
983 // 983 //
984 // until there is a better solution - don't complain here. 984 // until there is a better solution - don't complain here.
985 // 985 //
986 // ERR("Object of class '%s' - Finalizing the object failed.", 986 // ERR("Object of class '%s' - Finalizing the object failed.",
987 // klass->desc->name); 987 // klass->desc->name);
988 goto cleanup; 988 goto cleanup;
@@ -1691,7 +1691,7 @@ efl_class_new(const Efl_Class_Description *desc, const Efl_Class *parent_id, ...
1691 /* If functions haven't been set, invoke it with an empty ops structure. */ 1691 /* If functions haven't been set, invoke it with an empty ops structure. */
1692 if (!klass->functions_set) 1692 if (!klass->functions_set)
1693 { 1693 {
1694 efl_class_functions_set(_eo_class_id_get(klass), NULL, NULL); 1694 efl_class_functions_set(_eo_class_id_get(klass), NULL, NULL, NULL);
1695 } 1695 }
1696 1696
1697 /* Mark which classes we implement */ 1697 /* Mark which classes we implement */