summaryrefslogtreecommitdiff
path: root/src/bindings/mono/eo_mono
diff options
context:
space:
mode:
authorYeongjong Lee <yj34.lee@samsung.com>2019-10-28 18:08:01 -0300
committerLauro Moura <lauromoura@expertisesolutions.com.br>2019-10-28 18:22:38 -0300
commit90280ffed67b6d5caf4d630440ed153f3beeb547 (patch)
tree7e39b7975915641e63ee96641645635af4795a42 /src/bindings/mono/eo_mono
parente6fafe4e614e1ebb72e44f006f8adba9edccedaf (diff)
mono: encapsulate internal CustomMarshaler
Summary: Depends on D10337 Test Plan: meson setup -Dbindings=mono,cxx -Dmono-beta=true Reviewers: lauromoura, segfaultxavi, Jaehyun_Cho Reviewed By: lauromoura Subscribers: cedric, #reviewers, #committers, woohyun Tags: #efl Differential Revision: https://phab.enlightenment.org/D10344
Diffstat (limited to 'src/bindings/mono/eo_mono')
-rw-r--r--src/bindings/mono/eo_mono/iwrapper.cs38
1 files changed, 19 insertions, 19 deletions
diff --git a/src/bindings/mono/eo_mono/iwrapper.cs b/src/bindings/mono/eo_mono/iwrapper.cs
index 8ba47b4..3c4b8e0 100644
--- a/src/bindings/mono/eo_mono/iwrapper.cs
+++ b/src/bindings/mono/eo_mono/iwrapper.cs
@@ -1026,22 +1026,22 @@ public static class ClassRegister
1026 private static readonly object klassAllocLock = new object(); 1026 private static readonly object klassAllocLock = new object();
1027} 1027}
1028 1028
1029public interface IOwnershipTag 1029interface IOwnershipTag
1030{ 1030{
1031} 1031}
1032 1032
1033public class OwnTag : IOwnershipTag 1033class OwnTag : IOwnershipTag
1034{ 1034{
1035} 1035}
1036 1036
1037public class NonOwnTag : IOwnershipTag 1037class NonOwnTag : IOwnershipTag
1038{ 1038{
1039} 1039}
1040 1040
1041public class MarshalEo<U> : ICustomMarshaler 1041class MarshalEo<U> : ICustomMarshaler
1042 where U : IOwnershipTag 1042 where U : IOwnershipTag
1043{ 1043{
1044 public static ICustomMarshaler GetInstance(string cookie) 1044 internal static ICustomMarshaler GetInstance(string cookie)
1045 { 1045 {
1046 Eina.Log.Debug("MarshalEo.GetInstace cookie " + cookie); 1046 Eina.Log.Debug("MarshalEo.GetInstace cookie " + cookie);
1047 return new MarshalEo<U>(); 1047 return new MarshalEo<U>();
@@ -1091,9 +1091,9 @@ public class MarshalEo<U> : ICustomMarshaler
1091} 1091}
1092 1092
1093///<summary>Marshals between System.Type instances and Eo classes (IntPtrs).</summary> 1093///<summary>Marshals between System.Type instances and Eo classes (IntPtrs).</summary>
1094public class MarshalEflClass : ICustomMarshaler 1094class MarshalEflClass : ICustomMarshaler
1095{ 1095{
1096 public static ICustomMarshaler GetInstance(string cookie) 1096 internal static ICustomMarshaler GetInstance(string cookie)
1097 { 1097 {
1098 Eina.Log.Debug("MarshalEflClass.GetInstance cookie " + cookie); 1098 Eina.Log.Debug("MarshalEflClass.GetInstance cookie " + cookie);
1099 return new MarshalEflClass(); 1099 return new MarshalEflClass();
@@ -1137,7 +1137,7 @@ public class MarshalEflClass : ICustomMarshaler
1137 } 1137 }
1138} 1138}
1139 1139
1140public class StringPassOwnershipMarshaler : ICustomMarshaler 1140class StringPassOwnershipMarshaler : ICustomMarshaler
1141{ 1141{
1142 public object MarshalNativeToManaged(IntPtr pNativeData) 1142 public object MarshalNativeToManaged(IntPtr pNativeData)
1143 { 1143 {
@@ -1165,7 +1165,7 @@ public class StringPassOwnershipMarshaler : ICustomMarshaler
1165 return -1; 1165 return -1;
1166 } 1166 }
1167 1167
1168 public static ICustomMarshaler GetInstance(string cookie) 1168 internal static ICustomMarshaler GetInstance(string cookie)
1169 { 1169 {
1170 if (marshaler == null) 1170 if (marshaler == null)
1171 { 1171 {
@@ -1178,7 +1178,7 @@ public class StringPassOwnershipMarshaler : ICustomMarshaler
1178 static private StringPassOwnershipMarshaler marshaler; 1178 static private StringPassOwnershipMarshaler marshaler;
1179} 1179}
1180 1180
1181public class StringKeepOwnershipMarshaler: ICustomMarshaler 1181class StringKeepOwnershipMarshaler: ICustomMarshaler
1182{ 1182{
1183 public object MarshalNativeToManaged(IntPtr pNativeData) 1183 public object MarshalNativeToManaged(IntPtr pNativeData)
1184 { 1184 {
@@ -1204,7 +1204,7 @@ public class StringKeepOwnershipMarshaler: ICustomMarshaler
1204 return -1; 1204 return -1;
1205 } 1205 }
1206 1206
1207 public static ICustomMarshaler GetInstance(string cookie) 1207 internal static ICustomMarshaler GetInstance(string cookie)
1208 { 1208 {
1209 if (marshaler == null) 1209 if (marshaler == null)
1210 { 1210 {
@@ -1217,7 +1217,7 @@ public class StringKeepOwnershipMarshaler: ICustomMarshaler
1217 static private StringKeepOwnershipMarshaler marshaler; 1217 static private StringKeepOwnershipMarshaler marshaler;
1218} 1218}
1219 1219
1220public class StringsharePassOwnershipMarshaler : ICustomMarshaler 1220class StringsharePassOwnershipMarshaler : ICustomMarshaler
1221{ 1221{
1222 public object MarshalNativeToManaged(IntPtr pNativeData) 1222 public object MarshalNativeToManaged(IntPtr pNativeData)
1223 { 1223 {
@@ -1245,7 +1245,7 @@ public class StringsharePassOwnershipMarshaler : ICustomMarshaler
1245 return -1; 1245 return -1;
1246 } 1246 }
1247 1247
1248 public static ICustomMarshaler GetInstance(string cookie) 1248 internal static ICustomMarshaler GetInstance(string cookie)
1249 { 1249 {
1250 if (marshaler == null) 1250 if (marshaler == null)
1251 { 1251 {
@@ -1258,7 +1258,7 @@ public class StringsharePassOwnershipMarshaler : ICustomMarshaler
1258 static private StringsharePassOwnershipMarshaler marshaler; 1258 static private StringsharePassOwnershipMarshaler marshaler;
1259} 1259}
1260 1260
1261public class StringshareKeepOwnershipMarshaler : ICustomMarshaler 1261class StringshareKeepOwnershipMarshaler : ICustomMarshaler
1262{ 1262{
1263 public object MarshalNativeToManaged(IntPtr pNativeData) 1263 public object MarshalNativeToManaged(IntPtr pNativeData)
1264 { 1264 {
@@ -1284,7 +1284,7 @@ public class StringshareKeepOwnershipMarshaler : ICustomMarshaler
1284 return -1; 1284 return -1;
1285 } 1285 }
1286 1286
1287 public static ICustomMarshaler GetInstance(string cookie) 1287 internal static ICustomMarshaler GetInstance(string cookie)
1288 { 1288 {
1289 if (marshaler == null) 1289 if (marshaler == null)
1290 { 1290 {
@@ -1297,7 +1297,7 @@ public class StringshareKeepOwnershipMarshaler : ICustomMarshaler
1297 static private StringshareKeepOwnershipMarshaler marshaler; 1297 static private StringshareKeepOwnershipMarshaler marshaler;
1298} 1298}
1299 1299
1300public class StrbufPassOwnershipMarshaler : ICustomMarshaler 1300class StrbufPassOwnershipMarshaler : ICustomMarshaler
1301{ 1301{
1302 public object MarshalNativeToManaged(IntPtr pNativeData) 1302 public object MarshalNativeToManaged(IntPtr pNativeData)
1303 { 1303 {
@@ -1325,7 +1325,7 @@ public class StrbufPassOwnershipMarshaler : ICustomMarshaler
1325 return -1; 1325 return -1;
1326 } 1326 }
1327 1327
1328 public static ICustomMarshaler GetInstance(string cookie) 1328 internal static ICustomMarshaler GetInstance(string cookie)
1329 { 1329 {
1330 if (marshaler == null) 1330 if (marshaler == null)
1331 { 1331 {
@@ -1338,7 +1338,7 @@ public class StrbufPassOwnershipMarshaler : ICustomMarshaler
1338 static private StrbufPassOwnershipMarshaler marshaler; 1338 static private StrbufPassOwnershipMarshaler marshaler;
1339} 1339}
1340 1340
1341public class StrbufKeepOwnershipMarshaler: ICustomMarshaler 1341class StrbufKeepOwnershipMarshaler: ICustomMarshaler
1342{ 1342{
1343 public object MarshalNativeToManaged(IntPtr pNativeData) 1343 public object MarshalNativeToManaged(IntPtr pNativeData)
1344 { 1344 {
@@ -1365,7 +1365,7 @@ public class StrbufKeepOwnershipMarshaler: ICustomMarshaler
1365 return -1; 1365 return -1;
1366 } 1366 }
1367 1367
1368 public static ICustomMarshaler GetInstance(string cookie) 1368 internal static ICustomMarshaler GetInstance(string cookie)
1369 { 1369 {
1370 if (marshaler == null) 1370 if (marshaler == null)
1371 { 1371 {