lauromoura pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=d59197d2ee4a9789c9d053e7c8a927ff21935640
commit d59197d2ee4a9789c9d053e7c8a927ff21935640 Author: Lauro Moura <[email protected]> Date: Mon Oct 28 19:06:38 2019 -0300 mono: encapsulate internal NativeModule Summary: Depends on D10342 Depends on D10338 Test Plan: meson setup -Dbindings=mono,cxx -Dmono-beta=true Reviewers: lauromoura, segfaultxavi, Jaehyun_Cho Reviewed By: lauromoura Subscribers: cedric, #reviewers, #committers, woohyun Tags: #efl Differential Revision: https://phab.enlightenment.org/D10343 --- src/bindings/mono/eo_mono/NativeModule.cs | 6 +++--- src/bindings/mono/eo_mono/NativeModule_Unix.cs | 6 +++--- src/bindings/mono/eo_mono/NativeModule_Windows.cs | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/bindings/mono/eo_mono/NativeModule.cs b/src/bindings/mono/eo_mono/NativeModule.cs index ad9cc60214..932b453def 100644 --- a/src/bindings/mono/eo_mono/NativeModule.cs +++ b/src/bindings/mono/eo_mono/NativeModule.cs @@ -19,14 +19,14 @@ namespace Efl.Eo { ///<summary>Wraps a native module that was opened with dlopen/LoadLibrary.</summary> -public partial class NativeModule : IDisposable +internal partial class NativeModule : IDisposable { private Lazy<IntPtr> module; private bool disposed = false; ///<summary>Lazily tries to load the module with the given name.</summary> ///<param name="libName">The name of the module to load.</param> - public NativeModule(string libName) + internal NativeModule(string libName) { module = new Lazy<IntPtr> (() => @@ -36,7 +36,7 @@ public partial class NativeModule : IDisposable } ///<summary>The module that was loaded.</summary> - public IntPtr Module + internal IntPtr Module { get { diff --git a/src/bindings/mono/eo_mono/NativeModule_Unix.cs b/src/bindings/mono/eo_mono/NativeModule_Unix.cs index 1e5a517368..67409e02d1 100644 --- a/src/bindings/mono/eo_mono/NativeModule_Unix.cs +++ b/src/bindings/mono/eo_mono/NativeModule_Unix.cs @@ -19,7 +19,7 @@ using System.Runtime.InteropServices; namespace Efl.Eo { -public partial class NativeModule +internal partial class NativeModule { private const int RTLD_NOW = 0x002; // Currently we are using GLOBAL due to issues @@ -33,7 +33,7 @@ public partial class NativeModule ///<summary>Closes the library handle.</summary> ///<param name="handle">The handle to the library.</param> - public static void UnloadLibrary(IntPtr handle) + internal static void UnloadLibrary(IntPtr handle) { dlclose(handle); } @@ -60,7 +60,7 @@ public partial class NativeModule ///</summary> ///<param name="filename">The name to search for.</param> ///<returns>The loaded library handle or <see cref="System.IntPtr.Zero"/> on failure.</returns> - public static IntPtr LoadLibrary(string filename) + internal static IntPtr LoadLibrary(string filename) { Eina.Log.Debug($"Loading library {filename}"); var r = dlopen(filename, RTLD_NOW | RTLD_GLOBAL); diff --git a/src/bindings/mono/eo_mono/NativeModule_Windows.cs b/src/bindings/mono/eo_mono/NativeModule_Windows.cs index bbd3c7f49e..513eb723e1 100644 --- a/src/bindings/mono/eo_mono/NativeModule_Windows.cs +++ b/src/bindings/mono/eo_mono/NativeModule_Windows.cs @@ -19,10 +19,10 @@ using System.Runtime.InteropServices; namespace Efl.Eo { -public class partial NativeModule +internal class partial NativeModule { [DllImport(efl.Libs.Kernel32, CharSet = CharSet.Unicode, SetLastError = true)] - public static extern IntPtr LoadLibrary(string libFilename); + internal static extern IntPtr LoadLibrary(string libFilename); } } --
