summaryrefslogtreecommitdiff
path: root/src/bindings/mono/eina_mono/eina_common.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/bindings/mono/eina_mono/eina_common.cs')
-rw-r--r--src/bindings/mono/eina_mono/eina_common.cs10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/bindings/mono/eina_mono/eina_common.cs b/src/bindings/mono/eina_mono/eina_common.cs
index e2ddc70..c9c10de 100644
--- a/src/bindings/mono/eina_mono/eina_common.cs
+++ b/src/bindings/mono/eina_mono/eina_common.cs
@@ -95,12 +95,6 @@ public static class MemoryNative {
95 } 95 }
96} 96}
97 97
98[StructLayout(LayoutKind.Sequential)]
99public struct ConvertWrapper<T>
100{
101 public T val;
102}
103
104public static class PrimitiveConversion 98public static class PrimitiveConversion
105{ 99{
106 public static T PointerToManaged<T>(IntPtr nat) 100 public static T PointerToManaged<T>(IntPtr nat)
@@ -111,8 +105,8 @@ public static class PrimitiveConversion
111 return default(T); 105 return default(T);
112 } 106 }
113 107
114 var w = Marshal.PtrToStructure<Eina.ConvertWrapper<T> >(nat); 108 var w = Marshal.PtrToStructure<T>(nat);
115 return w.val; 109 return w;
116 } 110 }
117 111
118 public static IntPtr ManagedToPointerAlloc<T>(T man) 112 public static IntPtr ManagedToPointerAlloc<T>(T man)