2007-09-02 22:52:00 +00:00
|
|
|
|
#region --- License ---
|
|
|
|
|
/* Copyright (c) 2006, 2007 Stefanos Apostolopoulos
|
|
|
|
|
* See license.txt for license info
|
|
|
|
|
*/
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
using System;
|
2007-08-20 10:46:37 +00:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Runtime.InteropServices;
|
|
|
|
|
|
|
|
|
|
namespace OpenTK.Platform.OSX
|
|
|
|
|
{
|
|
|
|
|
public static partial class Functions
|
|
|
|
|
{
|
|
|
|
|
internal const string Library = "libdl.dylib";
|
|
|
|
|
|
|
|
|
|
#region OSX GetProcAddress
|
|
|
|
|
|
|
|
|
|
[DllImport(Library, EntryPoint = "NSIsSymbolNameDefined")]
|
|
|
|
|
internal static extern bool NSIsSymbolNameDefined(string s);
|
|
|
|
|
[DllImport(Library, EntryPoint = "NSLookupAndBindSymbol")]
|
|
|
|
|
internal static extern IntPtr NSLookupAndBindSymbol(string s);
|
|
|
|
|
[DllImport(Library, EntryPoint = "NSAddressOfSymbol")]
|
|
|
|
|
internal static extern IntPtr NSAddressOfSymbol(IntPtr symbol);
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
}
|
|
|
|
|
}
|