efl/src/bindings
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
..
cxx cxx: Remove libeolian_cxx dependency on eo_cxx 2018-08-21 14:21:43 -04:00
js all: Simplify definition of EAPI 2018-01-18 18:04:03 +09:00
luajit elua: fix outdated code in doc token ref resolution 2018-09-05 13:09:57 +02:00
mono efl-csharp: Fix event struct marshalling. 2018-09-26 12:16:09 -03:00