[Mac] Added CFRetain binding
authorthefiddler <stapostol@gmail.com>
Tue, 22 Jul 2014 14:19:43 +0000 (16:19 +0200)
committerthefiddler <stapostol@gmail.com>
Tue, 22 Jul 2014 14:19:43 +0000 (16:19 +0200)
Source/OpenTK/Platform/MacOS/Quartz/CoreFoundation.cs

index 6b5c881..262fd7f 100644 (file)
@@ -113,6 +113,9 @@ namespace OpenTK.Platform.MacOS.Carbon
         internal static extern IntPtr CFDictionaryGetValue(IntPtr theDictionary, IntPtr theKey);
 
         [DllImport(appServices)]
+        internal static extern IntPtr CFRetain(CFTypeRef cf);
+
+        [DllImport(appServices)]
         internal static extern void CFRelease(CFTypeRef cf);
 
         // this mirrors the definition in CFString.h.