diff --git a/src/bin/eolian_mono/eolian/mono/function_registration.hh b/src/bin/eolian_mono/eolian/mono/function_registration.hh index e258ce7cff..cdcb9032c0 100644 --- a/src/bin/eolian_mono/eolian/mono/function_registration.hh +++ b/src/bin/eolian_mono/eolian/mono/function_registration.hh @@ -51,7 +51,7 @@ struct function_registration_generator if(!as_generator( indent << "if (methods.FirstOrDefault(m => m.Name == \"" << string << "\") != null)\n" << indent << "{\n" - << indent << scope_tab << "descs.Add(new Efl_Op_Description() {" + << indent << scope_tab << "descs.Add(new EflOpDescription() {" #ifdef _WIN32 << "api_func = Marshal.StringToHGlobalAnsi(\"" << string << "\")" #else diff --git a/src/bin/eolian_mono/eolian/mono/klass.hh b/src/bin/eolian_mono/eolian/mono/klass.hh index f33026444f..65645d33c2 100644 --- a/src/bin/eolian_mono/eolian/mono/klass.hh +++ b/src/bin/eolian_mono/eolian/mono/klass.hh @@ -424,9 +424,9 @@ struct klass if(!as_generator( indent << scope_tab << "/// Gets the list of Eo operations to override.\n" << indent << scope_tab << "/// The list of Eo operations to be overload.\n" - << indent << scope_tab << "public override System.Collections.Generic.List GetEoOps(System.Type type, bool includeInherited)\n" + << indent << scope_tab << "public override System.Collections.Generic.List GetEoOps(System.Type type, bool includeInherited)\n" << indent << scope_tab << "{\n" - << indent << scope_tab << scope_tab << "var descs = new System.Collections.Generic.List();\n" + << indent << scope_tab << scope_tab << "var descs = new System.Collections.Generic.List();\n" ) .generate(sink, attributes::unused, inative_cxt)) return false; diff --git a/src/bindings/mono/eo_mono/EoWrapper.cs b/src/bindings/mono/eo_mono/EoWrapper.cs index eae4eea3b5..2f217783e5 100644 --- a/src/bindings/mono/eo_mono/EoWrapper.cs +++ b/src/bindings/mono/eo_mono/EoWrapper.cs @@ -363,11 +363,11 @@ public abstract class EoWrapper : IWrapper, IDisposable /// Gets the list of Eo operations to override. /// The list of Eo operations to be overload. - public override System.Collections.Generic.List GetEoOps(Type type, bool includeInherited) + public override System.Collections.Generic.List GetEoOps(Type type, bool includeInherited) { - var descs = new System.Collections.Generic.List(); + var descs = new System.Collections.Generic.List(); - descs.Add(new Efl_Op_Description() + descs.Add(new EflOpDescription() { api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(EoModule.Module, "efl_constructor"), func = Marshal.GetFunctionPointerForDelegate(csharpEflConstructorStaticDelegate) diff --git a/src/bindings/mono/eo_mono/iwrapper.cs b/src/bindings/mono/eo_mono/iwrapper.cs index cc9e47ed10..d1aa7be3f5 100644 --- a/src/bindings/mono/eo_mono/iwrapper.cs +++ b/src/bindings/mono/eo_mono/iwrapper.cs @@ -409,7 +409,7 @@ public class Globals ptr = IntPtr.Add(ptr, Marshal.SizeOf(descs[0])); } - Efl_Object_Ops ops; + EflObjectOps ops; ops.descs = descs_ptr; ops.count = (UIntPtr)count; IntPtr ops_ptr = Marshal.AllocHGlobal(Marshal.SizeOf(ops)); @@ -777,7 +777,7 @@ public static class Config public abstract class NativeClass : System.Attribute { public abstract IntPtr GetEflClass(); - public abstract System.Collections.Generic.List GetEoOps(System.Type type, bool includeInherited); + public abstract System.Collections.Generic.List GetEoOps(System.Type type, bool includeInherited); } /// Attribute for private native classes. @@ -790,7 +790,7 @@ public class PrivateNativeClass : NativeClass return IntPtr.Zero; } - public override System.Collections.Generic.List GetEoOps(System.Type type, bool includeInherited) + public override System.Collections.Generic.List GetEoOps(System.Type type, bool includeInherited) { return null; } diff --git a/src/bindings/mono/eo_mono/workaround.cs b/src/bindings/mono/eo_mono/workaround.cs index 8422062844..30759d10e0 100644 --- a/src/bindings/mono/eo_mono/workaround.cs +++ b/src/bindings/mono/eo_mono/workaround.cs @@ -26,7 +26,7 @@ public struct ClassDescription ///Description of an Eo API operation. [StructLayout(LayoutKind.Sequential, CharSet=CharSet.Ansi)] -public struct Efl_Op_Description +public struct EflOpDescription { ///The EAPI function offering this op. (String with the name of the function on Windows) public IntPtr api_func; @@ -36,7 +36,7 @@ public struct Efl_Op_Description ///List of operations on a given Object. [StructLayout(LayoutKind.Sequential, CharSet=CharSet.Ansi)] -public struct Efl_Object_Ops +public struct EflObjectOps { ///The op descriptions array of size count. public IntPtr descs;