2 using System.Runtime.InteropServices;
10 public partial class FunctionInterop
12 [DllImport(efl.Libs.Libdl)]
13 private static extern IntPtr dlsym(IntPtr handle, string symbol);
15 ///<summary>Loads a function pointer from the given module.</summary>
16 ///<param name="nativeLibraryHandle">The module containing the function.</param>
17 ///<param name="functionName">The name of the function to search for.</param>
18 ///<returns>A function pointer that can be used with delegates.</returns>
19 public static IntPtr LoadFunctionPointer(IntPtr nativeLibraryHandle, string functionName)
21 Eina.Log.Debug("searching {nativeLibraryHandle} for {functionName}");
22 var s = FunctionInterop.dlsym(nativeLibraryHandle, functionName);
23 Eina.Log.Debug("searching {nativeLibraryHandle} for {functionName}, result {s}");