forked from enlightenment/efl
mono: encapsulate internal nativemethods
Summary: Depends on D10337 Test Plan: meson setup -Dbindings=mono,cxx -Dmono-beta=true Reviewers: lauromoura, segfaultxavi, Jaehyun_Cho Reviewed By: lauromoura Subscribers: cedric, #reviewers, woohyun, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D10340
This commit is contained in:
parent
f8b334a90e
commit
37f787196f
|
@ -422,7 +422,7 @@ struct klass
|
|||
(
|
||||
indent << lit("/// <summary>Wrapper for native methods and virtual method delegates.\n")
|
||||
<< indent << "/// For internal use by generated code only.</summary>\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 << "/// <summary>Gets the list of Eo operations to override.</summary>\n"
|
||||
<< indent << scope_tab << "/// <returns>The list of Eo operations to be overload.</returns>\n"
|
||||
<< indent << scope_tab << "public override System.Collections.Generic.List<EflOpDescription> GetEoOps(System.Type type, bool includeInherited)\n"
|
||||
<< indent << scope_tab << "internal override System.Collections.Generic.List<EflOpDescription> GetEoOps(System.Type type, bool includeInherited)\n"
|
||||
<< indent << scope_tab << "{\n"
|
||||
<< indent << scope_tab << scope_tab << "var descs = new System.Collections.Generic.List<EflOpDescription>();\n"
|
||||
)
|
||||
|
@ -489,7 +489,7 @@ struct klass
|
|||
if(!as_generator(
|
||||
indent << scope_tab << "/// <summary>Returns the Eo class for the native methods of this class.</summary>\n"
|
||||
<< indent << scope_tab << "/// <returns>The native class pointer.</returns>\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"
|
||||
|
|
|
@ -404,7 +404,7 @@ public abstract class EoWrapper : IWrapper, IDisposable
|
|||
/// <para>For internal use by generated code only.</para>
|
||||
/// <para>Since EFL 1.23.</para>
|
||||
/// </summary>
|
||||
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
|
|||
/// <para>Since EFL 1.23.</para>
|
||||
/// </summary>
|
||||
/// <returns>The list of Eo operations to be overload.</returns>
|
||||
public override System.Collections.Generic.List<EflOpDescription> GetEoOps(Type type, bool includeInherited)
|
||||
internal override System.Collections.Generic.List<EflOpDescription> GetEoOps(Type type, bool includeInherited)
|
||||
{
|
||||
var descs = new System.Collections.Generic.List<EflOpDescription>();
|
||||
|
||||
|
|
|
@ -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<EflOpDescription> GetEoOps(System.Type type, bool includeInherited);
|
||||
internal abstract IntPtr GetEflClass();
|
||||
internal abstract System.Collections.Generic.List<EflOpDescription> GetEoOps(System.Type type, bool includeInherited);
|
||||
}
|
||||
|
||||
/// <summary>Attribute for private native classes.
|
||||
///
|
||||
/// <para>For internal usage by generated code only.</para></summary>
|
||||
public class PrivateNativeClass : NativeClass
|
||||
class PrivateNativeClass : NativeClass
|
||||
{
|
||||
public override IntPtr GetEflClass()
|
||||
internal override IntPtr GetEflClass()
|
||||
{
|
||||
return IntPtr.Zero;
|
||||
}
|
||||
|
||||
public override System.Collections.Generic.List<EflOpDescription> GetEoOps(System.Type type, bool includeInherited)
|
||||
internal override System.Collections.Generic.List<EflOpDescription> GetEoOps(System.Type type, bool includeInherited)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue