efl-mono: Fix marshalling of struct in event data.
authorLauro Moura <lauromoura@expertisesolutions.com.br>
Fri, 21 Dec 2018 03:15:17 +0000 (00:15 -0300)
committerJiyoun Park <jy0703.park@samsung.com>
Wed, 16 Jan 2019 04:10:38 +0000 (13:10 +0900)
commitec5b10b738d7dc78d46c30271a1309f3054ce2e0
tree2aef0fb41c55b2532e306948f570861ce2c48084
parent7cb83ed73acf4b0ae52b7d6ea230a798a3dc3c74
efl-mono: Fix marshalling of struct in event data.

Summary:
Previously, we just converted through PtrToStructure, which didn't have
the full marshalling info converting from the internal one to the
external.

This fixes the usage of the Efl.Loop.arguments event.

Also renamed the ToExternal methods to ToManaged, to make clearer that
the output struct is the one intended to be used from the managed code.

Also fixed a minor styling in the generated code (making it easier to be
inspected).

Depends on D7538

Reviewers: segfaultxavi, felipealmeida, bu5hm4n

Reviewed By: bu5hm4n

Subscribers: bu5hm4n, cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D7539
src/bin/eolian_mono/eolian/mono/events.hh
src/bin/eolian_mono/eolian/mono/parameter.hh
src/bin/eolian_mono/eolian/mono/struct_definition.hh
src/tests/efl_mono/Events.cs
src/tests/efl_mono/dummy_test_object.eo
src/tests/efl_mono/libefl_mono_native_test.c