summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/bindings/mono/eina_mono/eina_error.cs18
1 files changed, 17 insertions, 1 deletions
diff --git a/src/bindings/mono/eina_mono/eina_error.cs b/src/bindings/mono/eina_mono/eina_error.cs
index 1300e796ab..004792fdb7 100644
--- a/src/bindings/mono/eina_mono/eina_error.cs
+++ b/src/bindings/mono/eina_mono/eina_error.cs
@@ -59,11 +59,27 @@ public struct Error : IComparable<Error>, IEquatable<Error>
59 /// <para>Since EFL 1.23.</para> 59 /// <para>Since EFL 1.23.</para>
60 /// </summary> 60 /// </summary>
61 public static readonly Error ENOENT = new Error(2); 61 public static readonly Error ENOENT = new Error(2);
62
63 /// <summary>
64 /// Return architecture independent ECANCELED error code.
65 /// Returns 125 for Linux, 89 for OSX and 105 for Windows.
66 /// <para>Since EFL 1.25.</para>
67 /// </summary>
68 private static int IndependentECANCELED()
69 {
70 if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
71 return new Error(125);
72 else if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
73 return new Error(89);
74 else // Windows
75 return new Error(105);
76 }
77
62 /// <summary> 78 /// <summary>
63 /// Cancelled error identifier. 79 /// Cancelled error identifier.
64 /// <para>Since EFL 1.23.</para> 80 /// <para>Since EFL 1.23.</para>
65 /// </summary> 81 /// </summary>
66 public static readonly Error ECANCELED = new Error(125); 82 public static readonly Error ECANCELED = IndependentECANCELED();
67 83
68 /// <summary> 84 /// <summary>
69 /// Constructor. 85 /// Constructor.