static void dlclose(IntPtr handle)
 {
     if (Platform.RunningOS == OS.Linux)
     {
         LinuxInterop.dlclose(handle);
     }
     else
     {
         MacInterop.dlclose(handle);
     }
 }
Exemplo n.º 2
0
        public static bool FreeLibrary(IntPtr handler)
        {
            switch (UMPSettings.RuntimePlatform)
            {
            case UMPSettings.Platforms.Win:
                return(WindowsInterop.FreeLibrary(handler));

            case UMPSettings.Platforms.Mac:
                return(MacInterop.dlclose(handler) == 0);

            case UMPSettings.Platforms.Linux:
                return(LinuxInterop.dlclose(handler) == 0);
            }

            return(false);
        }