summaryrefslogtreecommitdiff
path: root/src/bindings/mono/eo_mono/FunctionWrapper_Windows.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/bindings/mono/eo_mono/FunctionWrapper_Windows.cs')
-rw-r--r--src/bindings/mono/eo_mono/FunctionWrapper_Windows.cs26
1 files changed, 18 insertions, 8 deletions
diff --git a/src/bindings/mono/eo_mono/FunctionWrapper_Windows.cs b/src/bindings/mono/eo_mono/FunctionWrapper_Windows.cs
index 7eda66a..1ff7627 100644
--- a/src/bindings/mono/eo_mono/FunctionWrapper_Windows.cs
+++ b/src/bindings/mono/eo_mono/FunctionWrapper_Windows.cs
@@ -1,21 +1,31 @@
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 22static partial class FunctionInterop
8{
9
10public static partial class FunctionInterop
11{ 23{
12 [DllImport(efl.Libs.Libdl)] 24 [DllImport(efl.Libs.Libdl)]
13 public static extern IntPtr GetProcAddress(IntPtr handle, string symbol); 25 internal static extern IntPtr GetProcAddress(IntPtr handle, string symbol);
14 26
15 private static IntPtr LoadFunctionPointer(IntPtr nativeLibraryHandle, string functionName) 27 private static IntPtr LoadFunctionPointer(IntPtr nativeLibraryHandle, string functionName)
16 => FunctionInterop.GetProcAddress(nativeLibraryHandle, functionName); 28 => FunctionInterop.GetProcAddress(nativeLibraryHandle, functionName);
17} 29}
18 30
19} 31}
20
21}