summaryrefslogtreecommitdiff
path: root/src/bindings/mono/eo_mono/NativeModule_Unix.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/bindings/mono/eo_mono/NativeModule_Unix.cs')
-rw-r--r--src/bindings/mono/eo_mono/NativeModule_Unix.cs28
1 files changed, 19 insertions, 9 deletions
diff --git a/src/bindings/mono/eo_mono/NativeModule_Unix.cs b/src/bindings/mono/eo_mono/NativeModule_Unix.cs
index e63b9ba..67409e0 100644
--- a/src/bindings/mono/eo_mono/NativeModule_Unix.cs
+++ b/src/bindings/mono/eo_mono/NativeModule_Unix.cs
@@ -1,13 +1,25 @@
1/*
2 * Copyright 2019 by its authors. See AUTHORS.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
1using System; 16using System;
2using System.Runtime.InteropServices; 17using System.Runtime.InteropServices;
3 18
4namespace Efl 19namespace Efl.Eo
5{ 20{
6 21
7namespace Eo 22internal partial class NativeModule
8{
9
10public partial class NativeModule
11{ 23{
12 private const int RTLD_NOW = 0x002; 24 private const int RTLD_NOW = 0x002;
13 // Currently we are using GLOBAL due to issues 25 // Currently we are using GLOBAL due to issues
@@ -21,7 +33,7 @@ public partial class NativeModule
21 33
22 ///<summary>Closes the library handle.</summary> 34 ///<summary>Closes the library handle.</summary>
23 ///<param name="handle">The handle to the library.</param> 35 ///<param name="handle">The handle to the library.</param>
24 public static void UnloadLibrary(IntPtr handle) 36 internal static void UnloadLibrary(IntPtr handle)
25 { 37 {
26 dlclose(handle); 38 dlclose(handle);
27 } 39 }
@@ -48,7 +60,7 @@ public partial class NativeModule
48 ///</summary> 60 ///</summary>
49 ///<param name="filename">The name to search for.</param> 61 ///<param name="filename">The name to search for.</param>
50 ///<returns>The loaded library handle or <see cref="System.IntPtr.Zero"/> on failure.</returns> 62 ///<returns>The loaded library handle or <see cref="System.IntPtr.Zero"/> on failure.</returns>
51 public static IntPtr LoadLibrary(string filename) 63 internal static IntPtr LoadLibrary(string filename)
52 { 64 {
53 Eina.Log.Debug($"Loading library {filename}"); 65 Eina.Log.Debug($"Loading library {filename}");
54 var r = dlopen(filename, RTLD_NOW | RTLD_GLOBAL); 66 var r = dlopen(filename, RTLD_NOW | RTLD_GLOBAL);
@@ -70,5 +82,3 @@ public partial class NativeModule
70} 82}
71 83
72} 84}
73
74}