efl/src/bindings/mono
Lauro Moura 8a4bac15e7 efl-csharp: Fix event struct marshalling.
Summary:
The efl.Event struct has a class field that gets generated normally but
can be problematic when marshalling the struct back from C to C#. The
compilation works fine but when C# runtime tries to marshall the C data
(e.g. accessing the Event.Info field), it becomes erratic, either
complaining about missing references to object or even segfault.

This commit changes the event handling code to use the
"Event_StructInternal" struct as is already done when receiving structs
from C code.

In order to work with other assemblies, the _StructInternal fields were
made publit too.

Fixes the events tests and the text editor app.

Test Plan: make check and run the text editor app in examples repo.

Reviewers: segfaultxavi, vitor.sousa

Reviewed By: vitor.sousa

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D7106
2018-09-26 12:16:09 -03:00
..
ecore_evas_mono efl_mono: Change generated classes naming scheme 2018-05-03 18:04:41 -03:00
efl_mono efl_mono: Fix call to System.Threading.Thread. 2018-06-19 13:28:58 -04:00
eina_mono efl-csharp: Add copy constructor for eina.Value. 2018-09-11 11:41:38 -03:00
eldbus_mono efl_mono: Fix eldbus warnings and typo. 2018-05-17 16:56:18 -03:00
eo_mono efl-csharp: Fix event struct marshalling. 2018-09-26 12:16:09 -03:00