return obj;
}
+static void
+_dummy_test_object_efl_object_destructor(Eo *obj, Dummy_Test_Object_Data *pd)
+{
+ if (pd->stored_value)
+ {
+ eina_value_free(pd->stored_value);
+ pd->stored_value = NULL;
+ }
+
+ if (pd->promise)
+ {
+ eina_promise_reject(pd->promise, ECANCELED);
+ pd->promise = NULL;
+ }
+
+ if (pd->list_for_accessor)
+ {
+ eina_list_free(pd->list_for_accessor);
+ pd->list_for_accessor = NULL;
+ }
+
+ efl_destructor(efl_super(obj, DUMMY_TEST_OBJECT_CLASS));
+}
+
Efl_Object *_dummy_test_object_return_object(Eo *obj, EINA_UNUSED Dummy_Test_Object_Data *pd)
{
return obj;
void _dummy_test_object_set_value(EINA_UNUSED Eo *obj, Dummy_Test_Object_Data *pd, Eina_Value value)
{
- if (pd->stored_value) {
- eina_value_free(pd->stored_value);
- } else {
- pd->stored_value = eina_value_new(EINA_VALUE_TYPE_INT);
- }
+ if (pd->stored_value)
+ eina_value_free(pd->stored_value);
+
+ pd->stored_value = eina_value_new(EINA_VALUE_TYPE_INT);
+
eina_value_copy(&value, pd->stored_value);
}
Eo * _dummy_test_object_efl_object_provider_find(EINA_UNUSED const Eo *obj, Dummy_Test_Object_Data *pd, const Efl_Class *klass)
{
- EINA_LOG_ERR("klass: %p, NUMBERWRAPPER: %p", klass, DUMMY_NUMBERWRAPPER_CLASS);
if (klass == DUMMY_NUMBERWRAPPER_CLASS)
return pd->provider;
else if (klass == DUMMY_TEST_IFACE_INTERFACE)
Efl_Object *_dummy_test_object_call_find_provider(Eo *obj, EINA_UNUSED Dummy_Test_Object_Data *pd, const Efl_Class *type)
{
- printf("CALLING FIND PROVIDER FROM C");
return efl_provider_find(obj, type);
}
Efl_Object *_dummy_test_object_call_find_provider_for_iface(Eo *obj, EINA_UNUSED Dummy_Test_Object_Data *pd)
{
- printf("CALLING FIND PROVIDER FROM C");
return efl_provider_find(obj, DUMMY_TEST_IFACE_INTERFACE);
}