summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLauro Moura <lauromoura@expertisesolutions.com.br>2019-04-15 15:29:08 -0300
committerVitor Sousa <vitorsousa@expertisesolutions.com.br>2019-04-15 15:36:22 -0300
commitb6529a65c6879afab39e8e2af098fbedd8971ee8 (patch)
treed723e273aabd608be4b8a409f82f66874e692e08
parentd775b58a630d6d0fd2ac2176df91bc1142a5276f (diff)
downloadefl-b6529a65c6879afab39e8e2af098fbedd8971ee8.tar.gz
csharp: Rename MarshalTest to MarshalEo
Summary: To better reflect its intent Reviewers: segfaultxavi, vitor.sousa, felipealmeida Reviewed By: vitor.sousa Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8607
-rw-r--r--src/bin/eolian_mono/eolian/mono/marshall_annotation.hh4
-rw-r--r--src/bindings/mono/eo_mono/iwrapper.cs22
2 files changed, 13 insertions, 13 deletions
diff --git a/src/bin/eolian_mono/eolian/mono/marshall_annotation.hh b/src/bin/eolian_mono/eolian/mono/marshall_annotation.hh
index 4159b6a952..296b59c04c 100644
--- a/src/bin/eolian_mono/eolian/mono/marshall_annotation.hh
+++ b/src/bin/eolian_mono/eolian/mono/marshall_annotation.hh
@@ -151,8 +151,8 @@ struct marshall_annotation_visitor_generate
name = "Efl.Eo.MarshalEflClass";
else
{
- auto own = klass_name.base_qualifier & qualifier_info::is_own ? "OwnTag" : "NonOwnTag";
- name = "Efl.Eo.MarshalTest<" + name + ", Efl.Eo." + own + ">";
+ std::string own = klass_name.base_qualifier & qualifier_info::is_own ? "OwnTag" : "NonOwnTag";
+ name = "Efl.Eo.MarshalEo<Efl.Eo." + own + ">";
}
return as_generator(
diff --git a/src/bindings/mono/eo_mono/iwrapper.cs b/src/bindings/mono/eo_mono/iwrapper.cs
index 503b71ad28..a410a091bb 100644
--- a/src/bindings/mono/eo_mono/iwrapper.cs
+++ b/src/bindings/mono/eo_mono/iwrapper.cs
@@ -971,37 +971,37 @@ public class NonOwnTag : IOwnershipTag
{
}
-public class MarshalTest<T, U> : ICustomMarshaler
+public class MarshalEo<U> : ICustomMarshaler
where U : IOwnershipTag
{
public static ICustomMarshaler GetInstance(string cookie)
{
- Eina.Log.Debug("MarshalTest.GetInstace cookie " + cookie);
- return new MarshalTest<T, U>();
+ Eina.Log.Debug("MarshalEo.GetInstace cookie " + cookie);
+ return new MarshalEo<U>();
}
public void CleanUpManagedData(object ManagedObj)
{
- //Eina.Log.Warning("MarshalTest.CleanUpManagedData not implemented");
+ //Eina.Log.Warning("MarshalEo.CleanUpManagedData not implemented");
//throw new NotImplementedException();
}
public void CleanUpNativeData(IntPtr pNativeData)
{
- //Eina.Log.Warning("MarshalTest.CleanUpNativeData not implemented");
+ //Eina.Log.Warning("MarshalEo.CleanUpNativeData not implemented");
//throw new NotImplementedException();
}
public int GetNativeDataSize()
{
- Eina.Log.Debug("MarshalTest.GetNativeDataSize");
+ Eina.Log.Debug("MarshalEo.GetNativeDataSize");
return 0;
//return 8;
}
public IntPtr MarshalManagedToNative(object ManagedObj)
{
- Eina.Log.Debug("MarshalTest.MarshallManagedToNative");
+ Eina.Log.Debug("MarshalEo.MarshallManagedToNative");
if (ManagedObj == null)
{
@@ -1028,7 +1028,7 @@ public class MarshalEflClass : ICustomMarshaler
{
public static ICustomMarshaler GetInstance(string cookie)
{
- Eina.Log.Debug("MarshalTest.GetInstance cookie " + cookie);
+ Eina.Log.Debug("MarshalEflClass.GetInstance cookie " + cookie);
return new MarshalEflClass();
}
@@ -1042,13 +1042,13 @@ public class MarshalEflClass : ICustomMarshaler
public int GetNativeDataSize()
{
- Eina.Log.Debug("MarshalTest.GetNativeDataSize");
+ Eina.Log.Debug("MarshalEflClass.GetNativeDataSize");
return 0;
}
public IntPtr MarshalManagedToNative(object ManagedObj)
{
- Eina.Log.Debug("MarshalTest.MarshallManagedToNative");
+ Eina.Log.Debug("MarshalEflClass.MarshallManagedToNative");
if (ManagedObj == null)
{
return IntPtr.Zero;
@@ -1060,7 +1060,7 @@ public class MarshalEflClass : ICustomMarshaler
public object MarshalNativeToManaged(IntPtr pNativeData)
{
- Eina.Log.Debug("MarshalTest.MarshalNativeToManaged");
+ Eina.Log.Debug("MarshalEflClass.MarshalNativeToManaged");
if (pNativeData == IntPtr.Zero)
{
return null;