csharp: Fix passing acessor with ownership
authorLauro Moura <lauromoura@expertisesolutions.com.br>
Wed, 18 Dec 2019 13:36:29 +0000 (10:36 -0300)
committerJongmin Lee <jm105.lee@samsung.com>
Wed, 18 Dec 2019 20:56:57 +0000 (05:56 +0900)
commit123c0035e6cedd90b0b8d87785069ec793f262e0
treeb66850b3f07881e09baca0d65151c40b61716a4e
parent580173ddc8c47c4fa9589d2331b0777dcdbc2316
csharp: Fix passing acessor with ownership

Summary:
When passing an owned acessor from a converted collection we need a way
to unpin the passed data when the accessor is freed.

This commits adds a thin wrapper around the CArray accessor that unpins
the data when freed.

Depends on D10900

Reviewers: YOhoho, felipealmeida

Reviewed By: YOhoho

Subscribers: cedric, #reviewers, #committers, jptiz, brunobelo

Tags: #efl

Maniphest Tasks: T8486

Differential Revision: https://phab.enlightenment.org/D10901
src/bindings/mono/efl_mono/meson.build
src/bindings/mono/eina_mono/eina_accessor.cs
src/bindings/mono/eo_mono/iwrapper.cs
src/lib/efl_mono/efl_mono_accessors.c [new file with mode: 0644]
src/tests/efl_mono/Eo.cs
src/tests/efl_mono/dummy_test_object.c
src/tests/efl_mono/dummy_test_object.eo