summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLauro Moura <lauromoura@expertisesolutions.com.br>2019-10-30 19:58:53 -0300
committerLauro Moura <lauromoura@expertisesolutions.com.br>2019-10-30 20:06:34 -0300
commit8a014c672a248411e68ec2b83af4e6b6f09ab0eb (patch)
tree2df785f2f26b2a421def7a3b80d4d5bd7a263db9
parent19841aff2cc8a0a4b95277743cfee2f43061ae1e (diff)
csharp: Hide more Eina stuff.devs/lauromoura/eina-cleanup
Ref T8165 Ref T8293
-rw-r--r--src/bindings/mono/eina_mono/eina_container_common.cs36
-rw-r--r--src/bindings/mono/eina_mono/eina_inarray.cs2
-rw-r--r--src/bindings/mono/eina_mono/eina_inlist.cs2
-rw-r--r--src/bindings/mono/eina_mono/eina_list.cs3
-rw-r--r--src/bindings/mono/eina_mono/eina_promises.cs2
-rw-r--r--src/bindings/mono/eina_mono/eina_strbuf.cs2
-rw-r--r--src/bindings/mono/eina_mono/eina_stringshare.cs2
-rw-r--r--src/bindings/mono/eina_mono/eina_value.cs2
8 files changed, 26 insertions, 25 deletions
diff --git a/src/bindings/mono/eina_mono/eina_container_common.cs b/src/bindings/mono/eina_mono/eina_container_common.cs
index 5b3b2f4..03400d8 100644
--- a/src/bindings/mono/eina_mono/eina_container_common.cs
+++ b/src/bindings/mono/eina_mono/eina_container_common.cs
@@ -32,7 +32,7 @@ namespace Eina
32{ 32{
33 33
34[EditorBrowsable(EditorBrowsableState.Never)] 34[EditorBrowsable(EditorBrowsableState.Never)]
35public enum ElementType 35enum ElementType
36{ 36{
37 NumericType, 37 NumericType,
38 StringType, 38 StringType,
@@ -42,7 +42,7 @@ public enum ElementType
42 42
43[EditorBrowsable(EditorBrowsableState.Never)] 43[EditorBrowsable(EditorBrowsableState.Never)]
44[StructLayout(LayoutKind.Sequential)] 44[StructLayout(LayoutKind.Sequential)]
45public struct InlistMem 45struct InlistMem
46{ 46{
47 public IntPtr next {get;set;} 47 public IntPtr next {get;set;}
48 public IntPtr prev {get;set;} 48 public IntPtr prev {get;set;}
@@ -51,14 +51,14 @@ public struct InlistMem
51 51
52[EditorBrowsable(EditorBrowsableState.Never)] 52[EditorBrowsable(EditorBrowsableState.Never)]
53[StructLayout(LayoutKind.Sequential)] 53[StructLayout(LayoutKind.Sequential)]
54public struct InlistNode<T> 54struct InlistNode<T>
55{ 55{
56 public InlistMem __in_list {get;set;} 56 public InlistMem __in_list {get;set;}
57 public T Val {get;set;} 57 public T Val {get;set;}
58} 58}
59 59
60[EditorBrowsable(EditorBrowsableState.Never)] 60[EditorBrowsable(EditorBrowsableState.Never)]
61public interface IBaseElementTraits<T> 61interface IBaseElementTraits<T>
62{ 62{
63 IntPtr ManagedToNativeAlloc(T man); 63 IntPtr ManagedToNativeAlloc(T man);
64 IntPtr ManagedToNativeAllocInlistNode(T man); 64 IntPtr ManagedToNativeAllocInlistNode(T man);
@@ -79,7 +79,7 @@ public interface IBaseElementTraits<T>
79} 79}
80 80
81[EditorBrowsable(EditorBrowsableState.Never)] 81[EditorBrowsable(EditorBrowsableState.Never)]
82public class StringElementTraits : IBaseElementTraits<string> 82class StringElementTraits : IBaseElementTraits<string>
83{ 83{
84 public StringElementTraits() 84 public StringElementTraits()
85 { 85 {
@@ -218,7 +218,7 @@ public class StringElementTraits : IBaseElementTraits<string>
218} 218}
219 219
220[EditorBrowsable(EditorBrowsableState.Never)] 220[EditorBrowsable(EditorBrowsableState.Never)]
221public class StringshareElementTraits : IBaseElementTraits<Eina.Stringshare> 221class StringshareElementTraits : IBaseElementTraits<Eina.Stringshare>
222{ 222{
223 public StringshareElementTraits() 223 public StringshareElementTraits()
224 { 224 {
@@ -358,7 +358,7 @@ public class StringshareElementTraits : IBaseElementTraits<Eina.Stringshare>
358} 358}
359 359
360[EditorBrowsable(EditorBrowsableState.Never)] 360[EditorBrowsable(EditorBrowsableState.Never)]
361public class EflObjectElementTraits<T> : IBaseElementTraits<T> 361class EflObjectElementTraits<T> : IBaseElementTraits<T>
362{ 362{
363 public IntPtr ManagedToNativeAlloc(T man) 363 public IntPtr ManagedToNativeAlloc(T man)
364 { 364 {
@@ -516,7 +516,7 @@ public class EflObjectElementTraits<T> : IBaseElementTraits<T>
516} 516}
517 517
518[EditorBrowsable(EditorBrowsableState.Never)] 518[EditorBrowsable(EditorBrowsableState.Never)]
519public abstract class PrimitiveElementTraits<T> 519abstract class PrimitiveElementTraits<T>
520{ 520{
521 private Eina.Callbacks.EinaCompareCb dlgt = null; 521 private Eina.Callbacks.EinaCompareCb dlgt = null;
522 522
@@ -618,7 +618,7 @@ public abstract class PrimitiveElementTraits<T>
618} 618}
619 619
620[EditorBrowsable(EditorBrowsableState.Never)] 620[EditorBrowsable(EditorBrowsableState.Never)]
621abstract public class Primitive32ElementTraits<T> : PrimitiveElementTraits<T>, IBaseElementTraits<T> 621abstract class Primitive32ElementTraits<T> : PrimitiveElementTraits<T>, IBaseElementTraits<T>
622{ 622{
623 private static IBaseElementTraits<Int32> int32Traits = null; 623 private static IBaseElementTraits<Int32> int32Traits = null;
624 624
@@ -657,7 +657,7 @@ abstract public class Primitive32ElementTraits<T> : PrimitiveElementTraits<T>, I
657} 657}
658 658
659[EditorBrowsable(EditorBrowsableState.Never)] 659[EditorBrowsable(EditorBrowsableState.Never)]
660abstract public class Primitive64ElementTraits<T> : PrimitiveElementTraits<T>, IBaseElementTraits<T> 660abstract class Primitive64ElementTraits<T> : PrimitiveElementTraits<T>, IBaseElementTraits<T>
661{ 661{
662 private static IBaseElementTraits<Int64> int64Traits = null; 662 private static IBaseElementTraits<Int64> int64Traits = null;
663 663
@@ -696,7 +696,7 @@ abstract public class Primitive64ElementTraits<T> : PrimitiveElementTraits<T>, I
696} 696}
697 697
698[EditorBrowsable(EditorBrowsableState.Never)] 698[EditorBrowsable(EditorBrowsableState.Never)]
699public class IntElementTraits : Primitive32ElementTraits<int>, IBaseElementTraits<int> 699class IntElementTraits : Primitive32ElementTraits<int>, IBaseElementTraits<int>
700{ 700{
701 override public void ManagedToNativeCopyTo(int man, IntPtr mem) 701 override public void ManagedToNativeCopyTo(int man, IntPtr mem)
702 { 702 {
@@ -721,7 +721,7 @@ public class IntElementTraits : Primitive32ElementTraits<int>, IBaseElementTrait
721} 721}
722 722
723[EditorBrowsable(EditorBrowsableState.Never)] 723[EditorBrowsable(EditorBrowsableState.Never)]
724public class CharElementTraits : Primitive32ElementTraits<char>, IBaseElementTraits<char> 724class CharElementTraits : Primitive32ElementTraits<char>, IBaseElementTraits<char>
725{ 725{
726 override public void ManagedToNativeCopyTo(char man, IntPtr mem) 726 override public void ManagedToNativeCopyTo(char man, IntPtr mem)
727 { 727 {
@@ -746,7 +746,7 @@ public class CharElementTraits : Primitive32ElementTraits<char>, IBaseElementTra
746} 746}
747 747
748[EditorBrowsable(EditorBrowsableState.Never)] 748[EditorBrowsable(EditorBrowsableState.Never)]
749public class LongElementTraits : Primitive64ElementTraits<long>, IBaseElementTraits<long> 749class LongElementTraits : Primitive64ElementTraits<long>, IBaseElementTraits<long>
750{ 750{
751 override public void ManagedToNativeCopyTo(long man, IntPtr mem) 751 override public void ManagedToNativeCopyTo(long man, IntPtr mem)
752 { 752 {
@@ -771,7 +771,7 @@ public class LongElementTraits : Primitive64ElementTraits<long>, IBaseElementTra
771} 771}
772 772
773[EditorBrowsable(EditorBrowsableState.Never)] 773[EditorBrowsable(EditorBrowsableState.Never)]
774public class ShortElementTraits : Primitive32ElementTraits<short>, IBaseElementTraits<short> 774class ShortElementTraits : Primitive32ElementTraits<short>, IBaseElementTraits<short>
775{ 775{
776 override public void ManagedToNativeCopyTo(short man, IntPtr mem) 776 override public void ManagedToNativeCopyTo(short man, IntPtr mem)
777 { 777 {
@@ -796,7 +796,7 @@ public class ShortElementTraits : Primitive32ElementTraits<short>, IBaseElementT
796} 796}
797 797
798[EditorBrowsable(EditorBrowsableState.Never)] 798[EditorBrowsable(EditorBrowsableState.Never)]
799public class FloatElementTraits : Primitive32ElementTraits<float>, IBaseElementTraits<float> 799class FloatElementTraits : Primitive32ElementTraits<float>, IBaseElementTraits<float>
800{ 800{
801 override public void ManagedToNativeCopyTo(float man, IntPtr mem) 801 override public void ManagedToNativeCopyTo(float man, IntPtr mem)
802 { 802 {
@@ -821,7 +821,7 @@ public class FloatElementTraits : Primitive32ElementTraits<float>, IBaseElementT
821} 821}
822 822
823[EditorBrowsable(EditorBrowsableState.Never)] 823[EditorBrowsable(EditorBrowsableState.Never)]
824public class DoubleElementTraits : Primitive64ElementTraits<double>, IBaseElementTraits<double> 824class DoubleElementTraits : Primitive64ElementTraits<double>, IBaseElementTraits<double>
825{ 825{
826 override public void ManagedToNativeCopyTo(double man, IntPtr mem) 826 override public void ManagedToNativeCopyTo(double man, IntPtr mem)
827 { 827 {
@@ -846,7 +846,7 @@ public class DoubleElementTraits : Primitive64ElementTraits<double>, IBaseElemen
846} 846}
847 847
848[EditorBrowsable(EditorBrowsableState.Never)] 848[EditorBrowsable(EditorBrowsableState.Never)]
849public class ByteElementTraits : Primitive32ElementTraits<byte>, IBaseElementTraits<byte> 849class ByteElementTraits : Primitive32ElementTraits<byte>, IBaseElementTraits<byte>
850{ 850{
851 override public void ManagedToNativeCopyTo(byte man, IntPtr mem) 851 override public void ManagedToNativeCopyTo(byte man, IntPtr mem)
852 { 852 {
@@ -871,7 +871,7 @@ public class ByteElementTraits : Primitive32ElementTraits<byte>, IBaseElementTra
871} 871}
872 872
873[EditorBrowsable(EditorBrowsableState.Never)] 873[EditorBrowsable(EditorBrowsableState.Never)]
874public static class TraitFunctions 874static class TraitFunctions
875{ 875{
876 public static bool IsEflObject(System.Type type) 876 public static bool IsEflObject(System.Type type)
877 { 877 {
diff --git a/src/bindings/mono/eina_mono/eina_inarray.cs b/src/bindings/mono/eina_mono/eina_inarray.cs
index 0373b43..30a047d 100644
--- a/src/bindings/mono/eina_mono/eina_inarray.cs
+++ b/src/bindings/mono/eina_mono/eina_inarray.cs
@@ -27,7 +27,7 @@ namespace Eina
27{ 27{
28 28
29[EditorBrowsable(EditorBrowsableState.Never)] 29[EditorBrowsable(EditorBrowsableState.Never)]
30public static class InarrayNativeFunctions 30static class InarrayNativeFunctions
31{ 31{
32 [DllImport(efl.Libs.Eina)] internal static extern IntPtr 32 [DllImport(efl.Libs.Eina)] internal static extern IntPtr
33 eina_inarray_new(uint member_size, uint step); 33 eina_inarray_new(uint member_size, uint step);
diff --git a/src/bindings/mono/eina_mono/eina_inlist.cs b/src/bindings/mono/eina_mono/eina_inlist.cs
index 80cfe2b..7e1c8c9 100644
--- a/src/bindings/mono/eina_mono/eina_inlist.cs
+++ b/src/bindings/mono/eina_mono/eina_inlist.cs
@@ -28,7 +28,7 @@ namespace Eina
28{ 28{
29 29
30[EditorBrowsable(EditorBrowsableState.Never)] 30[EditorBrowsable(EditorBrowsableState.Never)]
31public static class InlistNativeFunctions 31static class InlistNativeFunctions
32{ 32{
33 [DllImport(efl.Libs.Eina)] internal static extern IntPtr 33 [DllImport(efl.Libs.Eina)] internal static extern IntPtr
34 eina_inlist_append(IntPtr in_list, IntPtr in_item); 34 eina_inlist_append(IntPtr in_list, IntPtr in_item);
diff --git a/src/bindings/mono/eina_mono/eina_list.cs b/src/bindings/mono/eina_mono/eina_list.cs
index 70f2d91..86777e0 100644
--- a/src/bindings/mono/eina_mono/eina_list.cs
+++ b/src/bindings/mono/eina_mono/eina_list.cs
@@ -1,3 +1,4 @@
1
1/* 2/*
2 * Copyright 2019 by its authors. See AUTHORS. 3 * Copyright 2019 by its authors. See AUTHORS.
3 * 4 *
@@ -28,7 +29,7 @@ namespace Eina
28{ 29{
29 30
30[EditorBrowsable(EditorBrowsableState.Never)] 31[EditorBrowsable(EditorBrowsableState.Never)]
31public static class ListNativeFunctions 32static class ListNativeFunctions
32{ 33{
33 [DllImport(efl.Libs.Eina)] internal static extern IntPtr 34 [DllImport(efl.Libs.Eina)] internal static extern IntPtr
34 eina_list_append(IntPtr list, IntPtr data); 35 eina_list_append(IntPtr list, IntPtr data);
diff --git a/src/bindings/mono/eina_mono/eina_promises.cs b/src/bindings/mono/eina_mono/eina_promises.cs
index 4b14a0d..fd4ea0b 100644
--- a/src/bindings/mono/eina_mono/eina_promises.cs
+++ b/src/bindings/mono/eina_mono/eina_promises.cs
@@ -419,7 +419,7 @@ public class Future
419/// <summary>Custom marshaler to convert between managed and native <see cref="Eina.Future"/>. 419/// <summary>Custom marshaler to convert between managed and native <see cref="Eina.Future"/>.
420/// Internal usage in generated code.</summary> 420/// Internal usage in generated code.</summary>
421[EditorBrowsable(EditorBrowsableState.Never)] 421[EditorBrowsable(EditorBrowsableState.Never)]
422public class FutureMarshaler : ICustomMarshaler 422class FutureMarshaler : ICustomMarshaler
423{ 423{
424 424
425 ///<summary>Wrap the native future with a managed wrapper.</summary> 425 ///<summary>Wrap the native future with a managed wrapper.</summary>
diff --git a/src/bindings/mono/eina_mono/eina_strbuf.cs b/src/bindings/mono/eina_mono/eina_strbuf.cs
index bdde9a9..9c29a09 100644
--- a/src/bindings/mono/eina_mono/eina_strbuf.cs
+++ b/src/bindings/mono/eina_mono/eina_strbuf.cs
@@ -25,7 +25,7 @@ namespace Eina
25namespace EinaNative 25namespace EinaNative
26{ 26{
27 27
28static internal class StrbufNativeMethods 28static class StrbufNativeMethods
29{ 29{
30 [DllImport(efl.Libs.Eina)] 30 [DllImport(efl.Libs.Eina)]
31 internal static extern IntPtr eina_strbuf_new(); 31 internal static extern IntPtr eina_strbuf_new();
diff --git a/src/bindings/mono/eina_mono/eina_stringshare.cs b/src/bindings/mono/eina_mono/eina_stringshare.cs
index 698250d..76f2182 100644
--- a/src/bindings/mono/eina_mono/eina_stringshare.cs
+++ b/src/bindings/mono/eina_mono/eina_stringshare.cs
@@ -25,7 +25,7 @@ namespace Eina
25 25
26// TODO: move all native functions to a "NativeMethods" class 26// TODO: move all native functions to a "NativeMethods" class
27[EditorBrowsable(EditorBrowsableState.Never)] 27[EditorBrowsable(EditorBrowsableState.Never)]
28public static partial class NativeMethods 28static partial class NativeMethods
29{ 29{
30 [DllImport(efl.Libs.Eina)] internal static extern IntPtr 30 [DllImport(efl.Libs.Eina)] internal static extern IntPtr
31 eina_stringshare_add(IntPtr str); 31 eina_stringshare_add(IntPtr str);
diff --git a/src/bindings/mono/eina_mono/eina_value.cs b/src/bindings/mono/eina_mono/eina_value.cs
index 8e0d836..761e88d 100644
--- a/src/bindings/mono/eina_mono/eina_value.cs
+++ b/src/bindings/mono/eina_mono/eina_value.cs
@@ -58,7 +58,7 @@ struct Value_List
58 58
59[SuppressUnmanagedCodeSecurityAttribute] 59[SuppressUnmanagedCodeSecurityAttribute]
60[EditorBrowsable(EditorBrowsableState.Never)] 60[EditorBrowsable(EditorBrowsableState.Never)]
61static internal class UnsafeNativeMethods 61static class UnsafeNativeMethods
62{ 62{
63 [DllImport(efl.Libs.Eina)] 63 [DllImport(efl.Libs.Eina)]
64 internal static extern IntPtr eina_value_new(IntPtr type); 64 internal static extern IntPtr eina_value_new(IntPtr type);