summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/bin/eolian_mono/eolian/mono/function_definition.hh2
-rw-r--r--src/bindings/mono/efl_mono/efl_libs.cs.in24
-rw-r--r--src/bindings/mono/eina_mono/eina_array.cs2
-rw-r--r--src/bindings/mono/eina_mono/eina_error.cs10
-rw-r--r--src/bindings/mono/eina_mono/eina_inarray.cs2
-rw-r--r--src/bindings/mono/eina_mono/eina_log.cs24
-rw-r--r--src/bindings/mono/eina_mono/eina_value.cs2
-rw-r--r--src/bindings/mono/eldbus_mono/eldbus_common.cs2
-rw-r--r--src/bindings/mono/eo_mono/iwrapper.cs8
9 files changed, 38 insertions, 38 deletions
diff --git a/src/bin/eolian_mono/eolian/mono/function_definition.hh b/src/bin/eolian_mono/eolian/mono/function_definition.hh
index 301f541..d17ac56 100644
--- a/src/bin/eolian_mono/eolian/mono/function_definition.hh
+++ b/src/bin/eolian_mono/eolian/mono/function_definition.hh
@@ -76,7 +76,7 @@ struct native_function_definition_generator
76 76
77 // Delegate holder (so it can't be collected). 77 // Delegate holder (so it can't be collected).
78 if(!as_generator 78 if(!as_generator
79 (indent << "public static Efl.Eo.FunctionWrapper<" << string << "_api_delegate> " << string << "_ptr = new Efl.Eo.FunctionWrapper<" 79 (indent << "public static readonly Efl.Eo.FunctionWrapper<" << string << "_api_delegate> " << string << "_ptr = new Efl.Eo.FunctionWrapper<"
80 << string << "_api_delegate>(Module, \"" << string << "\");\n\n") 80 << string << "_api_delegate>(Module, \"" << string << "\");\n\n")
81 .generate(sink, std::make_tuple(f.c_name, f.c_name, f.c_name, f.c_name), context)) 81 .generate(sink, std::make_tuple(f.c_name, f.c_name, f.c_name, f.c_name), context))
82 return false; 82 return false;
diff --git a/src/bindings/mono/efl_mono/efl_libs.cs.in b/src/bindings/mono/efl_mono/efl_libs.cs.in
index 0aa5690..87aee83 100644
--- a/src/bindings/mono/efl_mono/efl_libs.cs.in
+++ b/src/bindings/mono/efl_mono/efl_libs.cs.in
@@ -21,18 +21,18 @@ public class Libs {
21 public const string Libdl = "libdl.so"; 21 public const string Libdl = "libdl.so";
22 public const string Kernel32 = "kernel32.dll"; 22 public const string Kernel32 = "kernel32.dll";
23 23
24 public static Efl.Eo.NativeModule EflModule = new Efl.Eo.NativeModule(Efl); 24 public static readonly Efl.Eo.NativeModule EflModule = new Efl.Eo.NativeModule(Efl);
25 public static Efl.Eo.NativeModule CoreModule = new Efl.Eo.NativeModule(Ecore); 25 public static readonly Efl.Eo.NativeModule CoreModule = new Efl.Eo.NativeModule(Ecore);
26 public static Efl.Eo.NativeModule EinaModule = new Efl.Eo.NativeModule(Eina); 26 public static readonly Efl.Eo.NativeModule EinaModule = new Efl.Eo.NativeModule(Eina);
27 public static Efl.Eo.NativeModule EoModule = new Efl.Eo.NativeModule(Eo); 27 public static readonly Efl.Eo.NativeModule EoModule = new Efl.Eo.NativeModule(Eo);
28 public static Efl.Eo.NativeModule EvasModule = new Efl.Eo.NativeModule(Evas); 28 public static readonly Efl.Eo.NativeModule EvasModule = new Efl.Eo.NativeModule(Evas);
29 public static Efl.Eo.NativeModule EvilModule = new Efl.Eo.NativeModule(Evil); 29 public static readonly Efl.Eo.NativeModule EvilModule = new Efl.Eo.NativeModule(Evil);
30 public static Efl.Eo.NativeModule EdjeModule = new Efl.Eo.NativeModule(Edje); 30 public static readonly Efl.Eo.NativeModule EdjeModule = new Efl.Eo.NativeModule(Edje);
31 public static Efl.Eo.NativeModule ElementaryModule = new Efl.Eo.NativeModule(Elementary); 31 public static readonly Efl.Eo.NativeModule ElementaryModule = new Efl.Eo.NativeModule(Elementary);
32 public static Efl.Eo.NativeModule EldbusModule = new Efl.Eo.NativeModule(Eldbus); 32 public static readonly Efl.Eo.NativeModule EldbusModule = new Efl.Eo.NativeModule(Eldbus);
33 public static Efl.Eo.NativeModule CustomExportsModule = new Efl.Eo.NativeModule(CustomExports); 33 public static readonly Efl.Eo.NativeModule CustomExportsModule = new Efl.Eo.NativeModule(CustomExports);
34 public static Efl.Eo.NativeModule LibdlModule = new Efl.Eo.NativeModule(Libdl); 34 public static readonly Efl.Eo.NativeModule LibdlModule = new Efl.Eo.NativeModule(Libdl);
35 public static Efl.Eo.NativeModule Kernel32Module = new Efl.Eo.NativeModule(Kernel32); 35 public static readonly Efl.Eo.NativeModule Kernel32Module = new Efl.Eo.NativeModule(Kernel32);
36} 36}
37 37
38} 38}
diff --git a/src/bindings/mono/eina_mono/eina_array.cs b/src/bindings/mono/eina_mono/eina_array.cs
index 617664b..17a3ee2 100644
--- a/src/bindings/mono/eina_mono/eina_array.cs
+++ b/src/bindings/mono/eina_mono/eina_array.cs
@@ -52,7 +52,7 @@ public static class ArrayNativeFunctions
52/// </summary> 52/// </summary>
53public class Array<T> : IEnumerable<T>, IDisposable 53public class Array<T> : IEnumerable<T>, IDisposable
54{ 54{
55 public static uint DefaultStep = 32; 55 public const uint DefaultStep = 32;
56 56
57 /// <summary>Pointer to the native buffer.</summary> 57 /// <summary>Pointer to the native buffer.</summary>
58 [EditorBrowsable(EditorBrowsableState.Never)] 58 [EditorBrowsable(EditorBrowsableState.Never)]
diff --git a/src/bindings/mono/eina_mono/eina_error.cs b/src/bindings/mono/eina_mono/eina_error.cs
index 8292295..7b5733d 100644
--- a/src/bindings/mono/eina_mono/eina_error.cs
+++ b/src/bindings/mono/eina_mono/eina_error.cs
@@ -26,28 +26,28 @@ public struct Error : IComparable<Error>
26 /// Unhandled Exception error identifier. 26 /// Unhandled Exception error identifier.
27 /// <para>Since EFL 1.23.</para> 27 /// <para>Since EFL 1.23.</para>
28 /// </summary> 28 /// </summary>
29 public static Error UNHANDLED_EXCEPTION; 29 public static readonly Error UNHANDLED_EXCEPTION;
30 30
31 /// <summary> 31 /// <summary>
32 /// No error identifier. 32 /// No error identifier.
33 /// <para>Since EFL 1.23.</para> 33 /// <para>Since EFL 1.23.</para>
34 /// </summary> 34 /// </summary>
35 public static Error NO_ERROR = new Error(0); 35 public static readonly Error NO_ERROR = new Error(0);
36 /// <summary> 36 /// <summary>
37 /// Permission error identifier. 37 /// Permission error identifier.
38 /// <para>Since EFL 1.23.</para> 38 /// <para>Since EFL 1.23.</para>
39 /// </summary> 39 /// </summary>
40 public static Error EPERM = new Error(1); 40 public static readonly Error EPERM = new Error(1);
41 /// <summary> 41 /// <summary>
42 /// No entity error identifier. 42 /// No entity error identifier.
43 /// <para>Since EFL 1.23.</para> 43 /// <para>Since EFL 1.23.</para>
44 /// </summary> 44 /// </summary>
45 public static Error ENOENT = new Error(2); 45 public static readonly Error ENOENT = new Error(2);
46 /// <summary> 46 /// <summary>
47 /// Cancelled error identifier. 47 /// Cancelled error identifier.
48 /// <para>Since EFL 1.23.</para> 48 /// <para>Since EFL 1.23.</para>
49 /// </summary> 49 /// </summary>
50 public static Error ECANCELED = new Error(125); 50 public static readonly Error ECANCELED = new Error(125);
51 51
52 /// <summary> 52 /// <summary>
53 /// Constructor. 53 /// Constructor.
diff --git a/src/bindings/mono/eina_mono/eina_inarray.cs b/src/bindings/mono/eina_mono/eina_inarray.cs
index a8c5237..9b2307a 100644
--- a/src/bindings/mono/eina_mono/eina_inarray.cs
+++ b/src/bindings/mono/eina_mono/eina_inarray.cs
@@ -74,7 +74,7 @@ public static class InarrayNativeFunctions
74/// </summary> 74/// </summary>
75public class Inarray<T> : IEnumerable<T>, IDisposable 75public class Inarray<T> : IEnumerable<T>, IDisposable
76{ 76{
77 public static uint DefaultStep = 0; 77 public const uint DefaultStep = 0;
78 [EditorBrowsable(EditorBrowsableState.Never)] 78 [EditorBrowsable(EditorBrowsableState.Never)]
79 public IntPtr Handle {get;set;} = IntPtr.Zero; 79 public IntPtr Handle {get;set;} = IntPtr.Zero;
80 /// <summary>Whether this wrapper owns the native buffer. 80 /// <summary>Whether this wrapper owns the native buffer.
diff --git a/src/bindings/mono/eina_mono/eina_log.cs b/src/bindings/mono/eina_mono/eina_log.cs
index 2671971..ca9ee12 100644
--- a/src/bindings/mono/eina_mono/eina_log.cs
+++ b/src/bindings/mono/eina_mono/eina_log.cs
@@ -69,51 +69,51 @@ public class Log
69 /// <summary>Light red 69 /// <summary>Light red
70 /// <para>Since EFL 1.23.</para> 70 /// <para>Since EFL 1.23.</para>
71 /// </summary> 71 /// </summary>
72 public static string LIGHTRED = "\033[31;1m"; 72 public const string LIGHTRED = "\033[31;1m";
73 /// <summary>Red 73 /// <summary>Red
74 /// <para>Since EFL 1.23.</para> 74 /// <para>Since EFL 1.23.</para>
75 /// </summary> 75 /// </summary>
76 public static string RED = "\033[31m"; 76 public const string RED = "\033[31m";
77 /// <summary>Light blue 77 /// <summary>Light blue
78 /// <para>Since EFL 1.23.</para> 78 /// <para>Since EFL 1.23.</para>
79 /// </summary> 79 /// </summary>
80 public static string LIGHTBLUE = "\033[34;1m"; 80 public const string LIGHTBLUE = "\033[34;1m";
81 /// <summary>Blue 81 /// <summary>Blue
82 /// <para>Since EFL 1.23.</para> 82 /// <para>Since EFL 1.23.</para>
83 /// </summary> 83 /// </summary>
84 public static string BLUE = "\033[34m"; 84 public const string BLUE = "\033[34m";
85 /// <summary>Green 85 /// <summary>Green
86 /// <para>Since EFL 1.23.</para> 86 /// <para>Since EFL 1.23.</para>
87 /// </summary> 87 /// </summary>
88 public static string GREEN = "\033[32;1m"; 88 public const string GREEN = "\033[32;1m";
89 /// <summary>Yellow 89 /// <summary>Yellow
90 /// <para>Since EFL 1.23.</para> 90 /// <para>Since EFL 1.23.</para>
91 /// </summary> 91 /// </summary>
92 public static string YELLOW = "\033[33;1m"; 92 public const string YELLOW = "\033[33;1m";
93 /// <summary>Orange 93 /// <summary>Orange
94 /// <para>Since EFL 1.23.</para> 94 /// <para>Since EFL 1.23.</para>
95 /// </summary> 95 /// </summary>
96 public static string ORANGE = "\033[0;33m"; 96 public const string ORANGE = "\033[0;33m";
97 /// <summary>White 97 /// <summary>White
98 /// <para>Since EFL 1.23.</para> 98 /// <para>Since EFL 1.23.</para>
99 /// </summary> 99 /// </summary>
100 public static string WHITE = "\033[37;1m"; 100 public const string WHITE = "\033[37;1m";
101 /// <summary>Light cyan 101 /// <summary>Light cyan
102 /// <para>Since EFL 1.23.</para> 102 /// <para>Since EFL 1.23.</para>
103 /// </summary> 103 /// </summary>
104 public static string LIGHTCYAN = "\033[36;1m"; 104 public const string LIGHTCYAN = "\033[36;1m";
105 /// <summary>Cyan 105 /// <summary>Cyan
106 /// <para>Since EFL 1.23.</para> 106 /// <para>Since EFL 1.23.</para>
107 /// </summary> 107 /// </summary>
108 public static string CYAN = "\033[36m"; 108 public const string CYAN = "\033[36m";
109 /// <summary>Reset 109 /// <summary>Reset
110 /// <para>Since EFL 1.23.</para> 110 /// <para>Since EFL 1.23.</para>
111 /// </summary> 111 /// </summary>
112 public static string RESET = "\033[0m"; 112 public const string RESET = "\033[0m";
113 /// <summary>Bold 113 /// <summary>Bold
114 /// <para>Since EFL 1.23.</para> 114 /// <para>Since EFL 1.23.</para>
115 /// </summary> 115 /// </summary>
116 public static string HIGH = "\033[1m"; 116 public const string HIGH = "\033[1m";
117 } 117 }
118 118
119 private static int domain = -1; 119 private static int domain = -1;
diff --git a/src/bindings/mono/eina_mono/eina_value.cs b/src/bindings/mono/eina_mono/eina_value.cs
index f2e4c17..d70d9e6 100644
--- a/src/bindings/mono/eina_mono/eina_value.cs
+++ b/src/bindings/mono/eina_mono/eina_value.cs
@@ -3591,7 +3591,7 @@ public class ValueTypeMarshaler : ICustomMarshaler
3591 var r = ValueTypeBridge.GetManaged(pNativeData); 3591 var r = ValueTypeBridge.GetManaged(pNativeData);
3592 return new ValueTypeBox(r); 3592 return new ValueTypeBox(r);
3593 } 3593 }
3594 public static Eina.ValueType vtype; 3594 public static readonly Eina.ValueType vtype;
3595 3595
3596 /// <summary>Retrieves the C pointer from a given boxed enum value type.</summary> 3596 /// <summary>Retrieves the C pointer from a given boxed enum value type.</summary>
3597 public IntPtr MarshalManagedToNative(object managedObj) 3597 public IntPtr MarshalManagedToNative(object managedObj)
diff --git a/src/bindings/mono/eldbus_mono/eldbus_common.cs b/src/bindings/mono/eldbus_mono/eldbus_common.cs
index 39c2d03..80b1e25 100644
--- a/src/bindings/mono/eldbus_mono/eldbus_common.cs
+++ b/src/bindings/mono/eldbus_mono/eldbus_common.cs
@@ -10,7 +10,7 @@ namespace eldbus
10 10
11public static class Timeout 11public static class Timeout
12{ 12{
13 public static int Infinite = 0x7fffffff; 13 public const int Infinite = 0x7fffffff;
14} 14}
15 15
16[StructLayout(LayoutKind.Sequential)] 16[StructLayout(LayoutKind.Sequential)]
diff --git a/src/bindings/mono/eo_mono/iwrapper.cs b/src/bindings/mono/eo_mono/iwrapper.cs
index ae39b61..cc9e47e 100644
--- a/src/bindings/mono/eo_mono/iwrapper.cs
+++ b/src/bindings/mono/eo_mono/iwrapper.cs
@@ -36,12 +36,12 @@ public class Globals
36 36
37 [return: MarshalAs(UnmanagedType.U1)] 37 [return: MarshalAs(UnmanagedType.U1)]
38 public delegate bool efl_object_init_delegate(); 38 public delegate bool efl_object_init_delegate();
39 public static FunctionWrapper<efl_object_init_delegate> efl_object_init_ptr = 39 public static readonly FunctionWrapper<efl_object_init_delegate> efl_object_init_ptr =
40 new FunctionWrapper<efl_object_init_delegate>(efl.Libs.EoModule, "efl_object_init"); 40 new FunctionWrapper<efl_object_init_delegate>(efl.Libs.EoModule, "efl_object_init");
41 public static bool efl_object_init() => efl_object_init_ptr.Value.Delegate(); 41 public static bool efl_object_init() => efl_object_init_ptr.Value.Delegate();
42 42
43 public delegate void efl_object_shutdown_delegate(); 43 public delegate void efl_object_shutdown_delegate();
44 public static FunctionWrapper<efl_object_shutdown_delegate> efl_object_shutdown_ptr = new FunctionWrapper<efl_object_shutdown_delegate>(efl.Libs.EoModule, "efl_object_shutdown"); 44 public static readonly FunctionWrapper<efl_object_shutdown_delegate> efl_object_shutdown_ptr = new FunctionWrapper<efl_object_shutdown_delegate>(efl.Libs.EoModule, "efl_object_shutdown");
45 public static void efl_object_shutdown() => efl_object_shutdown_ptr.Value.Delegate(); 45 public static void efl_object_shutdown() => efl_object_shutdown_ptr.Value.Delegate();
46 // [DllImport(efl.Libs.Eo)] public static extern void efl_object_shutdown(); 46 // [DllImport(efl.Libs.Eo)] public static extern void efl_object_shutdown();
47 47
@@ -996,10 +996,10 @@ public static class ClassRegister
996 typeFromKlass[klassPtr] = objectType; 996 typeFromKlass[klassPtr] = objectType;
997 } 997 }
998 998
999 public static System.Collections.Concurrent.ConcurrentDictionary<System.Type, System.IntPtr> klassFromType 999 public static readonly System.Collections.Concurrent.ConcurrentDictionary<System.Type, System.IntPtr> klassFromType
1000 = new System.Collections.Concurrent.ConcurrentDictionary<System.Type, System.IntPtr>(); 1000 = new System.Collections.Concurrent.ConcurrentDictionary<System.Type, System.IntPtr>();
1001 1001
1002 public static System.Collections.Concurrent.ConcurrentDictionary<System.IntPtr, System.Type> typeFromKlass 1002 public static readonly System.Collections.Concurrent.ConcurrentDictionary<System.IntPtr, System.Type> typeFromKlass
1003 = new System.Collections.Concurrent.ConcurrentDictionary<System.IntPtr, System.Type>(); 1003 = new System.Collections.Concurrent.ConcurrentDictionary<System.IntPtr, System.Type>();
1004 1004
1005 private static readonly object klassAllocLock = new object(); 1005 private static readonly object klassAllocLock = new object();