path: root/src/tests/efl_mono/libefl_mono_native_test.c
diff options
authorLauro Moura <lauromoura@expertisesolutions.com.br>2018-03-21 22:43:21 -0300
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2018-04-03 17:29:41 -0300
commit3fd1566a088f167759703bdc0a099eeb907d3181 (patch)
tree947e3f1263c48226a64eac1458b5baaaa59944d5 /src/tests/efl_mono/libefl_mono_native_test.c
parentefl_mono: Initial version of Strbuf support. (diff)
csharp: Provisionally fix conversion of eina.Value
When we have an eina.Value_Native (representing an Eina_Value passed by value) and assign it to an eina.Value (a class with an IntPtr to an underlying Eina_Value) we copy it so the eina.Value can take ownership and free the data normally. A possibly better alternative would be adding an extra flag to eina.Value (something like OwnsPointer) to check whether we should free the struct we point to or not.
Diffstat (limited to 'src/tests/efl_mono/libefl_mono_native_test.c')
1 files changed, 5 insertions, 0 deletions
diff --git a/src/tests/efl_mono/libefl_mono_native_test.c b/src/tests/efl_mono/libefl_mono_native_test.c
index ce6865213f..f16c8957c3 100644
--- a/src/tests/efl_mono/libefl_mono_native_test.c
+++ b/src/tests/efl_mono/libefl_mono_native_test.c
@@ -3648,6 +3648,11 @@ void _test_testing_set_value(EINA_UNUSED Eo *obj, Test_Testing_Data *pd, Eina_Va
eina_value_copy(&value, pd->stored_value);
+void _test_testing_call_set_value(Eo *obj, EINA_UNUSED Test_Testing_Data *pd, const Eina_Value v)
+ test_testing_set_value(obj, v);
Eina_Value *_test_testing_get_value_ptr_own(EINA_UNUSED Eo *obj, Test_Testing_Data *pd)
Eina_Value *val = pd->stored_value;