diff --git a/src/bin/eolian_mono/eolian/mono/klass.hh b/src/bin/eolian_mono/eolian/mono/klass.hh index 8fca7a4ad8..1697ace234 100644 --- a/src/bin/eolian_mono/eolian/mono/klass.hh +++ b/src/bin/eolian_mono/eolian/mono/klass.hh @@ -422,7 +422,7 @@ struct klass ( indent << lit("/// Wrapper for native methods and virtual method delegates.\n") << indent << "/// For internal use by generated code only.\n" - << indent << "public new class " << native_inherit_name << " : " << (root ? "Efl.Eo.EoWrapper.NativeMethods" : base_name) << "\n" + << indent << "internal new class " << native_inherit_name << " : " << (root ? "Efl.Eo.EoWrapper.NativeMethods" : base_name) << "\n" << indent << "{\n" ).generate(sink, attributes::unused, inative_cxt)) return false; @@ -439,7 +439,7 @@ 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 << "internal 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" ) @@ -489,7 +489,7 @@ struct klass if(!as_generator( indent << scope_tab << "/// Returns the Eo class for the native methods of this class.\n" << indent << scope_tab << "/// The native class pointer.\n" - << indent << scope_tab << "public override IntPtr GetEflClass()\n" + << indent << scope_tab << "internal override IntPtr GetEflClass()\n" << indent << scope_tab << "{\n" << indent << scope_tab << scope_tab << "return " << name_helpers::klass_get_full_name(cls) << "();\n" << indent << scope_tab << "}\n\n" diff --git a/src/bindings/mono/eo_mono/EoWrapper.cs b/src/bindings/mono/eo_mono/EoWrapper.cs index c92589dd8a..4ba0f5ad28 100644 --- a/src/bindings/mono/eo_mono/EoWrapper.cs +++ b/src/bindings/mono/eo_mono/EoWrapper.cs @@ -404,7 +404,7 @@ public abstract class EoWrapper : IWrapper, IDisposable /// For internal use by generated code only. /// Since EFL 1.23. /// - public abstract class NativeMethods : Efl.Eo.NativeClass + internal abstract class NativeMethods : Efl.Eo.NativeClass { private static EflConstructorDelegate csharpEflConstructorStaticDelegate = new EflConstructorDelegate(Constructor); private static Efl.Eo.NativeModule EoModule = new Efl.Eo.NativeModule("eo"); @@ -415,7 +415,7 @@ public abstract class EoWrapper : IWrapper, IDisposable /// Since EFL 1.23. /// /// The list of Eo operations to be overload. - public override System.Collections.Generic.List GetEoOps(Type type, bool includeInherited) + internal override System.Collections.Generic.List GetEoOps(Type type, bool includeInherited) { var descs = new System.Collections.Generic.List(); diff --git a/src/bindings/mono/eo_mono/iwrapper.cs b/src/bindings/mono/eo_mono/iwrapper.cs index 3c4b8e0003..32715fa854 100644 --- a/src/bindings/mono/eo_mono/iwrapper.cs +++ b/src/bindings/mono/eo_mono/iwrapper.cs @@ -795,23 +795,23 @@ public static class Config AllowMultiple = false, Inherited = false) ] -public abstract class NativeClass : System.Attribute +abstract class NativeClass : System.Attribute { - public abstract IntPtr GetEflClass(); - public abstract System.Collections.Generic.List GetEoOps(System.Type type, bool includeInherited); + internal abstract IntPtr GetEflClass(); + internal abstract System.Collections.Generic.List GetEoOps(System.Type type, bool includeInherited); } /// Attribute for private native classes. /// /// For internal usage by generated code only. -public class PrivateNativeClass : NativeClass +class PrivateNativeClass : NativeClass { - public override IntPtr GetEflClass() + internal override IntPtr GetEflClass() { return IntPtr.Zero; } - public override System.Collections.Generic.List GetEoOps(System.Type type, bool includeInherited) + internal override System.Collections.Generic.List GetEoOps(System.Type type, bool includeInherited) { return null; }