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
This commit is contained in:
Lauro Moura 2019-04-15 15:29:08 -03:00 committed by Vitor Sousa
parent d775b58a63
commit b6529a65c6
2 changed files with 13 additions and 13 deletions

View File

@ -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(

View File

@ -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;