csharp: Provisionally fix conversion of eina.Value
authorLauro Moura <lauromoura@expertisesolutions.com.br>
Thu, 22 Mar 2018 01:43:21 +0000 (22:43 -0300)
committerWonki Kim <wonki_.kim@samsung.com>
Tue, 10 Apr 2018 13:25:38 +0000 (22:25 +0900)
commit9572686b7314d3e83587510d5221b21c2436497a
tree46aec3aa5bde0b99ccff21052dd2b6e299ac2be7
parentf800ee265231ac2af153e8be106b56dc8e746354
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.
src/bindings/mono/eina_mono/eina_value.cs
src/tests/efl_mono/Value.cs
src/tests/efl_mono/ValueEolian.cs
src/tests/efl_mono/libefl_mono_native_test.c
src/tests/efl_mono/test_testing.eo