def testSTructSize(self): tp0 = objc.createStructType("FooStruct", b'{FooStruct=}', None) tp1 = objc.createStructType("FooStruct", b'{FooStruct="first"i}', None) tp2 = objc.createStructType("FooStruct", b'{FooStruct="first"i"second"i}', None) self.assertEqual(sys.getsizeof(tp0()) + 1 * PTR_SIZE, sys.getsizeof(tp1())) self.assertEqual(sys.getsizeof(tp0()) + 2 * PTR_SIZE, sys.getsizeof(tp2()))
def testStructCallback(self): """ Regression test for an issue reported on the PyObjC mailinglist. """ tp = objc.createStructType("FooStruct", b'{FooStruct="first"i"second"i}', None) StructArrayDelegate = objc.informal_protocol( "StructArrayDelegate", [ objc.selector(None, b"arrayOf4Structs:", signature=b"@@:[4{FooStruct=ii}]"), ]) class OC_PyStruct (NSObject): def arrayOf4Structs_(self, value): return value self.assertEqual(OC_PyStruct.arrayOf4Structs_.signature, b"@@:[4{FooStruct=" + objc._C_INT + objc._C_INT + b"}]") o = OC_PyStruct.alloc().init() v = OC_StructTest.callArrayOf4Structs_(o) self.assertEqual(len(v), 4) for i in range(3): self.assertIsInstance(v[i], tp) self.assertEqual(v[0], tp(1, 2)) self.assertEqual(v[1], tp(3, 4)) self.assertEqual(v[2], tp(5, 6)) self.assertEqual(v[3], tp(7, 8))
def test_struct(self): self.assertEqual(mod.describe_type(objc._C_STRUCT_B + b"=" + objc._C_ID + objc._C_STRUCT_E), "struct <?>") self.assertEqual(mod.describe_type(objc._C_STRUCT_B + objc._C_STRUCT_E), "struct <?>") self.assertEqual(mod.describe_type(objc._C_STRUCT_B + b"name=" + objc._C_ID + objc._C_INT + objc._C_STRUCT_E), "struct name") self.assertEqual(mod.describe_type(objc._C_STRUCT_B + b"name=\"field\"" + objc._C_ID + b'"field2"' + objc._C_INT + objc._C_STRUCT_E), "struct name") strType = objc.createStructType("NamedTestStruct", b'{NamedTestStruct1="a"i"b"i}', None) self.assertEqual(mod.describe_type(b'{NamedTestStruct1=ii}'), "NamedTestStruct")
def testEmbeddedFields(self): tp = objc.createStructType("FooStruct", '{FooStruct="first"i"second"i}', None) v = OC_StructTest.createWithFirst_andSecond_(1, 2) self.assert_(isinstance(v, tp)) x = OC_StructTest.sumFields_(v) self.assertEquals(x, v.first + v.second) self.assertEquals(v.first, 1) self.assertEquals(v.second, 2)
def testCreateExplicit(self): tp = objc.createStructType("FooStruct", "{_FooStruct=ffff}", ["a","b","c","d"]) self.assert_(isinstance(tp, type)) self.assert_(tp.__typestr__, "{_FooStruct=ffff}") o = tp() self.assert_(hasattr(o, 'a')) self.assert_(hasattr(o, 'b')) self.assert_(hasattr(o, 'c')) self.assert_(hasattr(o, 'd'))
def testCreateExplicit(self): tp = objc.createStructType("FooStruct", b"{_FooStruct=ffff}", ["a", "b", "c", "d"]) self.assertIsInstance(tp, type) self.assertEquals(tp.__typestr__, b"{_FooStruct=ffff}") o = tp() self.assertHasAttr(o, "a") self.assertHasAttr(o, "b") self.assertHasAttr(o, "c") self.assertHasAttr(o, "d")
def testNamedTupleAPI(self): Point = objc.createStructType("OCPoint", b"{_OCPoint=dd}", ["x", "y"]) Line = objc.createStructType("OCLine", b"{_OCLine={_OCPoint=dd}{_OCPoint=dd}}d", ["start", "stop", "width"]) self.assertEqual(Point._fields, ("x", "y")) self.assertEqual(Line._fields, ("start", "stop", "width")) p = Point(3, 4) self.assertEqual(p.x, 3.0) self.assertEqual(p.y, 4.0) self.assertEqual(p._asdict(), {"x": 3.0, "y": 4.0}) p2 = p._replace(y=5) self.assertEqual(p.x, 3.0) self.assertEqual(p.y, 4.0) self.assertEqual(p2.x, 3.0) self.assertEqual(p2.y, 5) l = Line(Point(1,2), Point(8,9), 7) self.assertEqual(l.start.x, 1.0) self.assertEqual(l.start.y, 2.0) self.assertEqual(l.stop.x, 8.0) self.assertEqual(l.stop.y, 9.0) self.assertEqual(l.width, 7.0) self.assertEqual(l._asdict(), {"start": Point(1,2), "stop":Point(8,9), "width": 7.0}) l2 = l._replace(stop=Point(3,4), width=0.5) self.assertEqual(l.start.x, 1.0) self.assertEqual(l.start.y, 2.0) self.assertEqual(l.stop.x, 8.0) self.assertEqual(l.stop.y, 9.0) self.assertEqual(l.width, 7.0) self.assertEqual(l2.start.x, 1.0) self.assertEqual(l2.start.y, 2.0) self.assertEqual(l2.stop.x, 3.0) self.assertEqual(l2.stop.y, 4.0) self.assertEqual(l2.width, 0.5)
def parseBridgeSupport(xmldata, globals, frameworkName, dylib_path=None, inlineTab=None): if dylib_path: lib = ctypes.cdll.LoadLibrary(dylib_path) _libraries.append(lib) objc._updatingMetadata(True) try: prs = _BridgeSupportParser(xmldata, frameworkName) globals.update(prs.values) for entry in prs.cftypes: tp = objc.registerCFSignature(*entry) globals[entry[0]] = tp for name, typestr in prs.opaque: globals[name] = objc.createOpaquePointerType(name, typestr) for name, typestr, alias in prs.structs: if alias is not None: globals[name] = alias objc.createStructAlias(name, typestr, alias) else: globals[name] = value = objc.createStructType(name, typestr, None) for name, typestr, magic in prs.constants: try: value = objc._loadConstant(name, _as_string(typestr), magic) except AttributeError: continue globals[name] = value for class_name, sel_name, is_class in prs.meta: objc.registerMetaDataForSelector(class_name, sel_name, prs.meta[(class_name, sel_name, is_class)]) if prs.functions: objc.loadBundleFunctions(None, globals, prs.functions) if inlineTab is not None: objc.loadFunctionList(inlineTab, globals, prs.functions) for name, orig in prs.func_aliases: try: globals[name] = globals[orig] except KeyError: pass finally: objc._updatingMetadata(False)
def testPointerFields(self): # Note: the created type won't be all that useful unless the pointer # happens to be something that PyObjC knows how to deal with, this is # more a check to see if createStructType knows how to cope with # non-trivial types. tp = objc.createStructType("XBarStruct", b'{_XBarStruct="e"^f"f"^f"g"^@"h"f}', None) self.assertIsInstance(tp, type) self.assertEqual(tp.__typestr__, b"{_XBarStruct=^f^f^@f}") o = tp() self.assertHasAttr(o, 'e') self.assertHasAttr(o, 'f') self.assertHasAttr(o, 'g') self.assertHasAttr(o, 'h')
def testCreateImplicit(self): tp = objc.createStructType("BarStruct", b'{_BarStruct="e"f"f"f"g"f"h"f}', None) self.assertIsInstance(tp, type) self.assertEquals(tp.__typestr__, b"{_BarStruct=ffff}") o = tp() self.assertHasAttr(o, "e") self.assertHasAttr(o, "f") self.assertHasAttr(o, "g") self.assertHasAttr(o, "h") self.assertRaises(ValueError, objc.createStructType, "Foo2", b'{_Foo=f"a"}', None) self.assertRaises(ValueError, objc.createStructType, "Foo3", b'{_Foo="a"f', None) self.assertRaises(ValueError, objc.createStructType, "Foo4", b'^{_Foo="a"f}', None)
def testCreateImplicit(self): tp = objc.createStructType("BarStruct", '{_BarStruct="e"f"f"f"g"f"h"f}', None) self.assert_(isinstance(tp, type)) self.assert_(tp.__typestr__, "{_BarStruct=ffff}") o = tp() self.assert_(hasattr(o, 'e')) self.assert_(hasattr(o, 'f')) self.assert_(hasattr(o, 'g')) self.assert_(hasattr(o, 'h')) self.assertRaises(ValueError, objc.createStructType, "Foo2", '{_Foo=f"a"}', None) self.assertRaises(ValueError, objc.createStructType, "Foo3", '{_Foo="a"f', None) self.assertRaises(ValueError, objc.createStructType, "Foo4", '^{_Foo="a"f}', None)
def testEmbeddedFields(self): tp = objc.createStructType("BarStruct", b'{FooStruct="first"i"second"i}', None) v = OC_StructTest.createWithFirst_andSecond_(1, 2) self.assertIsInstance(v, tp) x = OC_StructTest.sumFields_(v) self.assertEqual(x, v.first + v.second) self.assertEqual(v.first, 1) self.assertEqual(v.second, 2) self.assertHasAttr(objc.ivar, 'BarStruct') v = objc.ivar.BarStruct() self.assertEqual(v.__typestr__, b'{FooStruct=ii}')
def testCreateExplicit(self): tp = objc.createStructType("FooStruct", b"{_FooStruct=ffff}", ["a","b","c","d"]) self.assertIsInstance(tp, type) self.assertEqual(tp.__typestr__, b"{_FooStruct=ffff}") self.assertEqual(tp._fields, ("a", "b", "c", "d")) o = tp() self.assertHasAttr(o, 'a') self.assertHasAttr(o, 'b') self.assertHasAttr(o, 'c') self.assertHasAttr(o, 'd') self.assertHasAttr(objc.ivar, 'FooStruct') v = objc.ivar.FooStruct() self.assertIsInstance(v, objc.ivar) self.assertEqual(v.__typestr__, tp.__typestr__)
# Last update: Fri Sep 21 15:13:54 2012 import objc, sys if sys.maxsize > 2 ** 32: def sel32or64(a, b): return b else: def sel32or64(a, b): return a if sys.byteorder == 'little': def littleOrBig(a, b): return a else: def littleOrBig(a, b): return b misc = { } misc.update({'InstallerSection_Private': objc.createStructType('InstallerSection_Private', b'{InstallerSection_Private=}', []), 'InstallerState_Private': objc.createStructType('InstallerState_Private', b'{InstallerState_Private=}', []), 'InstallerPane_Private': objc.createStructType('InstallerPane_Private', b'{InstallerPane_Private=}', [])}) constants = '''$InstallerState_Choice_CustomLocation$InstallerState_Choice_Identifier$InstallerState_Choice_Installed$''' enums = '''$InstallerDirectionBackward@1$InstallerDirectionForward@0$InstallerDirectionUndefined@2$''' misc.update({}) r = objc.registerMetaDataForSelector objc._updatingMetadata(True) try: r(b'InstallerPane', b'gotoNextPane', {'retval': {'type': 'Z'}}) r(b'InstallerPane', b'gotoPreviousPane', {'retval': {'type': 'Z'}}) r(b'InstallerPane', b'nextEnabled', {'retval': {'type': 'Z'}}) r(b'InstallerPane', b'previousEnabled', {'retval': {'type': 'Z'}}) r(b'InstallerPane', b'setNextEnabled:', {'arguments': {2: {'type': 'Z'}}}) r(b'InstallerPane', b'setPreviousEnabled:', {'arguments': {2: {'type': 'Z'}}}) r(b'InstallerPane', b'shouldExitPane:', {'retval': {'type': 'Z'}}) r(b'InstallerSection', b'gotoPane:', {'retval': {'type': 'Z'}}) r(b'InstallerSection', b'shouldLoad', {'retval': {'type': 'Z'}})
def parseBridgeSupport(xmldata, globals, frameworkName, dylib_path=None, inlineTab=None): if dylib_path: lib = ctypes.cdll.LoadLibrary(dylib_path) _libraries.append(lib) objc._updatingMetadata(True) try: prs = _BridgeSupportParser(xmldata, frameworkName) globals.update(prs.values) for entry in prs.cftypes: tp = objc.registerCFSignature(*entry) globals[entry[0]] = tp for name, typestr in prs.opaque: globals[name] = objc.createOpaquePointerType(name, typestr) for name, typestr, alias in prs.structs: if alias is not None: globals[name] = alias objc.createStructAlias(name, typestr, alias) else: globals[name] = value = objc.createStructType(name, typestr, None) for name, typestr, magic in prs.constants: try: value = objc._loadConstant(name, typestr, magic) except AttributeError: continue globals[name] = value for class_name, sel_name, is_class in prs.meta: objc.registerMetaDataForSelector(class_name, sel_name, prs.meta[(class_name, sel_name, is_class)]) for name, method_list in prs.informal_protocols: proto = objc.informal_protocol(name, method_list) # XXX: protocols submodule should be deprecated if "protocols" not in globals: mod_name = "%s.protocols"%(frameworkName,) m = globals["protocols"] = type(objc)(mod_name) sys.modules[mod_name] = m else: m = globals["protocols"] setattr(m, name, proto) if prs.functions: objc.loadBundleFunctions(None, globals, prs.functions) if inlineTab is not None: objc.loadFunctionList(inlineTab, globals, prs.functions) for name, orig in prs.func_aliases: try: globals[name] = globals[orig] except KeyError: pass finally: objc._updatingMetadata(False)
def littleOrBig(a, b): return a else: def littleOrBig(a, b): return b misc = {} misc.update({ "CFHostClientContext": objc.createStructType( "CFHostClientContext", sel32or64(b"{CFHostClientContext=l^v^?^?^?}", b"{CFHostClientContext=q^v^?^?^?}"), [], ), "CFNetServiceClientContext": objc.createStructType( "CFNetServiceClientContext", sel32or64( b"{CFNetServiceClientContext=l^v^?^?^?}", b"{CFNetServiceClientContext=q^v^?^?^?}", ), [], ), }) constants = """$kCFDNSServiceFailureKey@^{__CFString=}$kCFErrorDomainCFNetwork@^{__CFString=}$kCFErrorDomainWinSock@^{__CFString=}$kCFFTPResourceGroup@^{__CFString=}$kCFFTPResourceLink@^{__CFString=}$kCFFTPResourceModDate@^{__CFString=}$kCFFTPResourceMode@^{__CFString=}$kCFFTPResourceName@^{__CFString=}$kCFFTPResourceOwner@^{__CFString=}$kCFFTPResourceSize@^{__CFString=}$kCFFTPResourceType@^{__CFString=}$kCFFTPStatusCodeKey@^{__CFString=}$kCFGetAddrInfoFailureKey@^{__CFString=}$kCFHTTPAuthenticationAccountDomain@^{__CFString=}$kCFHTTPAuthenticationPassword@^{__CFString=}$kCFHTTPAuthenticationSchemeBasic@^{__CFString=}$kCFHTTPAuthenticationSchemeDigest@^{__CFString=}$kCFHTTPAuthenticationSchemeKerberos@^{__CFString=}$kCFHTTPAuthenticationSchemeNTLM@^{__CFString=}$kCFHTTPAuthenticationSchemeNegotiate@^{__CFString=}$kCFHTTPAuthenticationSchemeNegotiate2@^{__CFString=}$kCFHTTPAuthenticationSchemeOAuth1@^{__CFString=}$kCFHTTPAuthenticationSchemeXMobileMeAuthToken@^{__CFString=}$kCFHTTPAuthenticationUsername@^{__CFString=}$kCFHTTPVersion1_0@^{__CFString=}$kCFHTTPVersion1_1@^{__CFString=}$kCFHTTPVersion2_0@^{__CFString=}$kCFNetworkProxiesExceptionsList@^{__CFString=}$kCFNetworkProxiesExcludeSimpleHostnames@^{__CFString=}$kCFNetworkProxiesFTPEnable@^{__CFString=}$kCFNetworkProxiesFTPPassive@^{__CFString=}$kCFNetworkProxiesFTPPort@^{__CFString=}$kCFNetworkProxiesFTPProxy@^{__CFString=}$kCFNetworkProxiesGopherEnable@^{__CFString=}$kCFNetworkProxiesGopherPort@^{__CFString=}$kCFNetworkProxiesGopherProxy@^{__CFString=}$kCFNetworkProxiesHTTPEnable@^{__CFString=}$kCFNetworkProxiesHTTPPort@^{__CFString=}$kCFNetworkProxiesHTTPProxy@^{__CFString=}$kCFNetworkProxiesHTTPSEnable@^{__CFString=}$kCFNetworkProxiesHTTPSPort@^{__CFString=}$kCFNetworkProxiesHTTPSProxy@^{__CFString=}$kCFNetworkProxiesProxyAutoConfigEnable@^{__CFString=}$kCFNetworkProxiesProxyAutoConfigJavaScript@^{__CFString=}$kCFNetworkProxiesProxyAutoConfigURLString@^{__CFString=}$kCFNetworkProxiesProxyAutoDiscoveryEnable@^{__CFString=}$kCFNetworkProxiesRTSPEnable@^{__CFString=}$kCFNetworkProxiesRTSPPort@^{__CFString=}$kCFNetworkProxiesRTSPProxy@^{__CFString=}$kCFNetworkProxiesSOCKSEnable@^{__CFString=}$kCFNetworkProxiesSOCKSPort@^{__CFString=}$kCFNetworkProxiesSOCKSProxy@^{__CFString=}$kCFProxyAutoConfigurationHTTPResponseKey@^{__CFString=}$kCFProxyAutoConfigurationJavaScriptKey@^{__CFString=}$kCFProxyAutoConfigurationURLKey@^{__CFString=}$kCFProxyHostNameKey@^{__CFString=}$kCFProxyPasswordKey@^{__CFString=}$kCFProxyPortNumberKey@^{__CFString=}$kCFProxyTypeAutoConfigurationJavaScript@^{__CFString=}$kCFProxyTypeAutoConfigurationURL@^{__CFString=}$kCFProxyTypeFTP@^{__CFString=}$kCFProxyTypeHTTP@^{__CFString=}$kCFProxyTypeHTTPS@^{__CFString=}$kCFProxyTypeKey@^{__CFString=}$kCFProxyTypeNone@^{__CFString=}$kCFProxyTypeSOCKS@^{__CFString=}$kCFProxyUsernameKey@^{__CFString=}$kCFSOCKSNegotiationMethodKey@^{__CFString=}$kCFSOCKSStatusCodeKey@^{__CFString=}$kCFSOCKSVersionKey@^{__CFString=}$kCFStreamErrorDomainSOCKS@i$kCFStreamErrorDomainSSL@i$kCFStreamNetworkServiceType@^{__CFString=}$kCFStreamNetworkServiceTypeAVStreaming@^{__CFString=}$kCFStreamNetworkServiceTypeBackground@^{__CFString=}$kCFStreamNetworkServiceTypeCallSignaling@^{__CFString=}$kCFStreamNetworkServiceTypeResponsiveAV@^{__CFString=}$kCFStreamNetworkServiceTypeResponsiveData@^{__CFString=}$kCFStreamNetworkServiceTypeVideo@^{__CFString=}$kCFStreamNetworkServiceTypeVoIP@^{__CFString=}$kCFStreamNetworkServiceTypeVoice@^{__CFString=}$kCFStreamPropertyAllowConstrainedNetworkAccess@^{__CFString=}$kCFStreamPropertyAllowExpensiveNetworkAccess@^{__CFString=}$kCFStreamPropertyConnectionIsCellular@^{__CFString=}$kCFStreamPropertyConnectionIsExpensive@^{__CFString=}$kCFStreamPropertyFTPAttemptPersistentConnection@^{__CFString=}$kCFStreamPropertyFTPFetchResourceInfo@^{__CFString=}$kCFStreamPropertyFTPFileTransferOffset@^{__CFString=}$kCFStreamPropertyFTPPassword@^{__CFString=}$kCFStreamPropertyFTPProxy@^{__CFString=}$kCFStreamPropertyFTPProxyHost@^{__CFString=}$kCFStreamPropertyFTPProxyPassword@^{__CFString=}$kCFStreamPropertyFTPProxyPort@^{__CFString=}$kCFStreamPropertyFTPProxyUser@^{__CFString=}$kCFStreamPropertyFTPResourceSize@^{__CFString=}$kCFStreamPropertyFTPUsePassiveMode@^{__CFString=}$kCFStreamPropertyFTPUserName@^{__CFString=}$kCFStreamPropertyHTTPAttemptPersistentConnection@^{__CFString=}$kCFStreamPropertyHTTPFinalRequest@^{__CFString=}$kCFStreamPropertyHTTPFinalURL@^{__CFString=}$kCFStreamPropertyHTTPProxy@^{__CFString=}$kCFStreamPropertyHTTPProxyHost@^{__CFString=}$kCFStreamPropertyHTTPProxyPort@^{__CFString=}$kCFStreamPropertyHTTPRequestBytesWrittenCount@^{__CFString=}$kCFStreamPropertyHTTPResponseHeader@^{__CFString=}$kCFStreamPropertyHTTPSProxyHost@^{__CFString=}$kCFStreamPropertyHTTPSProxyPort@^{__CFString=}$kCFStreamPropertyHTTPShouldAutoredirect@^{__CFString=}$kCFStreamPropertyNoCellular@^{__CFString=}$kCFStreamPropertyProxyLocalBypass@^{__CFString=}$kCFStreamPropertySOCKSPassword@^{__CFString=}$kCFStreamPropertySOCKSProxy@^{__CFString=}$kCFStreamPropertySOCKSProxyHost@^{__CFString=}$kCFStreamPropertySOCKSProxyPort@^{__CFString=}$kCFStreamPropertySOCKSUser@^{__CFString=}$kCFStreamPropertySOCKSVersion@^{__CFString=}$kCFStreamPropertySSLContext@^{__CFString=}$kCFStreamPropertySSLPeerCertificates@^{__CFString=}$kCFStreamPropertySSLPeerTrust@^{__CFString=}$kCFStreamPropertySSLSettings@^{__CFString=}$kCFStreamPropertyShouldCloseNativeSocket@^{__CFString=}$kCFStreamPropertySocketExtendedBackgroundIdleMode@^{__CFString=}$kCFStreamPropertySocketRemoteHost@^{__CFString=}$kCFStreamPropertySocketRemoteNetService@^{__CFString=}$kCFStreamPropertySocketSecurityLevel@^{__CFString=}$kCFStreamSSLAllowsAnyRoot@^{__CFString=}$kCFStreamSSLAllowsExpiredCertificates@^{__CFString=}$kCFStreamSSLAllowsExpiredRoots@^{__CFString=}$kCFStreamSSLCertificates@^{__CFString=}$kCFStreamSSLIsServer@^{__CFString=}$kCFStreamSSLLevel@^{__CFString=}$kCFStreamSSLPeerName@^{__CFString=}$kCFStreamSSLValidatesCertificateChain@^{__CFString=}$kCFStreamSocketSOCKSVersion4@^{__CFString=}$kCFStreamSocketSOCKSVersion5@^{__CFString=}$kCFStreamSocketSecurityLevelNegotiatedSSL@^{__CFString=}$kCFStreamSocketSecurityLevelNone@^{__CFString=}$kCFStreamSocketSecurityLevelSSLv2@^{__CFString=}$kCFStreamSocketSecurityLevelSSLv3@^{__CFString=}$kCFStreamSocketSecurityLevelTLSv1@^{__CFString=}$kCFURLErrorFailingURLErrorKey@^{__CFString=}$kCFURLErrorFailingURLStringErrorKey@^{__CFString=}$""" constants = constants + "$kCFStreamErrorDomainNetServices@%s$" % (sel32or64( "l", "i"), )
if sys.maxsize > 2**32: def sel32or64(a, b): return b else: def sel32or64(a, b): return a misc = {} misc.update({ "PMPaperMargins": objc.createStructType("PMPaperMargins", b"{PMRect=dddd}", ["top", "left", "bottom", "right"]), "PMResolution": objc.createStructType("PMResolution", b"{PMResolution=dd}", ["hRes", "vRes"]), "PMLanguageInfo": objc.createStructType( "PMLanguageInfo", b"{PMLanguageInfo=[33C][33C][33C]}", ["level", "version", "release"], ), "PMRect": objc.createStructType("PMRect", b"{PMRect=dddd}", ["top", "left", "bottom", "right"]), }) constants = """$$""" enums = """$kAllPPDDomains@1$kCUPSPPDDomain@6$kLocalPPDDomain@3$kNetworkPPDDomain@4$kPMAllocationFailure@-108$kPMBorderDoubleHairline@2$kPMBorderDoubleThickline@4$kPMBorderSingleHairline@1$kPMBorderSingleThickline@3$kPMCMYKColorSpaceModel@3$kPMCVMSymbolNotFound@-9662$kPMCancel@128$kPMCloseFailed@-9785$kPMColorSpaceModelCount@4$kPMCoverPageAfter@3$kPMCoverPageBefore@2$kPMCoverPageNone@1$kPMCreateMessageFailed@-9620$kPMDataFormatXMLCompressed@2$kPMDataFormatXMLDefault@0$kPMDataFormatXMLMinimal@1$kPMDeleteSubTicketFailed@-9585$kPMDestinationFax@3$kPMDestinationFile@2$kPMDestinationInvalid@0$kPMDestinationPreview@4$kPMDestinationPrinter@1$kPMDestinationProcessPDF@5$kPMDevNColorSpaceModel@4$kPMDocumentNotFound@-9644$kPMDontSwitchPDEError@-9531$kPMDuplexNoTumble@2$kPMDuplexNone@1$kPMDuplexTumble@3$kPMEditRequestFailed@-9544$kPMFeatureNotInstalled@-9533$kPMFileOrDirOperationFailed@-9634$kPMFontNameTooLong@-9704$kPMFontNotFound@-9703$kPMGeneralCGError@-9705$kPMGeneralError@-30870$kPMGrayColorSpaceModel@1$kPMHideInlineItems@0$kPMIOAttrNotAvailable@-9787$kPMIOMSymbolNotFound@-9661$kPMInternalError@-30870$kPMInvalidAllocator@-30890$kPMInvalidCVMContext@-9665$kPMInvalidCalibrationTarget@-30898$kPMInvalidConnection@-30887$kPMInvalidFileType@-30895$kPMInvalidIOMContext@-9664$kPMInvalidIndex@-30882$kPMInvalidItem@-30892$kPMInvalidJobID@-9666$kPMInvalidJobTemplate@-30885$kPMInvalidKey@-30888$kPMInvalidLookupSpec@-9542$kPMInvalidObject@-30896$kPMInvalidPBMRef@-9540$kPMInvalidPDEContext@-9530$kPMInvalidPMContext@-9663$kPMInvalidPageFormat@-30876$kPMInvalidPaper@-30897$kPMInvalidParameter@-50$kPMInvalidPreset@-30899$kPMInvalidPrintSession@-30879$kPMInvalidPrintSettings@-30875$kPMInvalidPrinter@-30880$kPMInvalidPrinterAddress@-9780$kPMInvalidPrinterInfo@-30886$kPMInvalidReply@-30894$kPMInvalidState@-9706$kPMInvalidSubTicket@-9584$kPMInvalidTicket@-30891$kPMInvalidType@-30893$kPMInvalidValue@-30889$kPMItemIsLocked@-9586$kPMJobBusy@-9642$kPMJobCanceled@-9643$kPMJobGetTicketBadFormatError@-9672$kPMJobGetTicketReadError@-9673$kPMJobManagerAborted@-9671$kPMJobNotFound@-9641$kPMJobStreamEndError@-9670$kPMJobStreamOpenFailed@-9668$kPMJobStreamReadFailed@-9669$kPMKeyNotFound@-9589$kPMKeyNotUnique@-9590$kPMKeyOrValueNotFound@-9623$kPMLandscape@2$kPMLastErrorCodeToMakeMaintenanceOfThisListEasier@-9799$kPMLayoutBottomTopLeftRight@7$kPMLayoutBottomTopRightLeft@8$kPMLayoutLeftRightBottomTop@2$kPMLayoutLeftRightTopBottom@1$kPMLayoutRightLeftBottomTop@4$kPMLayoutRightLeftTopBottom@3$kPMLayoutTopBottomLeftRight@5$kPMLayoutTopBottomRightLeft@6$kPMLockIgnored@-30878$kPMMessagingError@-9624$kPMNoDefaultItem@-9500$kPMNoDefaultPrinter@-30872$kPMNoDefaultSettings@-9501$kPMNoError@0$kPMNoPrinterJobID@-9667$kPMNoSelectedPrinters@-9541$kPMNoSuchEntry@-30874$kPMNotImplemented@-30873$kPMObjectInUse@-30881$kPMOpenFailed@-9781$kPMOutOfScope@-30871$kPMPMSymbolNotFound@-9660$kPMPageToPaperMappingNone@1$kPMPageToPaperMappingScaleToFit@2$kPMPaperTypeCoated@2$kPMPaperTypeGlossy@4$kPMPaperTypePlain@1$kPMPaperTypePremium@3$kPMPaperTypeTShirt@6$kPMPaperTypeTransparency@5$kPMPaperTypeUnknown@0$kPMPermissionError@-9636$kPMPluginNotFound@-9701$kPMPluginRegisterationFailed@-9702$kPMPortrait@1$kPMPrBrowserNoUI@-9545$kPMPrintAllPages@-1$kPMPrinterIdle@3$kPMPrinterProcessing@4$kPMPrinterStopped@5$kPMQualityBest@13$kPMQualityDraft@4$kPMQualityHighest@15$kPMQualityInkSaver@1$kPMQualityLowest@0$kPMQualityNormal@8$kPMQualityPhoto@11$kPMQueueAlreadyExists@-9639$kPMQueueJobFailed@-9640$kPMQueueNotFound@-9638$kPMRGBColorSpaceModel@2$kPMReadFailed@-9782$kPMReadGotZeroData@-9788$kPMReverseLandscape@4$kPMReversePortrait@3$kPMScalingCenterOnImgArea@6$kPMScalingCenterOnPaper@5$kPMScalingPinBottomLeft@3$kPMScalingPinBottomRight@4$kPMScalingPinTopLeft@1$kPMScalingPinTopRight@2$kPMServerAlreadyRunning@-9631$kPMServerAttributeRestricted@-9633$kPMServerCommunicationFailed@-9621$kPMServerNotFound@-9630$kPMServerSuspended@-9632$kPMShowDefaultInlineItems@32768$kPMShowInlineCopies@1$kPMShowInlineOrientation@8$kPMShowInlinePageRange@2$kPMShowInlinePageRangeWithSelection@64$kPMShowInlinePaperSize@4$kPMShowInlineScale@128$kPMShowPageAttributesPDE@256$kPMSimplexTumble@4$kPMStatusFailed@-9784$kPMStringConversionFailure@-30883$kPMSubTicketNotFound@-9583$kPMSyncRequestFailed@-9543$kPMTemplateIsLocked@-9588$kPMTicketIsLocked@-9587$kPMTicketTypeNotFound@-9580$kPMUnableToFindProcess@-9532$kPMUnexpectedImagingError@-9707$kPMUnknownColorSpaceModel@0$kPMUnknownDataType@-9591$kPMUnknownMessage@-9637$kPMUnlocked@0$kPMUnsupportedConnection@-9786$kPMUpdateTicketFailed@-9581$kPMUserOrGroupNotFound@-9635$kPMValidateTicketFailed@-9582$kPMValueOutOfRange@-30877$kPMWriteFailed@-9783$kPMXMLParseError@-30884$kSystemPPDDomain@2$kUserPPDDomain@5$"""
""" Tests for using special type codes in struct definitions TODO: * _C_UNICHAR, _C_CHAR_AS_INT, _C_CHAR_AS_TEXT """ from PyObjCTest.specialtypecodes import OC_TestSpecialTypeCode from PyObjCTools.TestSupport import TestCase import objc EmbeddedBoolStruct = objc.createStructType( "EmbeddedBoolStruct", b"{_EmbeddedBool=" + objc._C_INT + objc._C_NSBOOL + b"}", ["count", "isValid"], ) EmbeddedBoolArrayStruct = objc.createStructType( "EmbeddedBoolArrayStruct", b"{_EmbeddedBoolArray=" + objc._C_INT + b"[4" + objc._C_NSBOOL + b"]}", ["count", "valid"], ) class TestRecode(TestCase): # Use recode to test to/from Objective-C. # # This has limited because in 'real life' we'd encode/decode based on a # typestring from the Objective-C runtime and those don't include our # special type codes. # # This does make sure that the basic encoding machinery works.
if sys.maxsize > 2**32: def sel32or64(a, b): return b else: def sel32or64(a, b): return a misc = {} misc.update({ "GKBox": objc.createStructType("GKBox", b"{GKBox=}", ["boxMin", "boxMax"]), "GKQuad": objc.createStructType("GKQuad", b"{GKQuad=}", ["quadMin", "quadMax"]), }) constants = """$$""" enums = """$GKGameModelMaxScore@16777216$GKGameModelMinScore@-16777216$GKMeshGraphTriangulationModeCenters@2$GKMeshGraphTriangulationModeEdgeMidpoints@4$GKMeshGraphTriangulationModeVertices@1$GKRTreeSplitStrategyHalve@0$GKRTreeSplitStrategyLinear@1$GKRTreeSplitStrategyQuadratic@2$GKRTreeSplitStrategyReduceOverlap@3$GK_VERSION@80000000$""" misc.update({}) aliases = {"GK_AVAILABLE": "__OSX_AVAILABLE_STARTING"} r = objc.registerMetaDataForSelector objc._updatingMetadata(True) try: r(b"GKAgent3D", b"rightHanded", {"retval": {"type": b"Z"}}) r(b"GKAgent3D", b"rotation", {"retval": {"type": b"{_matrix_float3x3=?}"}}) r(b"GKAgent3D", b"setRightHanded:", {"arguments": {2: {"type": b"Z"}}}) r( b"GKAgent3D",
return b else: def sel32or64(a, b): return a misc = {} misc.update( { "LSItemInfoRecord": objc.createStructType( "LSItemInfoRecord", b"{LSItemInfoRecord=III^{__CFString=}}", ["flags", "filetype", "creator", "extension"], None, 2, ), "LSLaunchFSRefSpec": objc.createStructType( "LSLaunchFSRefSpec", b"{LSLaunchFSRefSpec=^{FSRef=[80C]}Q^{FSRef=[80C]}^{AEDesc=I^^{OpaqueAEDataStorageType=}}I^v}", [ "appRef", "numDocs", "itemRefs", "passThruParams", "launchFlags", "asyncRefCon", ], None,
def sel32or64(a, b): return b else: def sel32or64(a, b): return a misc = {} misc.update( { "DRFileForkSizeInfo": objc.createStructType( "DRFileForkSizeInfo", sel32or64(b"{DRFileForkSizeInfo=LLQ}", b"{DRFileForkSizeInfo=IIQ}"), ["fork", "query", "size"], ), "DRFileProductionInfo": objc.createStructType( "DRFileProductionInfo", sel32or64( b"{DRFileProductionInfo=Q^vLLLL}", b"{DRFileProductionInfo=Q^vIIII}" ), ["requestedAddress", "buffer", "reqCount", "actCount", "blockSize", "fork"], ), "DRTrackProductionInfo": objc.createStructType( "DRTrackProductionInfo", sel32or64( b"{DRTrackProductionInfo=^vLLLLQ}", b"{DRTrackProductionInfo=^vIIIIQ}" ), [
return b else: def sel32or64(a, b): return a misc = {} misc.update( { "DRBurnSessionProgressDialogOptions": objc.createStructType( "DRBurnSessionProgressDialogOptions", sel32or64( b"{DRBurnSessionProgressDialogOptions=LL^{__CFString=}}", b"{DRBurnSessionProgressDialogOptions=II^{__CFString=}}", ), ["version", "dialogOptionFlags", "description"], ), "DREraseSessionSetupDialogOptions": objc.createStructType( "DREraseSessionSetupDialogOptions", sel32or64( b"{DREraseSessionSetupDialogOptions=LL}", b"{DREraseSessionSetupDialogOptions=II}", ), ["version", "dialogOptionFlags"], ), "DREraseSessionProgressDialogOptions": objc.createStructType( "DREraseSessionProgressDialogOptions", sel32or64( b"{DREraseSessionProgressDialogOptions=LL^{__CFString=}}",
if sys.maxsize > 2**32: def sel32or64(a, b): return b else: def sel32or64(a, b): return a misc = {} misc.update({ "IMServicePlugInMessageInternal": objc.createStructType("IMServicePlugInMessageInternal", b"{_IMServicePlugInMessageInternal=}", []) }) constants = """$IMAccountSettingLoginHandle$IMAccountSettingPassword$IMAccountSettingServerHost$IMAccountSettingServerPort$IMAccountSettingUsesSSL$IMAttributeBackgroundColor$IMAttributeBaseWritingDirection$IMAttributeBold$IMAttributeFontFamily$IMAttributeFontSize$IMAttributeForegroundColor$IMAttributeItalic$IMAttributeLink$IMAttributeMessageBackgroundColor$IMAttributePreformatted$IMAttributeStrikethrough$IMAttributeUnderline$IMGroupListDefaultGroup$IMGroupListHandlesKey$IMGroupListNameKey$IMGroupListPermissionsKey$IMHandleCapabilityChatRoom$IMHandleCapabilityFileTransfer$IMHandleCapabilityHandlePicture$IMHandleCapabilityMessaging$IMHandleCapabilityOfflineMessaging$IMHandlePropertyAlias$IMHandlePropertyAuthorizationStatus$IMHandlePropertyAvailability$IMHandlePropertyCapabilities$IMHandlePropertyEmailAddress$IMHandlePropertyFirstName$IMHandlePropertyIdleDate$IMHandlePropertyLastName$IMHandlePropertyPictureData$IMHandlePropertyPictureIdentifier$IMHandlePropertyStatusMessage$IMSessionPropertyAvailability$IMSessionPropertyIdleDate$IMSessionPropertyIsInvisible$IMSessionPropertyPictureData$IMSessionPropertyStatusMessage$""" enums = """$IMGroupListCanAddNewMembers@4$IMGroupListCanRemoveMembers@8$IMGroupListCanRenameGroup@2$IMGroupListCanReorderGroup@1$IMGroupListCanReorderMembers@16$IMHandleAuthorizationStatusAccepted@0$IMHandleAuthorizationStatusDeclined@2$IMHandleAuthorizationStatusPending@1$IMHandleAvailabilityAvailable@1$IMHandleAvailabilityAway@0$IMHandleAvailabilityOffline@-1$IMHandleAvailabilityUnknown@-2$IMSessionAvailabilityAvailable@1$IMSessionAvailabilityAway@0$""" misc.update({}) r = objc.registerMetaDataForSelector objc._updatingMetadata(True) try: r( b"NSObject", b"acceptAuthorizationRequestFromHandle:", { "required": True, "retval": { "type": b"v" },
if sys.maxsize > 2**32: def sel32or64(a, b): return b else: def sel32or64(a, b): return a misc = {} misc.update({ "timespec": objc.createStructType("timespec", b"{timespec=ll}", ["tv_sec", "tv_nsec"]) }) constants = """$$""" enums = """$DISPATCH_AUTORELEASE_FREQUENCY_INHERIT@0$DISPATCH_AUTORELEASE_FREQUENCY_NEVER@2$DISPATCH_AUTORELEASE_FREQUENCY_WORK_ITEM@1$DISPATCH_BLOCK_ASSIGN_CURRENT@4$DISPATCH_BLOCK_BARRIER@1$DISPATCH_BLOCK_DETACHED@2$DISPATCH_BLOCK_ENFORCE_QOS_CLASS@32$DISPATCH_BLOCK_INHERIT_QOS_CLASS@16$DISPATCH_BLOCK_NO_QOS_CLASS@8$DISPATCH_IO_RANDOM@1$DISPATCH_IO_STOP@1$DISPATCH_IO_STREAM@0$DISPATCH_IO_STRICT_INTERVAL@1$DISPATCH_MACH_SEND_DEAD@1$DISPATCH_MEMORYPRESSURE_CRITICAL@4$DISPATCH_MEMORYPRESSURE_NORMAL@1$DISPATCH_MEMORYPRESSURE_WARN@2$DISPATCH_PROC_EXEC@536870912$DISPATCH_PROC_EXIT@2147483648$DISPATCH_PROC_FORK@1073741824$DISPATCH_PROC_SIGNAL@134217728$DISPATCH_QUEUE_PRIORITY_BACKGROUND@-32768$DISPATCH_QUEUE_PRIORITY_DEFAULT@0$DISPATCH_QUEUE_PRIORITY_HIGH@2$DISPATCH_QUEUE_PRIORITY_LOW@-2$DISPATCH_TIMER_STRICT@1$DISPATCH_TIME_FOREVER@18446744073709551615$DISPATCH_TIME_NOW@0$DISPATCH_VNODE_ATTRIB@8$DISPATCH_VNODE_DELETE@1$DISPATCH_VNODE_EXTEND@4$DISPATCH_VNODE_FUNLOCK@256$DISPATCH_VNODE_LINK@16$DISPATCH_VNODE_RENAME@32$DISPATCH_VNODE_REVOKE@64$DISPATCH_VNODE_WRITE@2$NSEC_PER_MSEC@1000000$NSEC_PER_SEC@1000000000$NSEC_PER_USEC@1000$USEC_PER_SEC@1000000$""" misc.update({}) functions = { "dispatch_io_create_with_io": ( b"@L@@@?", "", { "retval": { "already_retained": True }, "arguments": { 3: { "callable": {
import objc, sys if sys.maxsize > 2**32: def sel32or64(a, b): return b else: def sel32or64(a, b): return a misc = {} misc.update({ 'ColorSyncMD5': objc.createStructType('ColorSyncMD5', b'{_ColorSyncMD5=[16C]}', ['digest']) }) constants = '''$kCMMApplyTransformProcName$kCMMCreateTransformPropertyProcName$kCMMInitializeLinkProfileProcName$kCMMInitializeTransformProcName$kColorSyncACESCGLinearProfile$kColorSyncAdobeRGB1998Profile$kColorSyncBestQuality$kColorSyncBlackPointCompensation$kColorSyncCameraDeviceClass$kColorSyncConversion1DLut$kColorSyncConversion3DLut$kColorSyncConversionBPC$kColorSyncConversionChannelID$kColorSyncConversionGridPoints$kColorSyncConversionInpChan$kColorSyncConversionMatrix$kColorSyncConversionNDLut$kColorSyncConversionOutChan$kColorSyncConversionParamCurve0$kColorSyncConversionParamCurve1$kColorSyncConversionParamCurve2$kColorSyncConversionParamCurve3$kColorSyncConversionParamCurve4$kColorSyncConvertQuality$kColorSyncConvertThreadCount$kColorSyncConvertUseExtendedRange$kColorSyncConvertUseVectorUnit$kColorSyncCustomProfiles$kColorSyncDCIP3Profile$kColorSyncDeviceClass$kColorSyncDeviceDefaultProfileID$kColorSyncDeviceDescription$kColorSyncDeviceDescriptions$kColorSyncDeviceHostScope$kColorSyncDeviceID$kColorSyncDeviceModeDescription$kColorSyncDeviceModeDescriptions$kColorSyncDeviceProfileID$kColorSyncDeviceProfileIsCurrent$kColorSyncDeviceProfileIsDefault$kColorSyncDeviceProfileIsFactory$kColorSyncDeviceProfileURL$kColorSyncDeviceProfilesNotification$kColorSyncDeviceRegisteredNotification$kColorSyncDeviceUnregisteredNotification$kColorSyncDeviceUserScope$kColorSyncDisplayDeviceClass$kColorSyncDisplayDeviceProfilesNotification$kColorSyncDisplayP3Profile$kColorSyncDraftQuality$kColorSyncExtendedRange$kColorSyncFactoryProfiles$kColorSyncFixedPointRange$kColorSyncGenericCMYKProfile$kColorSyncGenericGrayGamma22Profile$kColorSyncGenericGrayProfile$kColorSyncGenericLabProfile$kColorSyncGenericRGBProfile$kColorSyncGenericXYZProfile$kColorSyncITUR2020Profile$kColorSyncITUR709Profile$kColorSyncNormalQuality$kColorSyncPreferredCMM$kColorSyncPrinterDeviceClass$kColorSyncProfile$kColorSyncProfileCacheSeed$kColorSyncProfileClass$kColorSyncProfileColorSpace$kColorSyncProfileComputerDomain$kColorSyncProfileDescription$kColorSyncProfileHeader$kColorSyncProfileHostScope$kColorSyncProfileMD5Digest$kColorSyncProfilePCS$kColorSyncProfileRepositoryChangeNotification$kColorSyncProfileURL$kColorSyncProfileUserDomain$kColorSyncProfileUserScope$kColorSyncROMMRGBProfile$kColorSyncRegistrationUpdateWindowServer$kColorSyncRenderingIntent$kColorSyncRenderingIntentAbsolute$kColorSyncRenderingIntentPerceptual$kColorSyncRenderingIntentRelative$kColorSyncRenderingIntentSaturation$kColorSyncRenderingIntentUseProfileHeader$kColorSyncSRGBProfile$kColorSyncScannerDeviceClass$kColorSyncSigAToB0Tag$kColorSyncSigAToB1Tag$kColorSyncSigAToB2Tag$kColorSyncSigAbstractClass$kColorSyncSigBToA0Tag$kColorSyncSigBToA1Tag$kColorSyncSigBToA2Tag$kColorSyncSigBlueColorantTag$kColorSyncSigBlueTRCTag$kColorSyncSigCmykData$kColorSyncSigColorSpaceClass$kColorSyncSigCopyrightTag$kColorSyncSigDeviceMfgDescTag$kColorSyncSigDeviceModelDescTag$kColorSyncSigDisplayClass$kColorSyncSigGamutTag$kColorSyncSigGrayData$kColorSyncSigGrayTRCTag$kColorSyncSigGreenColorantTag$kColorSyncSigGreenTRCTag$kColorSyncSigInputClass$kColorSyncSigLabData$kColorSyncSigLinkClass$kColorSyncSigMediaBlackPointTag$kColorSyncSigMediaWhitePointTag$kColorSyncSigNamedColor2Tag$kColorSyncSigNamedColorClass$kColorSyncSigOutputClass$kColorSyncSigPreview0Tag$kColorSyncSigPreview1Tag$kColorSyncSigPreview2Tag$kColorSyncSigProfileDescriptionTag$kColorSyncSigProfileSequenceDescTag$kColorSyncSigRedColorantTag$kColorSyncSigRedTRCTag$kColorSyncSigRgbData$kColorSyncSigTechnologyTag$kColorSyncSigViewingCondDescTag$kColorSyncSigViewingConditionsTag$kColorSyncSigXYZData$kColorSyncTranformInfo$kColorSyncTransformCodeFragmentMD5$kColorSyncTransformCodeFragmentType$kColorSyncTransformCreator$kColorSyncTransformDeviceToDevice$kColorSyncTransformDeviceToPCS$kColorSyncTransformDstSpace$kColorSyncTransformFullConversionData$kColorSyncTransformGamutCheck$kColorSyncTransformInfo$kColorSyncTransformPCSToDevice$kColorSyncTransformPCSToPCS$kColorSyncTransformParametricConversionData$kColorSyncTransformSimplifiedConversionData$kColorSyncTransformSrcSpace$kColorSyncTransformTag$kColorSyncWaitForCacheReply$''' enums = '''$COLORSYNC_MD5_LENGTH@16$kColorSync10BitInteger@8$kColorSync16BitFloat@4$kColorSync16BitInteger@3$kColorSync1BitGamut@1$kColorSync32BitFloat@7$kColorSync32BitInteger@5$kColorSync32BitNamedColorIndex@6$kColorSync8BitInteger@2$kColorSyncAlphaFirst@4$kColorSyncAlphaInfoMask@31$kColorSyncAlphaLast@3$kColorSyncAlphaNone@0$kColorSyncAlphaNoneSkipFirst@6$kColorSyncAlphaNoneSkipLast@5$kColorSyncAlphaPremultipliedFirst@2$kColorSyncAlphaPremultipliedLast@1$kColorSyncByteOrder16Big@12288$kColorSyncByteOrder16Little@4096$kColorSyncByteOrder32Big@16384$kColorSyncByteOrder32Little@8192$kColorSyncByteOrderDefault@0$kColorSyncByteOrderMask@28672$''' misc.update({ 'COLORSYNC_PROFILE_INSTALL_ENTITLEMENT': b'com.apple.developer.ColorSync.profile.install' }) functions = { 'ColorSyncProfileCopyDescriptionString': (b'^{__CFString=}^{ColorSyncProfile=}', '', { 'retval': { 'already_cfretained': True } }), 'ColorSyncCMMCopyLocalizedName': (b'^{__CFString=}^{ColorSyncCMM=}', '', {
if sys.byteorder == 'little': def littleOrBig(a, b): return a else: def littleOrBig(a, b): return b misc = {} misc.update({ 'EAPMD5ResponsePacket': objc.createStructType('EAPMD5ResponsePacket', b'{EAPMD5ResponsePacket_s=CC[2C]CC[16C]^C}', [ 'code', 'identifier', 'length', 'type', 'value_size', 'value', 'name' ]), 'EAPNakPacket': objc.createStructType( 'EAPNakPacket', b'{EAPRequestResponsePacket_s=CC[2C]C^C}', ['code', 'identifier', 'length', 'type', 'type_data']), 'EAPResponsePacket': objc.createStructType( 'EAPResponsePacket', b'{EAPRequestResponsePacket_s=CC[2C]C^C}', ['code', 'identifier', 'length', 'type', 'type_data']), 'EAPPacket': objc.createStructType('EAPPacket', b'{EAPPacket_s=CC[2C]^C}', ['code', 'identifier', 'length', 'data']), 'EAPMD5ChallengePacket': objc.createStructType(
# This file is generated by objective.metadata # # Last update: Wed Nov 25 17:25:32 2015 import objc, sys if sys.maxsize > 2 ** 32: def sel32or64(a, b): return b else: def sel32or64(a, b): return a if sys.byteorder == 'little': def littleOrBig(a, b): return a else: def littleOrBig(a, b): return b misc = { } misc.update({'CVTimeStamp': objc.createStructType('CVTimeStamp', sel32or64(b'{_CVTimeStamp=IiqQdq{CVSMPTETime=ssLLLssss}QQ}', b'{_CVTimeStamp=IiqQdq{CVSMPTETime=ssIIIssss}QQ}'), ['version', 'videoTimeScale', 'videoTime', 'hostTime', 'rateScalar', 'videoRefreshPeriod', 'smpteTime', 'flags', 'reserved']), 'CVPlanarPixelBufferInfo_YCbCrBiPlanar': objc.createStructType('CVPlanarPixelBufferInfo_YCbCrBiPlanar', b'{CVPlanarPixelBufferInfo_YCbCrBiPlanar={CVPlanarComponentInfo=iI}{CVPlanarComponentInfo=iI}}', ['componentInfoY', 'componentInfoCbCr']), 'CVPlanarPixelBufferInfo_YCbCrPlanar': objc.createStructType('CVPlanarPixelBufferInfo_YCbCrPlanar', b'{CVPlanarPixelBufferInfo_YCbCrPlanar={CVPlanarComponentInfo=iI}{CVPlanarComponentInfo=iI}{CVPlanarComponentInfo=iI}}', ['componentInfoY', 'componentInfoCb', 'componentInfoCr']), 'CVPlanarComponentInfo': objc.createStructType('CVPlanarComponentInfo', b'{CVPlanarComponentInfo=iI}', ['offset', 'rowBytes']), 'CVTime': objc.createStructType('CVTime', b'{_CVTime=qii}', ['timeValue', 'timeScale', 'flags']), 'CVSMPTETime': objc.createStructType('CVSMPTETime', sel32or64(b'{CVSMPTETime=ssLLLssss}', b'{CVSMPTETime=ssIIIssss}'), ['subframes', 'subframeDivisor', 'counter', 'type', 'flags', 'hours', 'minutes', 'seconds', 'frames']), 'CVPlanarPixelBufferInfo': objc.createStructType('CVPlanarPixelBufferInfo', b'{CVPlanarPixelBufferInfo=[1{CVPlanarComponentInfo=iI}]}', ['componentInfo'])}) constants = '''$kCVBufferMovieTimeKey@^{__CFString=}$kCVBufferNonPropagatedAttachmentsKey@^{__CFString=}$kCVBufferPropagatedAttachmentsKey@^{__CFString=}$kCVBufferTimeScaleKey@^{__CFString=}$kCVBufferTimeValueKey@^{__CFString=}$kCVImageBufferAlphaChannelIsOpaque@^{__CFString=}$kCVImageBufferCGColorSpaceKey@^{__CFString=}$kCVImageBufferChromaLocationBottomFieldKey@^{__CFString=}$kCVImageBufferChromaLocationTopFieldKey@^{__CFString=}$kCVImageBufferChromaLocation_Bottom@^{__CFString=}$kCVImageBufferChromaLocation_BottomLeft@^{__CFString=}$kCVImageBufferChromaLocation_Center@^{__CFString=}$kCVImageBufferChromaLocation_DV420@^{__CFString=}$kCVImageBufferChromaLocation_Left@^{__CFString=}$kCVImageBufferChromaLocation_Top@^{__CFString=}$kCVImageBufferChromaLocation_TopLeft@^{__CFString=}$kCVImageBufferChromaSubsamplingKey@^{__CFString=}$kCVImageBufferChromaSubsampling_411@^{__CFString=}$kCVImageBufferChromaSubsampling_420@^{__CFString=}$kCVImageBufferChromaSubsampling_422@^{__CFString=}$kCVImageBufferCleanApertureHeightKey@^{__CFString=}$kCVImageBufferCleanApertureHorizontalOffsetKey@^{__CFString=}$kCVImageBufferCleanApertureKey@^{__CFString=}$kCVImageBufferCleanApertureVerticalOffsetKey@^{__CFString=}$kCVImageBufferCleanApertureWidthKey@^{__CFString=}$kCVImageBufferColorPrimariesKey@^{__CFString=}$kCVImageBufferColorPrimaries_DCI_P3$kCVImageBufferColorPrimaries_EBU_3213@^{__CFString=}$kCVImageBufferColorPrimaries_ITU_R_2020$kCVImageBufferColorPrimaries_ITU_R_709_2@^{__CFString=}$kCVImageBufferColorPrimaries_P22@^{__CFString=}$kCVImageBufferColorPrimaries_P3_D65$kCVImageBufferColorPrimaries_SMPTE_C@^{__CFString=}$kCVImageBufferDisplayDimensionsKey@^{__CFString=}$kCVImageBufferDisplayHeightKey@^{__CFString=}$kCVImageBufferDisplayWidthKey@^{__CFString=}$kCVImageBufferFieldCountKey@^{__CFString=}$kCVImageBufferFieldDetailKey@^{__CFString=}$kCVImageBufferFieldDetailSpatialFirstLineEarly@^{__CFString=}$kCVImageBufferFieldDetailSpatialFirstLineLate@^{__CFString=}$kCVImageBufferFieldDetailTemporalBottomFirst@^{__CFString=}$kCVImageBufferFieldDetailTemporalTopFirst@^{__CFString=}$kCVImageBufferGammaLevelKey@^{__CFString=}$kCVImageBufferICCProfileKey@^{__CFString=}$kCVImageBufferPixelAspectRatioHorizontalSpacingKey@^{__CFString=}$kCVImageBufferPixelAspectRatioKey@^{__CFString=}$kCVImageBufferPixelAspectRatioVerticalSpacingKey@^{__CFString=}$kCVImageBufferPreferredCleanApertureKey@^{__CFString=}$kCVImageBufferTransferFunctionKey@^{__CFString=}$kCVImageBufferTransferFunction_EBU_3213@^{__CFString=}$kCVImageBufferTransferFunction_ITU_R_2020$kCVImageBufferTransferFunction_ITU_R_709_2@^{__CFString=}$kCVImageBufferTransferFunction_SMPTE_240M_1995@^{__CFString=}$kCVImageBufferTransferFunction_SMPTE_C@^{__CFString=}$kCVImageBufferTransferFunction_UseGamma@^{__CFString=}$kCVImageBufferYCbCrMatrixKey@^{__CFString=}$kCVImageBufferYCbCrMatrix_ITU_R_2020$kCVImageBufferYCbCrMatrix_ITU_R_601_4@^{__CFString=}$kCVImageBufferYCbCrMatrix_ITU_R_709_2@^{__CFString=}$kCVImageBufferYCbCrMatrix_SMPTE_240M_1995@^{__CFString=}$kCVIndefiniteTime@{_CVTime=qii}$kCVMetalTextureCacheMaximumTextureAgeKey$kCVOpenGLBufferHeight@^{__CFString=}$kCVOpenGLBufferInternalFormat@^{__CFString=}$kCVOpenGLBufferMaximumMipmapLevel@^{__CFString=}$kCVOpenGLBufferPoolMaximumBufferAgeKey@^{__CFString=}$kCVOpenGLBufferPoolMinimumBufferCountKey@^{__CFString=}$kCVOpenGLBufferTarget@^{__CFString=}$kCVOpenGLBufferWidth@^{__CFString=}$kCVOpenGLTextureCacheChromaSamplingModeAutomatic@^{__CFString=}$kCVOpenGLTextureCacheChromaSamplingModeBestPerformance@^{__CFString=}$kCVOpenGLTextureCacheChromaSamplingModeHighestQuality@^{__CFString=}$kCVOpenGLTextureCacheChromaSamplingModeKey@^{__CFString=}$kCVPixelBufferBytesPerRowAlignmentKey@^{__CFString=}$kCVPixelBufferCGBitmapContextCompatibilityKey@^{__CFString=}$kCVPixelBufferCGImageCompatibilityKey@^{__CFString=}$kCVPixelBufferExtendedPixelsBottomKey@^{__CFString=}$kCVPixelBufferExtendedPixelsLeftKey@^{__CFString=}$kCVPixelBufferExtendedPixelsRightKey@^{__CFString=}$kCVPixelBufferExtendedPixelsTopKey@^{__CFString=}$kCVPixelBufferHeightKey@^{__CFString=}$kCVPixelBufferIOSurfaceCoreAnimationCompatibilityKey@^{__CFString=}$kCVPixelBufferIOSurfaceOpenGLESFBOCompatibilityKey@^{__CFString=}$kCVPixelBufferIOSurfaceOpenGLESTextureCompatibilityKey@^{__CFString=}$kCVPixelBufferIOSurfaceOpenGLFBOCompatibilityKey@^{__CFString=}$kCVPixelBufferIOSurfaceOpenGLTextureCompatibilityKey@^{__CFString=}$kCVPixelBufferIOSurfacePropertiesKey@^{__CFString=}$kCVPixelBufferMemoryAllocatorKey@^{__CFString=}$kCVPixelBufferMetalCompatibilityKey@^{__CFString=}$kCVPixelBufferOpenGLCompatibilityKey@^{__CFString=}$kCVPixelBufferOpenGLESCompatibilityKey@^{__CFString=}$kCVPixelBufferOpenGLTextureCacheCompatibilityKey$kCVPixelBufferPixelFormatTypeKey@^{__CFString=}$kCVPixelBufferPlaneAlignmentKey@^{__CFString=}$kCVPixelBufferPoolAllocationThresholdKey@^{__CFString=}$kCVPixelBufferPoolFlushExcessBuffers$kCVPixelBufferPoolFreeBufferNotification@^{__CFString=}$kCVPixelBufferPoolMaximumBufferAgeKey@^{__CFString=}$kCVPixelBufferPoolMinimumBufferCountKey@^{__CFString=}$kCVPixelBufferWidthKey@^{__CFString=}$kCVPixelFormatBitsPerBlock@^{__CFString=}$kCVPixelFormatBlackBlock@^{__CFString=}$kCVPixelFormatBlockHeight@^{__CFString=}$kCVPixelFormatBlockHorizontalAlignment@^{__CFString=}$kCVPixelFormatBlockVerticalAlignment@^{__CFString=}$kCVPixelFormatBlockWidth@^{__CFString=}$kCVPixelFormatCGBitmapContextCompatibility@^{__CFString=}$kCVPixelFormatCGBitmapInfo@^{__CFString=}$kCVPixelFormatCGImageCompatibility@^{__CFString=}$kCVPixelFormatCodecType@^{__CFString=}$kCVPixelFormatComponentRange$kCVPixelFormatComponentRange_FullRange$kCVPixelFormatComponentRange_VideoRange$kCVPixelFormatComponentRange_WideRange$kCVPixelFormatConstant@^{__CFString=}$kCVPixelFormatContainsAlpha@^{__CFString=}$kCVPixelFormatContainsRGB@^{__CFString=}$kCVPixelFormatContainsYCbCr@^{__CFString=}$kCVPixelFormatFillExtendedPixelsCallback@^{__CFString=}$kCVPixelFormatFourCC@^{__CFString=}$kCVPixelFormatHorizontalSubsampling@^{__CFString=}$kCVPixelFormatName@^{__CFString=}$kCVPixelFormatOpenGLCompatibility@^{__CFString=}$kCVPixelFormatOpenGLESCompatibility@^{__CFString=}$kCVPixelFormatOpenGLFormat@^{__CFString=}$kCVPixelFormatOpenGLInternalFormat@^{__CFString=}$kCVPixelFormatOpenGLType@^{__CFString=}$kCVPixelFormatPlanes@^{__CFString=}$kCVPixelFormatQDCompatibility@^{__CFString=}$kCVPixelFormatVerticalSubsampling@^{__CFString=}$kCVZeroTime@{_CVTime=qii}$''' enums = '''$kCVAttachmentMode_ShouldNotPropagate@0$kCVAttachmentMode_ShouldPropagate@1$kCVPixelBufferLock_ReadOnly@1$kCVPixelBufferPoolFlushExcessBuffers@1$kCVPixelFormatType_128RGBAFloat@1380410945$kCVPixelFormatType_16BE555@16$kCVPixelFormatType_16BE565@1110783541$kCVPixelFormatType_16Gray@1647392359$kCVPixelFormatType_16LE555@1278555445$kCVPixelFormatType_16LE5551@892679473$kCVPixelFormatType_16LE565@1278555701$kCVPixelFormatType_1IndexedGray_WhiteIsZero@33$kCVPixelFormatType_1Monochrome@1$kCVPixelFormatType_24BGR@842285639$kCVPixelFormatType_24RGB@24$kCVPixelFormatType_2Indexed@2$kCVPixelFormatType_2IndexedGray_WhiteIsZero@34$kCVPixelFormatType_30RGB@1378955371$kCVPixelFormatType_32ABGR@1094862674$kCVPixelFormatType_32ARGB@32$kCVPixelFormatType_32AlphaGray@1647522401$kCVPixelFormatType_32BGRA@1111970369$kCVPixelFormatType_32RGBA@1380401729$kCVPixelFormatType_420YpCbCr8BiPlanarFullRange@875704422$kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange@875704438$kCVPixelFormatType_420YpCbCr8Planar@2033463856$kCVPixelFormatType_420YpCbCr8PlanarFullRange@1714696752$kCVPixelFormatType_422YpCbCr10@1983000880$kCVPixelFormatType_422YpCbCr16@1983000886$kCVPixelFormatType_422YpCbCr8@846624121$kCVPixelFormatType_422YpCbCr8FullRange@2037741158$kCVPixelFormatType_422YpCbCr8_yuvs@2037741171$kCVPixelFormatType_422YpCbCr_4A_8BiPlanar@1630697081$kCVPixelFormatType_4444AYpCbCr16@2033463606$kCVPixelFormatType_4444AYpCbCr8@2033463352$kCVPixelFormatType_4444YpCbCrA8@1983131704$kCVPixelFormatType_4444YpCbCrA8R@1916022840$kCVPixelFormatType_444YpCbCr10@1983131952$kCVPixelFormatType_444YpCbCr8@1983066168$kCVPixelFormatType_48RGB@1647589490$kCVPixelFormatType_4Indexed@4$kCVPixelFormatType_4IndexedGray_WhiteIsZero@36$kCVPixelFormatType_64ARGB@1647719521$kCVPixelFormatType_64RGBAHalf@1380411457$kCVPixelFormatType_8Indexed@8$kCVPixelFormatType_8IndexedGray_WhiteIsZero@40$kCVPixelFormatType_OneComponent16Half@1278226536$kCVPixelFormatType_OneComponent32Float@1278226534$kCVPixelFormatType_OneComponent8@1278226488$kCVPixelFormatType_TwoComponent16Half@843264104$kCVPixelFormatType_TwoComponent32Float@843264102$kCVPixelFormatType_TwoComponent8@843264056$kCVReturnAllocationFailed@-6662$kCVReturnDisplayLinkAlreadyRunning@-6671$kCVReturnDisplayLinkCallbacksNotSet@-6673$kCVReturnDisplayLinkNotRunning@-6672$kCVReturnError@-6660$kCVReturnFirst@-6660$kCVReturnInvalidArgument@-6661$kCVReturnInvalidDisplay@-6670$kCVReturnInvalidPixelBufferAttributes@-6682$kCVReturnInvalidPixelFormat@-6680$kCVReturnInvalidPoolAttributes@-6691$kCVReturnInvalidSize@-6681$kCVReturnLast@-6699$kCVReturnPixelBufferNotMetalCompatible@-6684$kCVReturnPixelBufferNotOpenGLCompatible@-6683$kCVReturnPoolAllocationFailed@-6690$kCVReturnSuccess@0$kCVReturnUnsupported@-6663$kCVReturnWouldExceedAllocationThreshold@-6689$kCVSMPTETimeRunning@2$kCVSMPTETimeType24@0$kCVSMPTETimeType25@1$kCVSMPTETimeType2997@4$kCVSMPTETimeType2997Drop@5$kCVSMPTETimeType30@3$kCVSMPTETimeType30Drop@2$kCVSMPTETimeType5994@7$kCVSMPTETimeType60@6$kCVSMPTETimeValid@1$kCVTimeIsIndefinite@1$kCVTimeStampBottomField@131072$kCVTimeStampHostTimeValid@2$kCVTimeStampIsInterlaced@196608$kCVTimeStampRateScalarValid@16$kCVTimeStampSMPTETimeValid@4$kCVTimeStampTopField@65536$kCVTimeStampVideoHostTimeValid@3$kCVTimeStampVideoRefreshPeriodValid@8$kCVTimeStampVideoTimeValid@1$''' misc.update({}) functions={'CVImageBufferGetEncodedSize': (sel32or64(b'{CGSize=ff}^{__CVBuffer=}', b'{CGSize=dd}^{__CVBuffer=}'),), 'CVOpenGLTextureRelease': (b'v^{__CVBuffer=}',), 'CVPixelBufferPoolRelease': (b'v^{__CVPixelBufferPool=}',), 'CVPixelBufferPoolGetTypeID': (sel32or64(b'L', b'Q'),), 'CVPixelBufferCreate': (sel32or64(b'i^{__CFAllocator=}LLL^{__CFDictionary=}^^{__CVBuffer=}', b'i^{__CFAllocator=}QQI^{__CFDictionary=}^^{__CVBuffer=}'), '', {'retval': {'already_cfretained': True}}), 'CVOpenGLBufferPoolGetTypeID': (sel32or64(b'L', b'Q'),), 'CVPixelBufferFillExtendedPixels': (b'i^{__CVBuffer=}',), 'CVOpenGLTextureCacheRetain': (b'^{__CVOpenGLTextureCache=}^{__CVOpenGLTextureCache=}',), 'CVOpenGLBufferPoolCreateOpenGLBuffer': (b'i^{__CFAllocator=}^{__CVOpenGLBufferPool=}^^{__CVBuffer=}', '', {'retval': {'already_cfretained': True}, 'arguments': {2: {'already_cfretained': True, 'type_modifier': 'o'}}}), 'CVDisplayLinkSetCurrentCGDisplay': (b'i^{__CVDisplayLink=}I',), 'CVBufferSetAttachment': (b'v^{__CVBuffer=}^{__CFString=}@I',), 'CVGetCurrentHostTime': (b'Q', '', {'variadic': False}), 'CVPixelBufferPoolCreate': (b'i^{__CFAllocator=}^{__CFDictionary=}^{__CFDictionary=}^^{__CVPixelBufferPool=}', '', {'retval': {'already_cfretained': True}, 'arguments': {3: {'already_cfretained': True, 'type_modifier': 'o'}}}), 'CVPixelBufferGetHeightOfPlane': (sel32or64(b'L^{__CVBuffer=}L', b'Q^{__CVBuffer=}Q'),), 'CVBufferRetain': (b'^{__CVBuffer=}^{__CVBuffer=}',), 'CVDisplayLinkTranslateTime': (sel32or64(b'i^{__CVDisplayLink=}^{_CVTimeStamp=IiqQdq{CVSMPTETime=ssLLLssss}QQ}^{_CVTimeStamp=IiqQdq{CVSMPTETime=ssLLLssss}QQ}', b'i^{__CVDisplayLink=}^{_CVTimeStamp=IiqQdq{CVSMPTETime=ssIIIssss}QQ}^{_CVTimeStamp=IiqQdq{CVSMPTETime=ssIIIssss}QQ}'), '', {'arguments': {1: {'type_modifier': 'n'}, 2: {'type_modifier': 'o'}}}), 'CVPixelBufferRetain': (b'^{__CVBuffer=}^{__CVBuffer=}',), 'CVPixelBufferGetPlaneCount': (sel32or64(b'L^{__CVBuffer=}', b'Q^{__CVBuffer=}'),), 'CVOpenGLTextureCacheRelease': (b'v^{__CVOpenGLTextureCache=}',), 'CVPixelBufferGetBaseAddress': (b'^v^{__CVBuffer=}', '', {'retval': {'c_array_of_variable_length': True}}), 'CVOpenGLBufferPoolRelease': (b'v^{__CVOpenGLBufferPool=}',), 'CVPixelBufferLockBaseAddress': (b'i^{__CVBuffer=}Q',), 'CVOpenGLTextureCacheGetTypeID': (sel32or64(b'L', b'Q'),), 'CVPixelBufferUnlockBaseAddress': (b'i^{__CVBuffer=}Q',), 'CVMetalTextureCacheCreateTextureFromImage': (b'i@@^{__CVBuffer=}@QLLL^^{__CVBuffer=}', '', {'arguments': {8: {'type_modifier': 'o'}}}), 'CVOpenGLTextureIsFlipped': (b'Z^{__CVBuffer=}',), 'CVMetalTextureCacheFlush': (b'v@Q',), 'CVPixelBufferGetTypeID': (sel32or64(b'L', b'Q'),), 'CVDisplayLinkGetActualOutputVideoRefreshPeriod': (b'd^{__CVDisplayLink=}',), 'CVPixelBufferGetWidth': (sel32or64(b'L^{__CVBuffer=}', b'Q^{__CVBuffer=}'),), 'CVMetalTextureCacheGetTypeID': (b'L',), 'CVDisplayLinkCreateWithCGDisplay': (b'iI^^{__CVDisplayLink=}', '', {'retval': {'already_cfretained': True}, 'arguments': {1: {'already_cfretained': True, 'type_modifier': 'o'}}}), 'CVBufferRelease': (b'v^{__CVBuffer=}',), 'CVDisplayLinkStart': (b'i^{__CVDisplayLink=}',), 'CVDisplayLinkGetCurrentTime': (sel32or64(b'i^{__CVDisplayLink=}^{_CVTimeStamp=IiqQdq{CVSMPTETime=ssLLLssss}QQ}', b'i^{__CVDisplayLink=}^{_CVTimeStamp=IiqQdq{CVSMPTETime=ssIIIssss}QQ}'), '', {'arguments': {1: {'type_modifier': 'o'}}}), 'CVPixelFormatDescriptionArrayCreateWithAllPixelFormatTypes': (b'^{__CFArray=}^{__CFAllocator=}', '', {'retval': {'already_cfretained': True}}), 'CVPixelBufferPoolGetAttributes': (b'^{__CFDictionary=}^{__CVPixelBufferPool=}',), 'CVBufferGetAttachments': (b'^{__CFDictionary=}^{__CVBuffer=}I',), 'CVPixelFormatDescriptionRegisterDescriptionWithPixelFormatType': (sel32or64(b'v^{__CFDictionary=}L', b'v^{__CFDictionary=}I'),), 'CVOpenGLBufferPoolCreate': (b'i^{__CFAllocator=}^{__CFDictionary=}^{__CFDictionary=}^^{__CVOpenGLBufferPool=}', '', {'retval': {'already_cfretained': True}, 'arguments': {3: {'already_cfretained': True, 'type_modifier': 'o'}}}), 'CVDisplayLinkRetain': (b'^{__CVDisplayLink=}^{__CVDisplayLink=}',), 'CVPixelBufferCreateWithIOSurface': (b'i^{__CFAllocator=}^{__IOSurface=}^{__CFDictionary=}^^{__CVBuffer=}', '', {'retval': {'already_cfretained': True}, 'arguments': {3: {'already_cfretained': True, 'type_modifier': 'o'}}}), 'CVDisplayLinkCreateWithOpenGLDisplayMask': (b'iI^^{__CVDisplayLink=}', '', {'retval': {'already_cfretained': True}, 'arguments': {1: {'already_cfretained': True, 'type_modifier': 'o'}}}), 'CVDisplayLinkSetOutputHandler': (b'i^{__CVDisplayLink=}@?', '', {'arguments': {1: {'callable': {'retval': {'type': b'i'}, 'arguments': {0: {'type': '^v'}, 1: {'type': '^{__CVDisplayLink=}'}, 2: {'type': '^{_CVTimeStamp=IiqQdq{CVSMPTETime=ssIIIssss}QQ}', 'type_modifier': 'n'}, 3: {'type': '^{_CVTimeStamp=IiqQdq{CVSMPTETime=ssIIIssss}QQ}', 'type_modifier': 'n'}, 4: {'type': 'Q'}, 5: {'type': 'o^Q'}}}}}}), 'CVOpenGLBufferCreate': (sel32or64(b'i^{__CFAllocator=}LL^{__CFDictionary=}^^{__CVBuffer=}', b'i^{__CFAllocator=}QQ^{__CFDictionary=}^^{__CVBuffer=}'), '', {'retval': {'already_cfretained': True}, 'arguments': {4: {'already_cfretained': True, 'type_modifier': 'o'}}}), 'CVPixelBufferPoolCreatePixelBufferWithAuxAttributes': (b'i^{__CFAllocator=}^{__CVPixelBufferPool=}^{__CFDictionary=}^^{__CVBuffer=}', '', {'retval': {'already_cfretained': True}, 'arguments': {3: {'already_cfretained': True, 'type_modifier': 'o'}}}), 'CVOpenGLTextureCacheFlush': (b'v^{__CVOpenGLTextureCache=}Q',), 'CVDisplayLinkCreateWithActiveCGDisplays': (b'i^^{__CVDisplayLink=}', '', {'retval': {'already_cfretained': True}, 'arguments': {0: {'already_cfretained': True, 'type_modifier': 'o'}}}), 'CVDisplayLinkGetNominalOutputVideoRefreshPeriod': (b'{_CVTime=qii}^{__CVDisplayLink=}',), 'CVPixelBufferCreateResolvedAttributesDictionary': (b'i^{__CFAllocator=}^{__CFArray=}^^{__CFDictionary=}', '', {'retval': {'already_cfretained': True}, 'arguments': {2: {'already_cfretained': True, 'type_modifier': 'o'}}}), 'CVDisplayLinkSetOutputCallback': (b'i^{__CVDisplayLink=}^?^v', '', {'arguments': {1: {'callable': {'retval': {'type': b'i'}, 'arguments': {0: {'type': b'^{__CVDisplayLink=}'}, 1: {'type': b'^{_CVTimeStamp=IiqQdq{CVSMPTETime=ssIIIssss}QQ}', 'type_modifier': 'n'}, 2: {'type': b'^{_CVTimeStamp=IiqQdq{CVSMPTETime=ssIIIssss}QQ}', 'type_modifier': 'N'}, 3: {'type': b'Q'}, 4: {'type': b'^Q', 'type_modifier': 'o'}, 5: {'type': b'^v'}}}}}}), 'CVOpenGLTextureGetName': (b'I^{__CVBuffer=}',), 'CVOpenGLBufferRelease': (b'v^{__CVBuffer=}',), 'CVOpenGLTextureRetain': (b'^{__CVBuffer=}^{__CVBuffer=}',), 'CVOpenGLBufferPoolGetAttributes': (b'^{__CFDictionary=}^{__CVOpenGLBufferPool=}',), 'CVPixelBufferGetWidthOfPlane': (sel32or64(b'L^{__CVBuffer=}L', b'Q^{__CVBuffer=}Q'),), 'CVBufferPropagateAttachments': (b'v^{__CVBuffer=}^{__CVBuffer=}',), 'CVPixelBufferPoolRetain': (b'^{__CVPixelBufferPool=}^{__CVPixelBufferPool=}',), 'CVPixelBufferGetHeight': (sel32or64(b'L^{__CVBuffer=}', b'Q^{__CVBuffer=}'),), 'CVPixelBufferGetExtendedPixels': (sel32or64(b'v^{__CVBuffer=}^L^L^L^L', b'v^{__CVBuffer=}^Q^Q^Q^Q'), '', {'arguments': {1: {'type_modifier': 'o'}, 2: {'type_modifier': 'o'}, 3: {'type_modifier': 'o'}, 4: {'type_modifier': 'o'}}}), 'CVOpenGLBufferGetTypeID': (sel32or64(b'L', b'Q'),), 'CVDisplayLinkRelease': (b'v^{__CVDisplayLink=}',), 'CVBufferGetAttachment': (b'@^{__CVBuffer=}^{__CFString=}^I', '', {'arguments': {2: {'type_modifier': 'o'}}}), 'CVDisplayLinkStop': (b'i^{__CVDisplayLink=}',), 'CVPixelFormatDescriptionCreateWithPixelFormatType': (sel32or64(b'^{__CFDictionary=}^{__CFAllocator=}L', b'^{__CFDictionary=}^{__CFAllocator=}I'), '', {'retval': {'already_cfretained': True}}), 'CVMetalTextureGetCleanTexCoords': (b'v^{__CVBuffer=}^f^f^f^f', '', {'arguments': {1: {'c_array_of_fixed_length': 2, 'type_modifier': 'o'}, 2: {'c_array_of_fixed_length': 2, 'type_modifier': 'o'}, 3: {'c_array_of_fixed_length': 2, 'type_modifier': 'o'}, 4: {'c_array_of_fixed_length': 2, 'type_modifier': 'o'}}}), 'CVPixelBufferGetIOSurface': (b'^{__IOSurface=}^{__CVBuffer=}',), 'CVOpenGLTextureCacheCreateTextureFromImage': (b'i^{__CFAllocator=}^{__CVOpenGLTextureCache=}^{__CVBuffer=}^{__CFDictionary=}^^{__CVBuffer=}', '', {'retval': {'already_cfretained': True}}), 'CVDisplayLinkCreateWithCGDisplays': (sel32or64(b'i^Il^^{__CVDisplayLink=}', b'i^Iq^^{__CVDisplayLink=}'), '', {'retval': {'already_cfretained': True}, 'arguments': {0: {'c_array_length_in_arg': 1, 'type_modifier': 'n'}, 2: {'already_cfretained': True, 'type_modifier': 'o'}}}), 'CVPixelBufferPoolGetPixelBufferAttributes': (b'^{__CFDictionary=}^{__CVPixelBufferPool=}',), 'CVOpenGLTextureGetTypeID': (sel32or64(b'L', b'Q'),), 'CVImageBufferIsFlipped': (b'Z^{__CVBuffer=}',), 'CVMetalTextureGetTexture': (b'@^{__CVBuffer=}',), 'CVPixelBufferIsPlanar': (b'Z^{__CVBuffer=}',), 'CVBufferRemoveAllAttachments': (b'v^{__CVBuffer=}',), 'CVPixelBufferCreateWithBytes': (sel32or64(b'i^{__CFAllocator=}LLL^vL^?^v^{__CFDictionary=}^^{__CVBuffer=}', b'i^{__CFAllocator=}QQI^vQ^?^v^{__CFDictionary=}^^{__CVBuffer=}'), '', {'retval': {'already_cfretained': True}, 'arguments': {6: {'callable': {'retval': {'type': b'v'}, 'arguments': {0: {'type': b'^v'}, 1: {'type': b'^v'}}}}}}), 'CVMetalTextureGetTypeID': (b'L',), 'CVOpenGLBufferPoolRetain': (b'^{__CVOpenGLBufferPool=}^{__CVOpenGLBufferPool=}',), 'CVPixelBufferCreateWithPlanarBytes': (sel32or64(b'i^{__CFAllocator=}LLL^vLL^^v^L^L^L^?^v^{__CFDictionary=}^^{__CVBuffer=}', b'i^{__CFAllocator=}QQI^vQQ^^v^Q^Q^Q^?^v^{__CFDictionary=}^^{__CVBuffer=}'), '', {'retval': {'already_cfretained': True}, 'arguments': {11: {'callable': {'retval': {'type': b'v'}, 'arguments': {0: {'type': b'^v'}, 1: {'type': b'^v'}, 2: {'type': b'Q'}, 3: {'type': b'Q'}, 4: {'type': b'^^v'}}}}}}), 'CVImageBufferGetCleanRect': (sel32or64(b'{CGRect={CGPoint=ff}{CGSize=ff}}^{__CVBuffer=}', b'{CGRect={CGPoint=dd}{CGSize=dd}}^{__CVBuffer=}'),), 'CVImageBufferCreateColorSpaceFromAttachments': (b'^{CGColorSpace=}^{__CFDictionary=}', '', {'retval': {'already_cfretained': True}}), 'CVPixelBufferGetBytesPerRowOfPlane': (sel32or64(b'L^{__CVBuffer=}L', b'Q^{__CVBuffer=}Q'),), 'CVDisplayLinkGetTypeID': (sel32or64(b'L', b'Q'),), 'CVImageBufferGetDisplaySize': (sel32or64(b'{CGSize=ff}^{__CVBuffer=}', b'{CGSize=dd}^{__CVBuffer=}'),), 'CVPixelBufferGetDataSize': (sel32or64(b'L^{__CVBuffer=}', b'Q^{__CVBuffer=}'),), 'CVOpenGLBufferPoolGetOpenGLBufferAttributes': (b'^{__CFDictionary=}^{__CVOpenGLBufferPool=}',), 'CVOpenGLBufferAttach': (b'i^{__CVBuffer=}^{_CGLContextObject=}Iii',), 'CVPixelBufferGetBaseAddressOfPlane': (sel32or64(b'^v^{__CVBuffer=}L', b'^v^{__CVBuffer=}Q'), '', {'retval': {'c_array_of_variable_length': True}}), 'CVDisplayLinkIsRunning': (b'Z^{__CVDisplayLink=}',), 'CVPixelBufferGetPixelFormatType': (sel32or64(b'L^{__CVBuffer=}', b'I^{__CVBuffer=}'),), 'CVBufferRemoveAttachment': (b'v^{__CVBuffer=}^{__CFString=}',), 'CVOpenGLBufferGetAttributes': (b'^{__CFDictionary=}^{__CVBuffer=}',), 'CVDisplayLinkGetOutputVideoLatency': (b'{_CVTime=qii}^{__CVDisplayLink=}',), 'CVPixelBufferGetBytesPerRow': (sel32or64(b'L^{__CVBuffer=}', b'Q^{__CVBuffer=}'),), 'CVMetalTextureCacheCreate': (b'i@@@@^{__CVBuffer=}',), 'CVPixelBufferPoolCreatePixelBuffer': (b'i^{__CFAllocator=}^{__CVPixelBufferPool=}^^{__CVBuffer=}', '', {'retval': {'already_cfretained': True}, 'arguments': {2: {'already_cfretained': True, 'type_modifier': 'o'}}}), 'CVImageBufferGetColorSpace': (b'^{CGColorSpace=}^{__CVBuffer=}',), 'CVDisplayLinkGetCurrentCGDisplay': (b'I^{__CVDisplayLink=}',), 'CVDisplayLinkSetCurrentCGDisplayFromOpenGLContext': (b'i^{__CVDisplayLink=}^{_CGLContextObject=}^{_CGLPixelFormatObject=}',), 'CVPixelBufferRelease': (b'v^{__CVBuffer=}',), 'CVBufferSetAttachments': (b'v^{__CVBuffer=}^{__CFDictionary=}I',), 'CVOpenGLTextureGetTarget': (b'I^{__CVBuffer=}',), 'CVGetHostClockFrequency': (b'd', '', {'variadic': False}), 'CVGetHostClockMinimumTimeDelta': (b'I', '', {'variadic': False}), 'CVOpenGLBufferRetain': (b'^{__CVBuffer=}^{__CVBuffer=}',), 'CVMetalTextureIsFlipped': (b'Z^{__CVBuffer=}',), 'CVOpenGLTextureCacheCreate': (b'i^{__CFAllocator=}^{__CFDictionary=}^{_CGLContextObject=}^{_CGLPixelFormatObject=}^{__CFDictionary=}^^{__CVOpenGLTextureCache=}', '', {'retval': {'already_cfretained': True}}), 'CVPixelBufferPoolFlush': (b'v^{__CVPixelBufferPool=}L',), 'CVOpenGLTextureGetCleanTexCoords': (b'v^{__CVBuffer=}[2f][2f][2f][2f]',)} aliases = {'CV_INLINE': 'CF_INLINE', 'CVImageBufferRef': 'CVBufferRef', 'kCVReturnError': 'kCVReturnFirst'} cftypes=[('CVBufferRef', b'^{__CVBuffer=}', 'CVBufferGetTypeID', None), ('CVDisplayLinkRef', b'^{__CVDisplayLink=}', 'CVDisplayLinkGetTypeID', None), ('CVOpenGLBufferPoolRef', b'^{__CVOpenGLBufferPool=}', 'CVOpenGLBufferPoolGetTypeID', None), ('CVOpenGLTextureCacheRef', b'^{__CVOpenGLTextureCache=}', 'CVOpenGLTextureCacheGetTypeID', None), ('CVPixelBufferPoolRef', b'^{__CVPixelBufferPool=}', 'CVPixelBufferPoolGetTypeID', None), ('CVOpenGLBufferRef', b'^{__CVOpenGLBuffer=}', 'CVOpenGLBufferGetTypeID', None), ('CVPixelBufferRef', b'^{__CVPixelBuffer=}', 'CVPixelBufferGetTypeID', None), ('CVOpenGLTextureRef', b'^{__CVOpenGLTexture=}', 'CVOpenGLTextureGetTypeID', None)] expressions = {} # END OF FILE
# Last update: Sun Jul 1 12:22:14 2018 import objc, sys if sys.maxsize > 2 ** 32: def sel32or64(a, b): return b else: def sel32or64(a, b): return a if sys.byteorder == 'little': def littleOrBig(a, b): return a else: def littleOrBig(a, b): return b misc = { } misc.update({'DRFileForkSizeInfo': objc.createStructType('DRFileForkSizeInfo', sel32or64(b'{DRFileForkSizeInfo=LLQ}', b'{DRFileForkSizeInfo=IIQ}'), ['fork', 'query', 'size']), 'DRFileProductionInfo': objc.createStructType('DRFileProductionInfo', sel32or64(b'{DRFileProductionInfo=Q^vLLLL}', b'{DRFileProductionInfo=Q^vIIII}'), ['requestedAddress', 'buffer', 'reqCount', 'actCount', 'blockSize', 'fork']), 'DRTrackProductionInfo': objc.createStructType('DRTrackProductionInfo', sel32or64(b'{DRTrackProductionInfo=^vLLLLQ}', b'{DRTrackProductionInfo=^vIIIIQ}'), ['buffer', 'reqCount', 'actCount', 'flags', 'blockSize', 'requestedAddress'])}) constants = '''$DRAbstractFile$DRAccessDate$DRAllFilesystems$DRApplicationIdentifier$DRAttributeModificationDate$DRAudioFourChannelKey$DRAudioPreEmphasisKey$DRBackupDate$DRBibliographicFile$DRBlockSize$DRBlockSizeKey$DRBlockTypeKey$DRBurnAppendableKey$DRBurnCompletionActionEject$DRBurnCompletionActionKey$DRBurnCompletionActionMount$DRBurnDoubleLayerL0DataZoneBlocksKey$DRBurnFailureActionEject$DRBurnFailureActionKey$DRBurnFailureActionNone$DRBurnOverwriteDiscKey$DRBurnRequestedSpeedKey$DRBurnStatusChangedNotification$DRBurnStrategyBDDAO$DRBurnStrategyCDSAO$DRBurnStrategyCDTAO$DRBurnStrategyDVDDAO$DRBurnStrategyIsRequiredKey$DRBurnStrategyKey$DRBurnTestingKey$DRBurnUnderrunProtectionKey$DRBurnVerifyDiscKey$DRCDTextArrangerKey$DRCDTextCharacterCodeKey$DRCDTextClosedKey$DRCDTextComposerKey$DRCDTextCopyrightAssertedForNamesKey$DRCDTextCopyrightAssertedForSpecialMessagesKey$DRCDTextCopyrightAssertedForTitlesKey$DRCDTextDiscIdentKey$DRCDTextGenreCodeKey$DRCDTextGenreKey$DRCDTextKey$DRCDTextLanguageKey$DRCDTextMCNISRCKey$DRCDTextNSStringEncodingKey$DRCDTextPerformerKey$DRCDTextSizeKey$DRCDTextSongwriterKey$DRCDTextSpecialMessageKey$DRCDTextTOC2Key$DRCDTextTOCKey$DRCDTextTitleKey$DRContentModificationDate$DRCopyrightFile$DRCreationDate$DRDVDCopyrightInfoKey$DRDVDTimestampKey$DRDataFormKey$DRDataPreparer$DRDefaultDate$DRDeviceAppearedNotification$DRDeviceBurnSpeedBD1x@f$DRDeviceBurnSpeedCD1x@f$DRDeviceBurnSpeedDVD1x@f$DRDeviceBurnSpeedHDDVD1x@f$DRDeviceBurnSpeedMax@f$DRDeviceBurnSpeedsKey$DRDeviceCanTestWriteCDKey$DRDeviceCanTestWriteDVDKey$DRDeviceCanUnderrunProtectCDKey$DRDeviceCanUnderrunProtectDVDKey$DRDeviceCanWriteBDKey$DRDeviceCanWriteBDREKey$DRDeviceCanWriteBDRKey$DRDeviceCanWriteCDKey$DRDeviceCanWriteCDRKey$DRDeviceCanWriteCDRWKey$DRDeviceCanWriteCDRawKey$DRDeviceCanWriteCDSAOKey$DRDeviceCanWriteCDTAOKey$DRDeviceCanWriteCDTextKey$DRDeviceCanWriteDVDDAOKey$DRDeviceCanWriteDVDKey$DRDeviceCanWriteDVDPlusRDoubleLayerKey$DRDeviceCanWriteDVDPlusRKey$DRDeviceCanWriteDVDPlusRWDoubleLayerKey$DRDeviceCanWriteDVDPlusRWKey$DRDeviceCanWriteDVDRAMKey$DRDeviceCanWriteDVDRDualLayerKey$DRDeviceCanWriteDVDRKey$DRDeviceCanWriteDVDRWDualLayerKey$DRDeviceCanWriteDVDRWKey$DRDeviceCanWriteHDDVDKey$DRDeviceCanWriteHDDVDRAMKey$DRDeviceCanWriteHDDVDRDualLayerKey$DRDeviceCanWriteHDDVDRKey$DRDeviceCanWriteHDDVDRWDualLayerKey$DRDeviceCanWriteHDDVDRWKey$DRDeviceCanWriteISRCKey$DRDeviceCanWriteIndexPointsKey$DRDeviceCanWriteKey$DRDeviceCurrentWriteSpeedKey$DRDeviceDisappearedNotification$DRDeviceFirmwareRevisionKey$DRDeviceIORegistryEntryPathKey$DRDeviceIsBusyKey$DRDeviceIsTrayOpenKey$DRDeviceLoadingMechanismCanEjectKey$DRDeviceLoadingMechanismCanInjectKey$DRDeviceLoadingMechanismCanOpenKey$DRDeviceMaximumWriteSpeedKey$DRDeviceMediaBSDNameKey$DRDeviceMediaBlocksFreeKey$DRDeviceMediaBlocksOverwritableKey$DRDeviceMediaBlocksUsedKey$DRDeviceMediaClassBD$DRDeviceMediaClassCD$DRDeviceMediaClassDVD$DRDeviceMediaClassHDDVD$DRDeviceMediaClassKey$DRDeviceMediaClassUnknown$DRDeviceMediaDoubleLayerL0DataZoneBlocksKey$DRDeviceMediaFreeSpaceKey$DRDeviceMediaInfoKey$DRDeviceMediaIsAppendableKey$DRDeviceMediaIsBlankKey$DRDeviceMediaIsErasableKey$DRDeviceMediaIsOverwritableKey$DRDeviceMediaIsReservedKey$DRDeviceMediaOverwritableSpaceKey$DRDeviceMediaSessionCountKey$DRDeviceMediaStateInTransition$DRDeviceMediaStateKey$DRDeviceMediaStateMediaPresent$DRDeviceMediaStateNone$DRDeviceMediaTrackCountKey$DRDeviceMediaTypeBDR$DRDeviceMediaTypeBDRE$DRDeviceMediaTypeBDROM$DRDeviceMediaTypeCDR$DRDeviceMediaTypeCDROM$DRDeviceMediaTypeCDRW$DRDeviceMediaTypeDVDPlusR$DRDeviceMediaTypeDVDPlusRDoubleLayer$DRDeviceMediaTypeDVDPlusRW$DRDeviceMediaTypeDVDPlusRWDoubleLayer$DRDeviceMediaTypeDVDR$DRDeviceMediaTypeDVDRAM$DRDeviceMediaTypeDVDRDualLayer$DRDeviceMediaTypeDVDROM$DRDeviceMediaTypeDVDRW$DRDeviceMediaTypeDVDRWDualLayer$DRDeviceMediaTypeHDDVDR$DRDeviceMediaTypeHDDVDRAM$DRDeviceMediaTypeHDDVDRDualLayer$DRDeviceMediaTypeHDDVDROM$DRDeviceMediaTypeHDDVDRW$DRDeviceMediaTypeHDDVDRWDualLayer$DRDeviceMediaTypeKey$DRDeviceMediaTypeUnknown$DRDeviceMediaUsedSpaceKey$DRDevicePhysicalInterconnectATAPI$DRDevicePhysicalInterconnectFibreChannel$DRDevicePhysicalInterconnectFireWire$DRDevicePhysicalInterconnectKey$DRDevicePhysicalInterconnectLocationExternal$DRDevicePhysicalInterconnectLocationInternal$DRDevicePhysicalInterconnectLocationKey$DRDevicePhysicalInterconnectLocationUnknown$DRDevicePhysicalInterconnectSCSI$DRDevicePhysicalInterconnectUSB$DRDeviceProductNameKey$DRDeviceStatusChangedNotification$DRDeviceSupportLevelAppleShipping$DRDeviceSupportLevelAppleSupported$DRDeviceSupportLevelKey$DRDeviceSupportLevelNone$DRDeviceSupportLevelUnsupported$DRDeviceSupportLevelVendorSupported$DRDeviceTrackInfoKey$DRDeviceTrackRefsKey$DRDeviceVendorNameKey$DRDeviceWriteBufferSizeKey$DRDeviceWriteCapabilitiesKey$DREffectiveDate$DREraseStatusChangedNotification$DREraseTypeComplete$DREraseTypeKey$DREraseTypeQuick$DRErrorStatusAdditionalSenseStringKey$DRErrorStatusErrorInfoStringKey$DRErrorStatusErrorKey$DRErrorStatusErrorStringKey$DRErrorStatusKey$DRErrorStatusSenseCodeStringKey$DRErrorStatusSenseKey$DRExpirationDate$DRFreeBlocksKey$DRHFSPlus$DRHFSPlusCatalogNodeID$DRHFSPlusTextEncodingHint$DRISO9660$DRISO9660LevelOne$DRISO9660LevelTwo$DRISO9660VersionNumber$DRISOLevel$DRISOMacExtensions$DRISORockRidgeExtensions$DRIndexPointsKey$DRInvisible$DRJoliet$DRLinkTypeFinderAlias$DRLinkTypeHardLink$DRLinkTypeSymbolicLink$DRMacExtendedFinderFlags$DRMacFileCreator$DRMacFileType$DRMacFinderFlags$DRMacFinderHideExtension$DRMacIconLocation$DRMacScrollPosition$DRMacWindowBounds$DRMacWindowView$DRMaxBurnSpeedKey$DRMediaCatalogNumberKey$DRNextWritableAddressKey$DRPosixFileMode$DRPosixGID$DRPosixUID$DRPreGapIsRequiredKey$DRPreGapLengthKey$DRPublisher$DRRecordingDate$DRSCMSCopyrightFree$DRSCMSCopyrightProtectedCopy$DRSCMSCopyrightProtectedOriginal$DRSerialCopyManagementStateKey$DRSessionFormatKey$DRSessionNumberKey$DRStatusCurrentSessionKey$DRStatusCurrentSpeedKey$DRStatusCurrentTrackKey$DRStatusEraseTypeKey$DRStatusPercentCompleteKey$DRStatusProgressCurrentKPS$DRStatusProgressCurrentXFactor$DRStatusProgressInfoKey$DRStatusStateDone$DRStatusStateErasing$DRStatusStateFailed$DRStatusStateFinishing$DRStatusStateKey$DRStatusStateNone$DRStatusStatePreparing$DRStatusStateSessionClose$DRStatusStateSessionOpen$DRStatusStateTrackClose$DRStatusStateTrackOpen$DRStatusStateTrackWrite$DRStatusStateVerifying$DRStatusTotalSessionsKey$DRStatusTotalTracksKey$DRSubchannelDataFormKey$DRSubchannelDataFormNone$DRSubchannelDataFormPack$DRSubchannelDataFormRaw$DRSuppressMacSpecificFiles$DRSynchronousBehaviorKey$DRSystemIdentifier$DRTrackISRCKey$DRTrackIsEmptyKey$DRTrackLengthKey$DRTrackModeKey$DRTrackNumberKey$DRTrackPacketSizeKey$DRTrackPacketTypeFixed$DRTrackPacketTypeKey$DRTrackPacketTypeVariable$DRTrackStartAddressKey$DRTrackTypeClosed$DRTrackTypeIncomplete$DRTrackTypeInvisible$DRTrackTypeKey$DRTrackTypeReserved$DRUDF$DRUDFApplicationIdentifierSuffix$DRUDFExtendedFilePermissions$DRUDFInterchangeLevel$DRUDFMaxInterchangeLevel$DRUDFMaxVolumeSequenceNumber$DRUDFPrimaryVolumeDescriptorNumber$DRUDFRealTimeFile$DRUDFVersion102$DRUDFVersion150$DRUDFVolumeSequenceNumber$DRUDFVolumeSetIdentifier$DRUDFVolumeSetImplementationUse$DRUDFVolumeSetTimestamp$DRUDFWriteVersion$DRVerificationTypeChecksum$DRVerificationTypeKey$DRVerificationTypeNone$DRVerificationTypeProduceAgain$DRVerificationTypeReceiveData$DRVolumeCheckedDate$DRVolumeCreationDate$DRVolumeEffectiveDate$DRVolumeExpirationDate$DRVolumeModificationDate$DRVolumeSet$kDRAbstractFile@^{__CFString=}$kDRAccessDate@^{__CFString=}$kDRAllFilesystems@^{__CFString=}$kDRApplicationIdentifier@^{__CFString=}$kDRAttributeModificationDate@^{__CFString=}$kDRAudioFourChannelKey@^{__CFString=}$kDRAudioPreEmphasisKey@^{__CFString=}$kDRBackupDate@^{__CFString=}$kDRBibliographicFile@^{__CFString=}$kDRBlockSize@^{__CFString=}$kDRBlockSizeKey@^{__CFString=}$kDRBlockTypeKey@^{__CFString=}$kDRBufferZone1DataKey@^{__CFString=}$kDRBurnAppendableKey@^{__CFString=}$kDRBurnCompletionActionEject@^{__CFString=}$kDRBurnCompletionActionKey@^{__CFString=}$kDRBurnCompletionActionMount@^{__CFString=}$kDRBurnDoubleLayerL0DataZoneBlocksKey@^{__CFString=}$kDRBurnFailureActionEject@^{__CFString=}$kDRBurnFailureActionKey@^{__CFString=}$kDRBurnFailureActionNone@^{__CFString=}$kDRBurnKey@^{__CFString=}$kDRBurnOverwriteDiscKey@^{__CFString=}$kDRBurnRequestedSpeedKey@^{__CFString=}$kDRBurnStatusChangedNotification@^{__CFString=}$kDRBurnStrategyBDDAO@^{__CFString=}$kDRBurnStrategyCDSAO@^{__CFString=}$kDRBurnStrategyCDTAO@^{__CFString=}$kDRBurnStrategyDVDDAO@^{__CFString=}$kDRBurnStrategyIsRequiredKey@^{__CFString=}$kDRBurnStrategyKey@^{__CFString=}$kDRBurnTestingKey@^{__CFString=}$kDRBurnUnderrunProtectionKey@^{__CFString=}$kDRBurnVerifyDiscKey@^{__CFString=}$kDRCDTextArrangerKey@^{__CFString=}$kDRCDTextCFStringEncodingKey@^{__CFString=}$kDRCDTextCharacterCodeKey@^{__CFString=}$kDRCDTextClosedKey@^{__CFString=}$kDRCDTextComposerKey@^{__CFString=}$kDRCDTextCopyrightAssertedForNamesKey@^{__CFString=}$kDRCDTextCopyrightAssertedForSpecialMessagesKey@^{__CFString=}$kDRCDTextCopyrightAssertedForTitlesKey@^{__CFString=}$kDRCDTextDiscIdentKey@^{__CFString=}$kDRCDTextGenreCodeKey@^{__CFString=}$kDRCDTextGenreKey@^{__CFString=}$kDRCDTextKey@^{__CFString=}$kDRCDTextLanguageKey@^{__CFString=}$kDRCDTextMCNISRCKey@^{__CFString=}$kDRCDTextPerformerKey@^{__CFString=}$kDRCDTextSizeKey@^{__CFString=}$kDRCDTextSongwriterKey@^{__CFString=}$kDRCDTextSpecialMessageKey@^{__CFString=}$kDRCDTextTOC2Key@^{__CFString=}$kDRCDTextTOCKey@^{__CFString=}$kDRCDTextTitleKey@^{__CFString=}$kDRContentModificationDate@^{__CFString=}$kDRCopyrightFile@^{__CFString=}$kDRCreationDate@^{__CFString=}$kDRDVDCopyrightInfoKey@^{__CFString=}$kDRDVDTimestampKey@^{__CFString=}$kDRDataFormKey@^{__CFString=}$kDRDataPreparer@^{__CFString=}$kDRDefaultDate@^{__CFString=}$kDRDeviceAppearedNotification@^{__CFString=}$kDRDeviceBurnSpeedBD1x@f$kDRDeviceBurnSpeedCD1x@f$kDRDeviceBurnSpeedDVD1x@f$kDRDeviceBurnSpeedHDDVD1x@f$kDRDeviceBurnSpeedMax@f$kDRDeviceBurnSpeedsKey@^{__CFString=}$kDRDeviceCanTestWriteCDKey@^{__CFString=}$kDRDeviceCanTestWriteDVDKey@^{__CFString=}$kDRDeviceCanUnderrunProtectCDKey@^{__CFString=}$kDRDeviceCanUnderrunProtectDVDKey@^{__CFString=}$kDRDeviceCanWriteBDKey@^{__CFString=}$kDRDeviceCanWriteBDREKey@^{__CFString=}$kDRDeviceCanWriteBDRKey@^{__CFString=}$kDRDeviceCanWriteCDKey@^{__CFString=}$kDRDeviceCanWriteCDRKey@^{__CFString=}$kDRDeviceCanWriteCDRWKey@^{__CFString=}$kDRDeviceCanWriteCDRawKey@^{__CFString=}$kDRDeviceCanWriteCDSAOKey@^{__CFString=}$kDRDeviceCanWriteCDTAOKey@^{__CFString=}$kDRDeviceCanWriteCDTextKey@^{__CFString=}$kDRDeviceCanWriteDVDDAOKey@^{__CFString=}$kDRDeviceCanWriteDVDKey@^{__CFString=}$kDRDeviceCanWriteDVDPlusRDoubleLayerKey@^{__CFString=}$kDRDeviceCanWriteDVDPlusRKey@^{__CFString=}$kDRDeviceCanWriteDVDPlusRWDoubleLayerKey@^{__CFString=}$kDRDeviceCanWriteDVDPlusRWKey@^{__CFString=}$kDRDeviceCanWriteDVDRAMKey@^{__CFString=}$kDRDeviceCanWriteDVDRDualLayerKey@^{__CFString=}$kDRDeviceCanWriteDVDRKey@^{__CFString=}$kDRDeviceCanWriteDVDRWDualLayerKey@^{__CFString=}$kDRDeviceCanWriteDVDRWKey@^{__CFString=}$kDRDeviceCanWriteHDDVDKey@^{__CFString=}$kDRDeviceCanWriteHDDVDRAMKey@^{__CFString=}$kDRDeviceCanWriteHDDVDRDualLayerKey@^{__CFString=}$kDRDeviceCanWriteHDDVDRKey@^{__CFString=}$kDRDeviceCanWriteHDDVDRWDualLayerKey@^{__CFString=}$kDRDeviceCanWriteHDDVDRWKey@^{__CFString=}$kDRDeviceCanWriteISRCKey@^{__CFString=}$kDRDeviceCanWriteIndexPointsKey@^{__CFString=}$kDRDeviceCanWriteKey@^{__CFString=}$kDRDeviceCurrentWriteSpeedKey@^{__CFString=}$kDRDeviceDisappearedNotification@^{__CFString=}$kDRDeviceFirmwareRevisionKey@^{__CFString=}$kDRDeviceIORegistryEntryPathKey@^{__CFString=}$kDRDeviceIsBusyKey@^{__CFString=}$kDRDeviceIsTrayOpenKey@^{__CFString=}$kDRDeviceLoadingMechanismCanEjectKey@^{__CFString=}$kDRDeviceLoadingMechanismCanInjectKey@^{__CFString=}$kDRDeviceLoadingMechanismCanOpenKey@^{__CFString=}$kDRDeviceMaximumWriteSpeedKey@^{__CFString=}$kDRDeviceMediaBSDNameKey@^{__CFString=}$kDRDeviceMediaBlocksFreeKey@^{__CFString=}$kDRDeviceMediaBlocksOverwritableKey@^{__CFString=}$kDRDeviceMediaBlocksUsedKey@^{__CFString=}$kDRDeviceMediaClassBD@^{__CFString=}$kDRDeviceMediaClassCD@^{__CFString=}$kDRDeviceMediaClassDVD@^{__CFString=}$kDRDeviceMediaClassHDDVD@^{__CFString=}$kDRDeviceMediaClassKey@^{__CFString=}$kDRDeviceMediaClassUnknown@^{__CFString=}$kDRDeviceMediaDoubleLayerL0DataZoneBlocksKey@^{__CFString=}$kDRDeviceMediaInfoKey@^{__CFString=}$kDRDeviceMediaIsAppendableKey@^{__CFString=}$kDRDeviceMediaIsBlankKey@^{__CFString=}$kDRDeviceMediaIsErasableKey@^{__CFString=}$kDRDeviceMediaIsOverwritableKey@^{__CFString=}$kDRDeviceMediaIsReservedKey@^{__CFString=}$kDRDeviceMediaSessionCountKey@^{__CFString=}$kDRDeviceMediaStateInTransition@^{__CFString=}$kDRDeviceMediaStateKey@^{__CFString=}$kDRDeviceMediaStateMediaPresent@^{__CFString=}$kDRDeviceMediaStateNone@^{__CFString=}$kDRDeviceMediaTrackCountKey@^{__CFString=}$kDRDeviceMediaTypeBDR@^{__CFString=}$kDRDeviceMediaTypeBDRE@^{__CFString=}$kDRDeviceMediaTypeBDROM@^{__CFString=}$kDRDeviceMediaTypeCDR@^{__CFString=}$kDRDeviceMediaTypeCDROM@^{__CFString=}$kDRDeviceMediaTypeCDRW@^{__CFString=}$kDRDeviceMediaTypeDVDPlusR@^{__CFString=}$kDRDeviceMediaTypeDVDPlusRDoubleLayer@^{__CFString=}$kDRDeviceMediaTypeDVDPlusRW@^{__CFString=}$kDRDeviceMediaTypeDVDPlusRWDoubleLayer@^{__CFString=}$kDRDeviceMediaTypeDVDR@^{__CFString=}$kDRDeviceMediaTypeDVDRAM@^{__CFString=}$kDRDeviceMediaTypeDVDRDualLayer@^{__CFString=}$kDRDeviceMediaTypeDVDROM@^{__CFString=}$kDRDeviceMediaTypeDVDRW@^{__CFString=}$kDRDeviceMediaTypeDVDRWDualLayer@^{__CFString=}$kDRDeviceMediaTypeHDDVDR@^{__CFString=}$kDRDeviceMediaTypeHDDVDRAM@^{__CFString=}$kDRDeviceMediaTypeHDDVDRDualLayer@^{__CFString=}$kDRDeviceMediaTypeHDDVDROM@^{__CFString=}$kDRDeviceMediaTypeHDDVDRW@^{__CFString=}$kDRDeviceMediaTypeHDDVDRWDualLayer@^{__CFString=}$kDRDeviceMediaTypeKey@^{__CFString=}$kDRDeviceMediaTypeUnknown@^{__CFString=}$kDRDevicePhysicalInterconnectATAPI@^{__CFString=}$kDRDevicePhysicalInterconnectFibreChannel@^{__CFString=}$kDRDevicePhysicalInterconnectFireWire@^{__CFString=}$kDRDevicePhysicalInterconnectKey@^{__CFString=}$kDRDevicePhysicalInterconnectLocationExternal@^{__CFString=}$kDRDevicePhysicalInterconnectLocationInternal@^{__CFString=}$kDRDevicePhysicalInterconnectLocationKey@^{__CFString=}$kDRDevicePhysicalInterconnectLocationUnknown@^{__CFString=}$kDRDevicePhysicalInterconnectSCSI@^{__CFString=}$kDRDevicePhysicalInterconnectUSB@^{__CFString=}$kDRDeviceProductNameKey@^{__CFString=}$kDRDeviceStatusChangedNotification@^{__CFString=}$kDRDeviceSupportLevelAppleShipping@^{__CFString=}$kDRDeviceSupportLevelAppleSupported@^{__CFString=}$kDRDeviceSupportLevelKey@^{__CFString=}$kDRDeviceSupportLevelNone@^{__CFString=}$kDRDeviceSupportLevelUnsupported@^{__CFString=}$kDRDeviceSupportLevelVendorSupported@^{__CFString=}$kDRDeviceTrackInfoKey@^{__CFString=}$kDRDeviceTrackRefsKey@^{__CFString=}$kDRDeviceVendorNameKey@^{__CFString=}$kDRDeviceWriteBufferSizeKey@^{__CFString=}$kDRDeviceWriteCapabilitiesKey@^{__CFString=}$kDREffectiveDate@^{__CFString=}$kDREraseStatusChangedNotification@^{__CFString=}$kDREraseTypeComplete@^{__CFString=}$kDREraseTypeKey@^{__CFString=}$kDREraseTypeQuick@^{__CFString=}$kDRErrorStatusAdditionalSenseStringKey@^{__CFString=}$kDRErrorStatusErrorInfoStringKey@^{__CFString=}$kDRErrorStatusErrorKey@^{__CFString=}$kDRErrorStatusErrorStringKey@^{__CFString=}$kDRErrorStatusKey@^{__CFString=}$kDRErrorStatusSenseCodeStringKey@^{__CFString=}$kDRErrorStatusSenseKey@^{__CFString=}$kDRExpirationDate@^{__CFString=}$kDRFreeBlocksKey@^{__CFString=}$kDRHFSPlus@^{__CFString=}$kDRHFSPlusCatalogNodeID@^{__CFString=}$kDRHFSPlusTextEncodingHint@^{__CFString=}$kDRISO9660@^{__CFString=}$kDRISO9660LevelOne@^{__CFString=}$kDRISO9660LevelTwo@^{__CFString=}$kDRISO9660VersionNumber@^{__CFString=}$kDRISOLevel@^{__CFString=}$kDRISOMacExtensions@^{__CFString=}$kDRISORockRidgeExtensions@^{__CFString=}$kDRIndexPointsKey@^{__CFString=}$kDRInvisible@^{__CFString=}$kDRJoliet@^{__CFString=}$kDRMacExtendedFinderFlags@^{__CFString=}$kDRMacFileCreator@^{__CFString=}$kDRMacFileType@^{__CFString=}$kDRMacFinderFlags@^{__CFString=}$kDRMacFinderHideExtension@^{__CFString=}$kDRMacIconLocation@^{__CFString=}$kDRMacScrollPosition@^{__CFString=}$kDRMacWindowBounds@^{__CFString=}$kDRMacWindowView@^{__CFString=}$kDRMaxBurnSpeedKey@^{__CFString=}$kDRMediaCatalogNumberKey@^{__CFString=}$kDRNextWritableAddressKey@^{__CFString=}$kDRPosixFileMode@^{__CFString=}$kDRPosixGID@^{__CFString=}$kDRPosixUID@^{__CFString=}$kDRPreGapIsRequiredKey@^{__CFString=}$kDRPreGapLengthKey@^{__CFString=}$kDRPublisher@^{__CFString=}$kDRRecordingDate@^{__CFString=}$kDRSCMSCopyrightFree@^{__CFString=}$kDRSCMSCopyrightProtectedCopy@^{__CFString=}$kDRSCMSCopyrightProtectedOriginal@^{__CFString=}$kDRSerialCopyManagementStateKey@^{__CFString=}$kDRSessionFormatKey@^{__CFString=}$kDRSessionNumberKey@^{__CFString=}$kDRStatusCurrentSessionKey@^{__CFString=}$kDRStatusCurrentSpeedKey@^{__CFString=}$kDRStatusCurrentTrackKey@^{__CFString=}$kDRStatusEraseTypeKey@^{__CFString=}$kDRStatusPercentCompleteKey@^{__CFString=}$kDRStatusProgressCurrentKPS@^{__CFString=}$kDRStatusProgressCurrentXFactor@^{__CFString=}$kDRStatusProgressInfoKey@^{__CFString=}$kDRStatusStateDone@^{__CFString=}$kDRStatusStateErasing@^{__CFString=}$kDRStatusStateFailed@^{__CFString=}$kDRStatusStateFinishing@^{__CFString=}$kDRStatusStateKey@^{__CFString=}$kDRStatusStateNone@^{__CFString=}$kDRStatusStatePreparing@^{__CFString=}$kDRStatusStateSessionClose@^{__CFString=}$kDRStatusStateSessionOpen@^{__CFString=}$kDRStatusStateTrackClose@^{__CFString=}$kDRStatusStateTrackOpen@^{__CFString=}$kDRStatusStateTrackWrite@^{__CFString=}$kDRStatusStateVerifying@^{__CFString=}$kDRStatusTotalSessionsKey@^{__CFString=}$kDRStatusTotalTracksKey@^{__CFString=}$kDRSubchannelDataFormKey@^{__CFString=}$kDRSubchannelDataFormNone@^{__CFString=}$kDRSubchannelDataFormPack@^{__CFString=}$kDRSubchannelDataFormRaw@^{__CFString=}$kDRSuppressMacSpecificFiles@^{__CFString=}$kDRSynchronousBehaviorKey@^{__CFString=}$kDRSystemIdentifier@^{__CFString=}$kDRTrackISRCKey@^{__CFString=}$kDRTrackIsEmptyKey@^{__CFString=}$kDRTrackLengthKey@^{__CFString=}$kDRTrackModeKey@^{__CFString=}$kDRTrackNumberKey@^{__CFString=}$kDRTrackPacketSizeKey@^{__CFString=}$kDRTrackPacketTypeFixed@^{__CFString=}$kDRTrackPacketTypeKey@^{__CFString=}$kDRTrackPacketTypeVariable@^{__CFString=}$kDRTrackStartAddressKey@^{__CFString=}$kDRTrackTypeClosed@^{__CFString=}$kDRTrackTypeIncomplete@^{__CFString=}$kDRTrackTypeInvisible@^{__CFString=}$kDRTrackTypeKey@^{__CFString=}$kDRTrackTypeReserved@^{__CFString=}$kDRUDF@^{__CFString=}$kDRUDFApplicationIdentifierSuffix@^{__CFString=}$kDRUDFExtendedFilePermissions@^{__CFString=}$kDRUDFInterchangeLevel@^{__CFString=}$kDRUDFMaxInterchangeLevel@^{__CFString=}$kDRUDFMaxVolumeSequenceNumber@^{__CFString=}$kDRUDFPrimaryVolumeDescriptorNumber@^{__CFString=}$kDRUDFRealTimeFile@^{__CFString=}$kDRUDFVersion102@^{__CFString=}$kDRUDFVersion150@^{__CFString=}$kDRUDFVolumeSequenceNumber@^{__CFString=}$kDRUDFVolumeSetIdentifier@^{__CFString=}$kDRUDFVolumeSetImplementationUse@^{__CFString=}$kDRUDFVolumeSetTimestamp@^{__CFString=}$kDRUDFWriteVersion@^{__CFString=}$kDRVerificationTypeChecksum@^{__CFString=}$kDRVerificationTypeKey@^{__CFString=}$kDRVerificationTypeNone@^{__CFString=}$kDRVerificationTypeProduceAgain@^{__CFString=}$kDRVerificationTypeReceiveData@^{__CFString=}$kDRVolumeCheckedDate@^{__CFString=}$kDRVolumeCreationDate@^{__CFString=}$kDRVolumeEffectiveDate@^{__CFString=}$kDRVolumeExpirationDate@^{__CFString=}$kDRVolumeModificationDate@^{__CFString=}$kDRVolumeSet@^{__CFString=}$''' constants = constants + '$kDRRefConCFTypeCallbacks@%s$'%(sel32or64('{DRRefConCallbacks=L^?^?}', '{DRRefConCallbacks=Q^?^?}'),) enums = '''$DRCDTextEncodingASCII@1$DRCDTextEncodingISOLatin1Modified@5$DRCDTextGenreCodeAdultContemporary@2$DRCDTextGenreCodeAlternativeRock@3$DRCDTextGenreCodeChildrens@4$DRCDTextGenreCodeClassical@5$DRCDTextGenreCodeContemporaryChristian@6$DRCDTextGenreCodeCountry@7$DRCDTextGenreCodeDance@8$DRCDTextGenreCodeEasyListening@9$DRCDTextGenreCodeErotic@10$DRCDTextGenreCodeFolk@11$DRCDTextGenreCodeGospel@12$DRCDTextGenreCodeHipHop@13$DRCDTextGenreCodeJazz@14$DRCDTextGenreCodeLatin@15$DRCDTextGenreCodeMusical@16$DRCDTextGenreCodeNewAge@17$DRCDTextGenreCodeOpera@18$DRCDTextGenreCodeOperetta@19$DRCDTextGenreCodePop@20$DRCDTextGenreCodeRap@21$DRCDTextGenreCodeReggae@22$DRCDTextGenreCodeRhythmAndBlues@24$DRCDTextGenreCodeRock@23$DRCDTextGenreCodeSoundEffects@25$DRCDTextGenreCodeSoundtrack@26$DRCDTextGenreCodeSpokenWord@27$DRCDTextGenreCodeUnknown@1$DRCDTextGenreCodeWorldMusic@28$DRFileForkData@0$DRFileForkResource@1$DRFilesystemInclusionMaskHFSPlus@8$DRFilesystemInclusionMaskISO9660@1$DRFilesystemInclusionMaskJoliet@2$DRFilesystemInclusionMaskUDF@4$DRFlagSubchannelDataRequested@2$kDRAudioFileNotSupportedErr@2147614828$kDRBadLayoutErr@2147614821$kDRBlockSizeAudio@2352$kDRBlockSizeDVDData@2048$kDRBlockSizeMode1Data@2048$kDRBlockSizeMode2Data@2332$kDRBlockSizeMode2Form1Data@2048$kDRBlockSizeMode2Form2Data@2324$kDRBlockTypeAudio@0$kDRBlockTypeDVDData@8$kDRBlockTypeMode1Data@8$kDRBlockTypeMode2Data@13$kDRBlockTypeMode2Form1Data@10$kDRBlockTypeMode2Form2Data@12$kDRBurnMediaWriteFailureErr@2147614830$kDRBurnNotAllowedErr@2147614817$kDRBurnPowerCalibrationErr@2147614829$kDRBurnUnderrunErr@2147614816$kDRCDTextEncodingASCII@1536$kDRCDTextEncodingISOLatin1Modified@513$kDRCDTextGenreCodeAdultContemporary@2$kDRCDTextGenreCodeAlternativeRock@3$kDRCDTextGenreCodeChildrens@4$kDRCDTextGenreCodeClassical@5$kDRCDTextGenreCodeContemporaryChristian@6$kDRCDTextGenreCodeCountry@7$kDRCDTextGenreCodeDance@8$kDRCDTextGenreCodeEasyListening@9$kDRCDTextGenreCodeErotic@10$kDRCDTextGenreCodeFolk@11$kDRCDTextGenreCodeGospel@12$kDRCDTextGenreCodeHipHop@13$kDRCDTextGenreCodeJazz@14$kDRCDTextGenreCodeLatin@15$kDRCDTextGenreCodeMusical@16$kDRCDTextGenreCodeNewAge@17$kDRCDTextGenreCodeOpera@18$kDRCDTextGenreCodeOperetta@19$kDRCDTextGenreCodePop@20$kDRCDTextGenreCodeRap@21$kDRCDTextGenreCodeReggae@22$kDRCDTextGenreCodeRhythmAndBlues@24$kDRCDTextGenreCodeRock@23$kDRCDTextGenreCodeSoundEffects@25$kDRCDTextGenreCodeSoundtrack@26$kDRCDTextGenreCodeSpokenWord@27$kDRCDTextGenreCodeUnknown@1$kDRCDTextGenreCodeWorldMusic@28$kDRDataFormAudio@0$kDRDataFormDVDData@16$kDRDataFormMode1Data@16$kDRDataFormMode2Data@32$kDRDataFormMode2Form1Data@32$kDRDataFormMode2Form2Data@32$kDRDataProductionErr@2147614818$kDRDeviceAccessErr@2147614752$kDRDeviceBurnStrategyNotAvailableErr@2147615232$kDRDeviceBusyErr@2147614753$kDRDeviceCantWriteCDTextErr@2147615233$kDRDeviceCantWriteISRCErr@2147615235$kDRDeviceCantWriteIndexPointsErr@2147615234$kDRDeviceCantWriteSCMSErr@2147615236$kDRDeviceCommunicationErr@2147614754$kDRDeviceInvalidErr@2147614755$kDRDeviceNotReadyErr@2147614756$kDRDeviceNotSupportedErr@2147614757$kDRDevicePreGapLengthNotValidErr@2147615237$kDRDoubleLayerL0AlreadySpecifiedErr@2147614827$kDRDoubleLayerL0DataZoneBlocksParamErr@2147614826$kDRFileForkData@0$kDRFileForkResource@1$kDRFileForkSizeActual@0$kDRFileForkSizeEstimate@1$kDRFileLocationConflictErr@2147614977$kDRFileMessageForkSize@1718839674$kDRFileMessagePostBurn@1886352244$kDRFileMessagePreBurn@1886545184$kDRFileMessageProduceData@1886547812$kDRFileMessageRelease@1652122912$kDRFileMessageVerificationStarting@1987208825$kDRFileModifiedDuringBurnErr@2147614976$kDRFilesystemMaskDefault@4294967295$kDRFilesystemMaskHFSPlus@8$kDRFilesystemMaskISO9660@1$kDRFilesystemMaskJoliet@2$kDRFilesystemMaskUDF@4$kDRFilesystemsNotSupportedErr@2147614979$kDRFirstErr@2147614720$kDRFlagNoMoreData@1$kDRFlagSubchannelDataRequested@2$kDRFunctionNotSupportedErr@2147614823$kDRInternalErr@2147614720$kDRInvalidIndexPointsErr@2147614825$kDRLinkTypeFinderAlias@3$kDRLinkTypeHardLink@1$kDRLinkTypeSymbolicLink@2$kDRMediaBusyErr@2147614784$kDRMediaInvalidErr@2147614790$kDRMediaNotBlankErr@2147614788$kDRMediaNotErasableErr@2147614789$kDRMediaNotPresentErr@2147614785$kDRMediaNotSupportedErr@2147614787$kDRMediaNotWritableErr@2147614786$kDRSessionFormatAudio@0$kDRSessionFormatCDI@16$kDRSessionFormatCDXA@32$kDRSessionFormatDVDData@0$kDRSessionFormatMode1Data@0$kDRSpeedTestAlreadyRunningErr@2147614824$kDRTooManyNameConflictsErr@2147614978$kDRTooManyTracksForDVDErr@2147614820$kDRTrackMessageEstimateLength@1702065257$kDRTrackMessagePostBurn@1886352244$kDRTrackMessagePreBurn@1886545184$kDRTrackMessageProduceData@1886547812$kDRTrackMessageProducePreGap@1886548082$kDRTrackMessageVerificationDone@1986293614$kDRTrackMessageVerificationStarting@1987277938$kDRTrackMessageVerifyData@1987208825$kDRTrackMessageVerifyPreGap@1987211378$kDRTrackMode1Data@4$kDRTrackMode2Data@4$kDRTrackMode2Form1Data@4$kDRTrackMode2Form2Data@4$kDRTrackModeAudio@0$kDRTrackModeDVDData@5$kDRTrackReusedErr@2147614831$kDRUserCanceledErr@2147614822$kDRVerificationFailedErr@2147614819$''' misc.update({}) functions={'DREraseCreate': (b'^{__DRErase=}^{__DRDevice=}', '', {'retval': {'already_cfretained': True}}), 'DRDeviceCopyStatus': (b'^{__CFDictionary=}^{__DRDevice=}', '', {'retval': {'already_cfretained': True}}), 'DRFilesystemTrackCreate': (b'^{__DRTrack=}^{__DRFolder=}', '', {'retval': {'already_cfretained': True}}), 'DRNotificationCenterCreateRunLoopSource': (b'^{__CFRunLoopSource=}^{__DRNotificationCenter=}', '', {'retval': {'already_cfretained': True}}), 'DRCDTextBlockGetValue': (sel32or64(b'@^{__DRCDTextBlock=}l^{__CFString=}', b'@^{__DRCDTextBlock=}q^{__CFString=}'),), 'DRDeviceAcquireExclusiveAccess': (sel32or64(b'l^{__DRDevice=}', b'i^{__DRDevice=}'),), 'DRNotificationCenterCreate': (b'^{__DRNotificationCenter=}', '', {'retval': {'already_cfretained': True}}), 'DRBurnGetDevice': (b'^{__DRDevice=}^{__DRBurn=}',), 'DREraseCopyStatus': (b'^{__CFDictionary=}^{__DRErase=}', '', {'retval': {'already_cfretained': True}}), 'DRFilesystemTrackEstimateOverhead': (sel32or64(b'QQLL', b'QQII'),), 'DRFSObjectSetBaseName': (b'v@^{__CFString=}',), 'DRDeviceGetTypeID': (sel32or64(b'L', b'Q'),), 'DRBurnGetProperties': (b'^{__CFDictionary=}^{__DRBurn=}',), 'DREraseGetDevice': (b'^{__DRDevice=}^{__DRErase=}',), 'DRCopyLocalizedStringForAdditionalSense': (b'^{__CFString=}CC', '', {'retval': {'already_cfretained': True}}), 'DRFSObjectIsVirtual': (b'Z@',), 'DRNotificationCenterAddObserver': (b'v^{__DRNotificationCenter=}^v^?^{__CFString=}@', '', {'arguments': {2: {'callable': {'retval': {'type': b'v'}, 'arguments': {0: {'type': b'^{__DRNotificationCenter=}'}, 1: {'type': b'^v'}, 2: {'type': b'^{__CFString=}'}, 3: {'type': b'@'}, 4: {'type': b'^{__CFDictionary=}'}}}}}}), 'DRFolderCopyChildren': (b'^{__CFArray=}^{__DRFolder=}', '', {'retval': {'already_cfretained': True}}), 'DRDeviceIsValid': (b'Z^{__DRDevice=}',), 'DRCopyLocalizedStringForValue': (b'^{__CFString=}^{__CFString=}', '', {'retval': {'already_cfretained': True}}), 'DRNotificationCenterRemoveObserver': (b'v^{__DRNotificationCenter=}^v^{__CFString=}@',), 'DRBurnSetProperties': (b'v^{__DRBurn=}^{__CFDictionary=}',), 'DRBurnGetTypeID': (sel32or64(b'L', b'Q'),), 'DRFSObjectSetSpecificName': (b'v@^{__CFString=}^{__CFString=}',), 'DRFolderCreateReal': (b'^{__DRFolder=}^{FSRef=[80C]}', '', {'retval': {'already_cfretained': True}, 'arguments': {0: {'type_modifier': 'n'}}}), 'DRTrackSpeedTest': (sel32or64(b'f^{__DRTrack=}LL', b'f^{__DRTrack=}II'),), 'DRCDTextBlockCreateArrayFromPackList': (b'^{__CFArray=}^{__CFData=}', '', {'retval': {'already_cfretained': True}}), 'DRCDTextBlockSetTrackDictionaries': (b'v^{__DRCDTextBlock=}^{__CFArray=}',), 'DRDeviceReleaseMediaReservation': (b'v^{__DRDevice=}',), 'DRCDTextBlockGetProperties': (b'^{__CFDictionary=}^{__DRCDTextBlock=}',), 'DRDeviceCloseTray': (sel32or64(b'l^{__DRDevice=}', b'i^{__DRDevice=}'),), 'DRBurnCopyStatus': (b'^{__CFDictionary=}^{__DRBurn=}', '', {'retval': {'already_cfretained': True}}), 'DRDeviceKPSForXFactor': (b'f@f',), 'DRFSObjectGetFilesystemMask': (sel32or64(b'L@^L^L', b'I@^I^I'), '', {'arguments': {1: {'type_modifier': 'o'}, 2: {'type_modifier': 'o'}}}), 'DRFolderCreateVirtual': (b'^{__DRFolder=}^{__CFString=}', '', {'retval': {'already_cfretained': True}}), 'DREraseGetTypeID': (sel32or64(b'L', b'Q'),), 'DRDeviceOpenTray': (sel32or64(b'l^{__DRDevice=}', b'i^{__DRDevice=}'),), 'DRFSObjectSetFilesystemProperties': (b'v@^{__CFString=}^{__CFDictionary=}',), 'DRFSObjectCopyBaseName': (b'^{__CFString=}@', '', {'retval': {'already_cfretained': True}}), 'DRFileCreateRealWithURL': (b'^{__DRFile=}^{__CFURL=}', '', {'retval': {'already_cfretained': True}}), 'DRDeviceXFactorForKPS': (b'f@f',), 'DRFSObjectCopySpecificNames': (b'^{__CFDictionary=}@', '', {'retval': {'already_cfretained': True}}), 'DRFolderConvertRealToVirtual': (b'v^{__DRFolder=}',), 'DRCopyDeviceArray': (b'^{__CFArray=}', '', {'retval': {'already_cfretained': True}}), 'DRCDTextBlockGetTrackDictionaries': (b'^{__CFArray=}^{__DRCDTextBlock=}',), 'DRFSObjectSetFilesystemProperty': (b'v@^{__CFString=}^{__CFString=}@',), 'DRFileCreateVirtualWithData': (sel32or64(b'^{__DRFile=}^{__CFString=}^vL', b'^{__DRFile=}^{__CFString=}^vI'), '', {'retval': {'already_cfretained': True}, 'arguments': {1: {'c_array_length_in_arg': 2, 'type_modifier': 'n'}}}), 'DREraseGetProperties': (b'^{__CFDictionary=}^{__DRErase=}',), 'DRDeviceCopyDeviceForIORegistryEntryPath': (b'^{__DRDevice=}^{__CFString=}', '', {'retval': {'already_cfretained': True}}), 'DRFSObjectCopyFilesystemProperty': (b'@@^{__CFString=}^{__CFString=}Z', '', {'retval': {'already_cfretained': True}}), 'DRFileCreateReal': (b'^{__DRFile=}^{FSRef=[80C]}', '', {'retval': {'already_cfretained': True}, 'arguments': {0: {'type_modifier': 'n'}}}), 'DRCopyLocalizedStringForSenseCode': (b'^{__CFString=}C', '', {'retval': {'already_cfretained': True}}), 'DRCDTextBlockFlatten': (sel32or64(b'L^{__DRCDTextBlock=}', b'I^{__DRCDTextBlock=}'),), 'DRSetRefCon': (sel32or64(b'v@^v^{DRRefConCallbacks=L^?^?}', b'v@^v^{DRRefConCallbacks=Q^?^?}'),), 'DRFSObjectCopyRealURL': (b'^{__CFURL=}@', '', {'retval': {'already_cfretained': True}}), 'DRFileCreateVirtualLink': (sel32or64(b'^{__DRFile=}@L^{__CFString=}', b'^{__DRFile=}@I^{__CFString=}'), '', {'retval': {'already_cfretained': True}}), 'DRFSObjectGetRealFSRef': (b'v@^{FSRef=[80C]}', '', {'arguments': {1: {'type_modifier': 'o'}}}), 'DRDeviceEjectMedia': (sel32or64(b'l^{__DRDevice=}', b'i^{__DRDevice=}'),), 'DRAudioTrackCreateWithURL': (b'^{__DRTrack=}^{__CFURL=}', '', {'retval': {'already_cfretained': True}}), 'DRCopyLocalizedStringForDiscRecordingError': (sel32or64(b'^{__CFString=}l', b'^{__CFString=}i'), '', {'retval': {'already_cfretained': True}}), 'DRFSObjectCopyFilesystemProperties': (b'^{__CFDictionary=}@^{__CFString=}Z', '', {'retval': {'already_cfretained': True}}), 'DRTrackGetProperties': (b'^{__CFDictionary=}^{__DRTrack=}',), 'DRFolderAddChild': (b'v^{__DRFolder=}@',), 'DRNotificationCenterGetTypeID': (sel32or64(b'L', b'Q'),), 'DRFolderCountChildren': (sel32or64(b'L^{__DRFolder=}', b'I^{__DRFolder=}'),), 'DRFileCreateVirtualWithCallback': (b'^{__DRFile=}^{__CFString=}^?^v', '', {'retval': {'already_cfretained': True}, 'arguments': {1: {'callable': {'retval': {'type': b'i'}, 'arguments': {0: {'type': b'^v'}, 1: {'type': b'^{__DRFile=}'}, 2: {'type': b'I'}, 3: {'type': b'^v'}}}}}}), 'DRBurnCreate': (b'^{__DRBurn=}^{__DRDevice=}', '', {'retval': {'already_cfretained': True}}), 'DRDeviceReleaseExclusiveAccess': (b'v^{__DRDevice=}',), 'DRGetRefCon': (b'^v@',), 'DRGetVersion': (b'{NumVersion=CCCC}',), 'DRFSObjectSetSpecificNames': (b'v@^{__CFDictionary=}',), 'DRDeviceAcquireMediaReservation': (b'v^{__DRDevice=}',), 'DRTrackSetProperties': (b'v^{__DRTrack=}^{__CFDictionary=}',), 'DRFSObjectCopySpecificName': (b'^{__CFString=}@^{__CFString=}', '', {'retval': {'already_cfretained': True}}), 'DRCDTextBlockSetValue': (sel32or64(b'v^{__DRCDTextBlock=}l^{__CFString=}@', b'v^{__DRCDTextBlock=}q^{__CFString=}@'),), 'DREraseSetProperties': (b'v^{__DRErase=}^{__CFDictionary=}',), 'DREraseStart': (sel32or64(b'l^{__DRErase=}', b'i^{__DRErase=}'),), 'DRFolderRemoveChild': (b'v^{__DRFolder=}@',), 'DRFolderGetTypeID': (sel32or64(b'L', b'Q'),), 'DRBurnWriteLayout': (sel32or64(b'l^{__DRBurn=}@', b'i^{__DRBurn=}@'),), 'DRTrackEstimateLength': (b'Q^{__DRTrack=}',), 'DRBurnAbort': (b'v^{__DRBurn=}',), 'DRFSObjectGetParent': (b'^{__DRFolder=}@',), 'DRFSObjectSetFilesystemMask': (sel32or64(b'v@L', b'v@I'),), 'DRFileGetTypeID': (sel32or64(b'L', b'Q'),), 'DRCDTextBlockSetProperties': (b'v^{__DRCDTextBlock=}^{__CFDictionary=}',), 'DRDeviceCopyDeviceForBSDName': (b'^{__DRDevice=}^{__CFString=}', '', {'retval': {'already_cfretained': True}}), 'DRFSObjectCopyMangledNames': (b'^{__CFDictionary=}@', '', {'retval': {'already_cfretained': True}}), 'DRCDTextBlockGetTypeID': (sel32or64(b'L', b'Q'),), 'DRAudioTrackCreate': (b'^{__DRTrack=}^{FSRef=[80C]}', '', {'retval': {'already_cfretained': True}, 'arguments': {0: {'type_modifier': 'n'}}}), 'DRTrackCreate': (b'^{__DRTrack=}^{__CFDictionary=}^?', '', {'retval': {'already_cfretained': True}, 'arguments': {1: {'callable': {'retval': {'type': b'i'}, 'arguments': {0: {'type': b'^{__DRTrack=}'}, 1: {'type': b'I'}, 2: {'type': b'^v'}}}}}}), 'DRFolderCreateRealWithURL': (b'^{__DRFolder=}^{__CFURL=}', '', {'retval': {'already_cfretained': True}}), 'DRCDTextBlockCreate': (sel32or64(b'^{__DRCDTextBlock=}^{__CFString=}L', b'^{__DRCDTextBlock=}^{__CFString=}I'), '', {'retval': {'already_cfretained': True}}), 'DRFSObjectCopyMangledName': (b'^{__CFString=}@^{__CFString=}', '', {'retval': {'already_cfretained': True}}), 'DRDeviceCopyInfo': (b'^{__CFDictionary=}^{__DRDevice=}', '', {'retval': {'already_cfretained': True}}), 'DRTrackGetTypeID': (sel32or64(b'L', b'Q'),)} aliases = {'DRAudioTrackRef': 'DRTrackRef', 'DRCDTextEncodingASCII': 'NSASCIIStringEncoding', 'kDRCDTextEncodingASCII': 'kCFStringEncodingASCII', 'DRCDTextEncodingISOLatin1Modified': 'NSISOLatin1StringEncoding', 'kDRInternalErr': 'kDRFirstErr', 'kDRCDTextEncodingISOLatin1Modified': 'kCFStringEncodingISOLatin1', 'DRFilesystemTrackRef': 'DRTrackRef'} cftypes=[('DRBurnRef', b'^{__DRBurn=}', None, None), ('DRCDTextBlockRef', b'^{__DRCDTextBlock=}', None, None), ('DRDeviceRef', b'^{__DRDevice=}', None, None), ('DREraseRef', b'^{__DRErase=}', None, None), ('DRFileRef', b'^{__DRFile=}', None, None), ('DRFolderRef', b'^{__DRFolder=}', None, None), ('DRNotificationCenterRef', b'^{__DRNotificationCenter=}', None, None), ('DRTrackRef', b'^{__DRTrack=}', None, None)] r = objc.registerMetaDataForSelector objc._updatingMetadata(True) try: r(b'DRBurn', b'appendable', {'retval': {'type': b'Z'}}) r(b'DRBurn', b'setAppendable:', {'arguments': {2: {'type': b'Z'}}}) r(b'DRBurn', b'setVerifyDisc:', {'arguments': {2: {'type': b'Z'}}}) r(b'DRBurn', b'verifyDisc', {'retval': {'type': b'Z'}}) r(b'DRDevice', b'acquireExclusiveAccess', {'retval': {'type': b'Z'}})
# Last update: Sat Aug 16 17:32:48 2014 import objc, sys if sys.maxsize > 2 ** 32: def sel32or64(a, b): return b else: def sel32or64(a, b): return a if sys.byteorder == 'little': def littleOrBig(a, b): return a else: def littleOrBig(a, b): return b misc = { } misc.update({'ABRecordRef': objc.createStructType('ABRecordRef', b'{__ABBookflags=b1b1b1b1b1b1b1b1b1b1b1b21}', ['hasUnsavedChanges', 'readOnly', 'importMe', 'needConversion', 'cleanedUp', 'importTips', 'restoreFromMetaData', 'prefsNeedSync', 'waitingForReset', 'enforcesConstraints', 'tracksAllSources', '_reserved']), 'ABAddressBookRef': objc.createStructType('ABAddressBookRef', b'{__ABAddressBookRef=}', []), 'ABMutableMultiValueRef': objc.createStructType('ABMutableMultiValueRef', b'{__ABMultiValue=}', []), 'ABActionEnabledCallback': objc.createStructType('ABActionEnabledCallback', b'{__ABMultiValue=}', []), 'ABPickerAttributes': objc.createStructType('ABPickerAttributes', b'{OpaqueABPicker=}', []), 'ABGroupRef': objc.createStructType('ABGroupRef', b'{__ABGroup=}', []), 'ABSearchElementRef': objc.createStructType('ABSearchElementRef', b'{__ABSearchElementRef=}', []), 'ABPersonRef': objc.createStructType('ABPersonRef', b'{__ABPerson=}', []), 'ABMultiValueRef': objc.createStructType('ABMultiValueRef', b'{__ABMultiValue=}', []), 'ABPeoplePickerSelectionBehavior': objc.createStructType('ABPeoplePickerSelectionBehavior', b'{__ABBookflags=b1b1b1b1b1b1b1b1b1b1b1b21}', ['hasUnsavedChanges', 'readOnly', 'importMe', 'needConversion', 'cleanedUp', 'importTips', 'restoreFromMetaData', 'prefsNeedSync', 'waitingForReset', 'enforcesConstraints', 'tracksAllSources', '_reserved']), 'ABPickerRef': objc.createStructType('ABPickerRef', b'{OpaqueABPicker=}', [])}) constants = '''$ABAddressBookErrorDomain$ABMultiValueIdentifiersErrorKey$ABPeoplePickerDisplayedPropertyDidChangeNotification$ABPeoplePickerGroupSelectionDidChangeNotification$ABPeoplePickerNameSelectionDidChangeNotification$ABPeoplePickerValueSelectionDidChangeNotification$kABAIMHomeLabel$kABAIMInstantProperty$kABAIMMobileMeLabel$kABAIMWorkLabel$kABAddressCityKey$kABAddressCountryCodeKey$kABAddressCountryKey$kABAddressHomeLabel$kABAddressProperty$kABAddressStateKey$kABAddressStreetKey$kABAddressWorkLabel$kABAddressZIPKey$kABAlternateBirthdayComponentsProperty$kABAnniversaryLabel$kABAssistantLabel$kABBirthdayComponentsProperty$kABBirthdayProperty$kABBrotherLabel$kABCalendarURIsProperty$kABChildLabel$kABCreationDateProperty$kABDatabaseChangedExternallyNotification$kABDatabaseChangedNotification$kABDeletedRecords$kABDepartmentProperty$kABEmailHomeLabel$kABEmailMobileMeLabel$kABEmailProperty$kABEmailWorkLabel$kABFatherLabel$kABFirstNamePhoneticProperty$kABFirstNameProperty$kABFriendLabel$kABGroupNameProperty$kABHomeLabel$kABHomePageLabel$kABHomePageProperty$kABICQHomeLabel$kABICQInstantProperty$kABICQWorkLabel$kABInsertedRecords$kABInstantMessageProperty$kABInstantMessageServiceAIM$kABInstantMessageServiceFacebook$kABInstantMessageServiceGaduGadu$kABInstantMessageServiceGoogleTalk$kABInstantMessageServiceICQ$kABInstantMessageServiceJabber$kABInstantMessageServiceKey$kABInstantMessageServiceMSN$kABInstantMessageServiceQQ$kABInstantMessageServiceSkype$kABInstantMessageServiceYahoo$kABInstantMessageUsernameKey$kABJabberHomeLabel$kABJabberInstantProperty$kABJabberWorkLabel$kABJobTitleProperty$kABLastNamePhoneticProperty$kABLastNameProperty$kABMSNHomeLabel$kABMSNInstantProperty$kABMSNWorkLabel$kABMaidenNameProperty$kABManagerLabel$kABMiddleNamePhoneticProperty$kABMiddleNameProperty$kABMobileMeLabel$kABModificationDateProperty$kABMotherLabel$kABNicknameProperty$kABNoteProperty$kABOrganizationProperty$kABOtherDateComponentsProperty$kABOtherDatesProperty$kABOtherLabel$kABParentLabel$kABPartnerLabel$kABPersonFlags$kABPhoneHomeFAXLabel$kABPhoneHomeLabel$kABPhoneMainLabel$kABPhoneMobileLabel$kABPhonePagerLabel$kABPhoneProperty$kABPhoneWorkFAXLabel$kABPhoneWorkLabel$kABPhoneiPhoneLabel$kABRelatedNamesProperty$kABSisterLabel$kABSocialProfileProperty$kABSocialProfileServiceFacebook$kABSocialProfileServiceFlickr$kABSocialProfileServiceKey$kABSocialProfileServiceLinkedIn$kABSocialProfileServiceMySpace$kABSocialProfileServiceSinaWeibo$kABSocialProfileServiceTencentWeibo$kABSocialProfileServiceTwitter$kABSocialProfileServiceYelp$kABSocialProfileURLKey$kABSocialProfileUserIdentifierKey$kABSocialProfileUsernameKey$kABSpouseLabel$kABSuffixProperty$kABTitleProperty$kABUIDProperty$kABURLsProperty$kABUpdatedRecords$kABWorkLabel$kABYahooHomeLabel$kABYahooInstantProperty$kABYahooWorkLabel$''' enums = '''$ABAddRecordsError@1001$ABMultipleValueSelection@2$ABNoValueSelection@0$ABPropertyReadOnlyError@1014$ABPropertyUnsupportedBySourceError@1013$ABPropertyValueValidationError@1012$ABRemoveRecordsError@1002$ABSingleValueSelection@1$kABArrayProperty@5$kABBitsInBitFieldMatch@11$kABContainsSubString@7$kABContainsSubStringCaseInsensitive@8$kABDataProperty@7$kABDateComponentsProperty@8$kABDateProperty@4$kABDefaultNameOrdering@0$kABDictionaryProperty@6$kABDoesNotContainSubString@12$kABDoesNotContainSubStringCaseInsensitive@13$kABEqual@0$kABEqualCaseInsensitive@6$kABErrorInProperty@0$kABFirstNameFirst@32$kABGreaterThan@4$kABGreaterThanOrEqual@5$kABIntegerProperty@2$kABLastNameFirst@16$kABLessThan@2$kABLessThanOrEqual@3$kABMultiArrayProperty@261$kABMultiDataProperty@263$kABMultiDateComponentsProperty@264$kABMultiDateProperty@260$kABMultiDictionaryProperty@262$kABMultiIntegerProperty@258$kABMultiRealProperty@259$kABMultiStringProperty@257$kABMultiValueMask@256$kABNameOrderingMask@56$kABNotEqual@1$kABNotEqualCaseInsensitive@14$kABNotWithinIntervalAroundToday@19$kABNotWithinIntervalAroundTodayYearless@20$kABNotWithinIntervalFromToday@23$kABNotWithinIntervalFromTodayYearless@24$kABPickerAllowGroupSelection@4$kABPickerAllowMultipleSelection@8$kABPickerMultipleValueSelection@2$kABPickerSingleValueSelection@1$kABPrefixMatch@9$kABPrefixMatchCaseInsensitive@10$kABRealProperty@3$kABSearchAnd@0$kABSearchOr@1$kABShowAsCompany@1$kABShowAsMask@7$kABShowAsPerson@0$kABShowAsResource@2$kABShowAsRoom@3$kABStringProperty@1$kABSuffixMatch@15$kABSuffixMatchCaseInsensitive@16$kABWithinIntervalAroundToday@17$kABWithinIntervalAroundTodayYearless@18$kABWithinIntervalFromToday@21$kABWithinIntervalFromTodayYearless@22$kEventABPeoplePickerDisplayedPropertyChanged@4$kEventABPeoplePickerGroupDoubleClicked@5$kEventABPeoplePickerGroupSelectionChanged@1$kEventABPeoplePickerNameDoubleClicked@6$kEventABPeoplePickerNameSelectionChanged@2$kEventABPeoplePickerValueSelectionChanged@3$kEventClassABPeoplePicker@1633841264$kEventParamABPickerRef@1633841264$''' misc.update({}) functions={'ABMultiValueReplaceValue': (sel32or64(b'B^{__ABMultiValue=}@l', b'B^{__ABMultiValue=}@q'),), 'ABPickerSetDelegate': (b'v^{OpaqueABPicker=}^{OpaqueHIObjectRef=}',), 'ABAddRecord': (b'B^{__ABAddressBookRef=}@',), 'ABPickerClearSearchField': (b'v^{OpaqueABPicker=}',), 'ABPickerSelectGroup': (b'v^{OpaqueABPicker=}^{__ABGroup=}B',), 'ABCopyDefaultCountryCode': (b'^{__CFString=}^{__ABAddressBookRef=}', '', {'retval': {'already_cfretained': True}}), 'ABPickerGetAttributes': (sel32or64(b'L^{OpaqueABPicker=}', b'I^{OpaqueABPicker=}'),), 'ABSave': (b'B^{__ABAddressBookRef=}',), 'ABPersonCreateWithVCardRepresentation': (b'^{__ABPerson=}^{__CFData=}', '', {'retval': {'already_cfretained': True}}), 'ABGroupAddMember': (b'B^{__ABGroup=}^{__ABPerson=}',), 'ABPersonCreateSearchElement': (sel32or64(b'^{__ABSearchElementRef=}^{__CFString=}^{__CFString=}^{__CFString=}@l', b'^{__ABSearchElementRef=}^{__CFString=}^{__CFString=}^{__CFString=}@q'), '', {'retval': {'already_cfretained': True}}), 'ABMultiValueRemove': (sel32or64(b'B^{__ABMultiValue=}l', b'B^{__ABMultiValue=}q'),), 'ABSearchElementMatchesRecord': (b'B^{__ABSearchElementRef=}@',), 'ABRecordCopyRecordType': (b'^{__CFString=}@', '', {'retval': {'already_cfretained': True}}), 'ABPickerSelectIdentifier': (b'v^{OpaqueABPicker=}^{__ABPerson=}^{__CFString=}B',), 'ABMultiValueCopyPrimaryIdentifier': (b'^{__CFString=}^{__ABMultiValue=}', '', {'retval': {'already_cfretained': True}}), 'ABMultiValueIndexForIdentifier': (sel32or64(b'l^{__ABMultiValue=}^{__CFString=}', b'q^{__ABMultiValue=}^{__CFString=}'),), 'ABPickerSelectRecord': (b'v^{OpaqueABPicker=}@B',), 'ABMultiValueCreateMutableCopy': (b'^{__ABMultiValue=}^{__ABMultiValue=}', '', {'retval': {'already_cfretained': True}}), 'ABRecordRemoveValue': (b'B@^{__CFString=}',), 'ABPickerCopySelectedGroups': (b'^{__CFArray=}^{OpaqueABPicker=}', '', {'retval': {'already_cfretained': True}}), 'ABMultiValueCopyIdentifierAtIndex': (sel32or64(b'^{__CFString=}^{__ABMultiValue=}l', b'^{__CFString=}^{__ABMultiValue=}q'), '', {'retval': {'already_cfretained': True}}), 'ABCancelLoadingImageDataForTag': (sel32or64(b'vl', b'vq'),), 'ABCopyArrayOfMatchingRecords': (b'^{__CFArray=}^{__ABAddressBookRef=}^{__ABSearchElementRef=}', '', {'retval': {'already_cfretained': True}}), 'ABPickerRemoveProperty': (b'v^{OpaqueABPicker=}^{__CFString=}',), 'ABMultiValueCount': (sel32or64(b'l^{__ABMultiValue=}', b'q^{__ABMultiValue=}'),), 'ABPickerCopySelectedIdentifiers': (b'^{__CFArray=}^{OpaqueABPicker=}^{__ABPerson=}', '', {'retval': {'already_cfretained': True}}), 'ABGroupCreate': (b'^{__ABGroup=}', '', {'retval': {'already_cfretained': True}}), 'ABMultiValueCreateCopy': (b'^{__ABMultiValue=}^{__ABMultiValue=}', '', {'retval': {'already_cfretained': True}}), 'ABMultiValueAdd': (b'B^{__ABMultiValue=}@^{__CFString=}^^{__CFString}', '', {'arguments': {3: {'type_modifier': 'o'}}}), 'ABHasUnsavedChanges': (b'B^{__ABAddressBookRef=}',), 'ABMultiValueReplaceLabel': (sel32or64(b'B^{__ABMultiValue=}^{__CFString=}l', b'B^{__ABMultiValue=}^{__CFString=}q'),), 'ABGroupCopyParentGroups': (b'^{__CFArray=}^{__ABGroup=}', '', {'retval': {'already_cfretained': True}}), 'ABGroupSetDistributionIdentifier': (b'B^{__ABGroup=}^{__ABPerson=}^{__CFString=}^{__CFString=}',), 'ABPickerDeselectRecord': (b'v^{OpaqueABPicker=}@',), 'ABGroupCreateSearchElement': (sel32or64(b'^{__ABSearchElementRef=}^{__CFString=}^{__CFString=}^{__CFString=}@l', b'^{__ABSearchElementRef=}^{__CFString=}^{__CFString=}^{__CFString=}@q'), '', {'retval': {'already_cfretained': True}}), 'ABCopyRecordTypeFromUniqueId': (b'^{__CFString=}^{__ABAddressBookRef=}^{__CFString=}', '', {'retval': {'already_cfretained': True}}), 'ABRemoveRecord': (b'B^{__ABAddressBookRef=}@',), 'ABGroupCopyDistributionIdentifier': (b'^{__CFString=}^{__ABGroup=}^{__ABPerson=}^{__CFString=}', '', {'retval': {'already_cfretained': True}}), 'ABPersonCopyImageData': (b'^{__CFData=}^{__ABPerson=}', '', {'retval': {'already_cfretained': True}}), 'ABPickerDeselectGroup': (b'v^{OpaqueABPicker=}^{__ABGroup=}',), 'ABGroupRemoveGroup': (b'B^{__ABGroup=}^{__ABGroup=}',), 'ABRemoveProperties': (sel32or64(b'l^{__ABAddressBookRef=}^{__CFString=}^{__CFArray=}', b'q^{__ABAddressBookRef=}^{__CFString=}^{__CFArray=}'),), 'ABGroupCopyArrayOfAllSubgroups': (b'^{__CFArray=}^{__ABGroup=}', '', {'retval': {'already_cfretained': True}}), 'ABMultiValueCreate': (b'^{__ABMultiValue=}', '', {'retval': {'already_cfretained': True}}), 'ABPickerSelectInAddressBook': (b'v^{OpaqueABPicker=}',), 'ABGroupCopyArrayOfAllMembers': (b'^{__CFArray=}^{__ABGroup=}', '', {'retval': {'already_cfretained': True}}), 'ABSearchElementCreateWithConjunction': (sel32or64(b'^{__ABSearchElementRef=}l^{__CFArray=}', b'^{__ABSearchElementRef=}q^{__CFArray=}'), '', {'retval': {'already_cfretained': True}}), 'ABMultiValueCopyValueAtIndex': (sel32or64(b'@^{__ABMultiValue=}l', b'@^{__ABMultiValue=}q'), '', {'retval': {'already_cfretained': True}}), 'ABPersonSetImageData': (b'B^{__ABPerson=}^{__CFData=}',), 'ABCreateFormattedAddressFromDictionary': (b'^{__CFString=}^{__ABAddressBookRef=}^{__CFDictionary=}', '', {'retval': {'already_cfretained': True}}), 'ABRecordSetValue': (b'B@^{__CFString=}@',), 'ABPickerGetDelegate': (b'^{OpaqueHIObjectRef=}^{OpaqueABPicker=}',), 'ABPersonCreate': (b'^{__ABPerson=}', '', {'retval': {'already_cfretained': True}}), 'ABCopyArrayOfAllPeople': (b'^{__CFArray=}^{__ABAddressBookRef=}', '', {'retval': {'already_cfretained': True}}), 'ABPickerCopyProperties': (b'^{__CFArray=}^{OpaqueABPicker=}', '', {'retval': {'already_cfretained': True}}), 'ABMultiValueSetPrimaryIdentifier': (b'B^{__ABMultiValue=}^{__CFString=}',), 'ABPickerCopyDisplayedProperty': (b'^{__CFString=}^{OpaqueABPicker=}', '', {'retval': {'already_cfretained': True}}), 'ABPickerCopySelectedRecords': (b'^{__CFArray=}^{OpaqueABPicker=}', '', {'retval': {'already_cfretained': True}}), 'ABGroupAddGroup': (b'B^{__ABGroup=}^{__ABGroup=}',), 'ABLocalizedPropertyOrLabel': (b'@@',), 'ABMultiValueCreateMutable': (b'^{__ABMultiValue=}', '', {'retval': {'already_cfretained': True}}), 'ABRecordCreateCopy': (b'@@', '', {'retval': {'already_cfretained': True}}), 'ABGetMe': (b'^{__ABPerson=}^{__ABAddressBookRef=}',), 'ABPickerSetFrame': (sel32or64(b'v^{OpaqueABPicker=}^{_NSRect={_NSPoint=ff}{_NSSize=ff}}', b'v^{OpaqueABPicker=}^{CGRect={CGPoint=dd}{CGSize=dd}}'), '', {'arguments': {1: {'type_modifier': 'n'}}}), 'ABAddPropertiesAndTypes': (sel32or64(b'l^{__ABAddressBookRef=}^{__CFString=}^{__CFDictionary=}', b'q^{__ABAddressBookRef=}^{__CFString=}^{__CFDictionary=}'),), 'ABCopyRecordForUniqueId': (b'@^{__ABAddressBookRef=}^{__CFString=}', '', {'retval': {'already_cfretained': True}}), 'ABSetMe': (b'v^{__ABAddressBookRef=}^{__ABPerson=}',), 'ABRecordCopyValue': (b'@@^{__CFString=}', '', {'retval': {'already_cfretained': True}}), 'ABTypeOfProperty': (sel32or64(b'l^{__ABAddressBookRef=}^{__CFString=}^{__CFString=}', b'q^{__ABAddressBookRef=}^{__CFString=}^{__CFString=}'),), 'ABMultiValueInsert': (sel32or64(b'B^{__ABMultiValue=}@^{__CFString=}l^^{__CFString}', b'B^{__ABMultiValue=}@^{__CFString=}q^^{__CFString}'), '', {'arguments': {4: {'type_modifier': 'o'}}}), 'ABPickerAddProperty': (b'v^{OpaqueABPicker=}^{__CFString=}',), 'ABMultiValueCopyLabelAtIndex': (sel32or64(b'^{__CFString=}^{__ABMultiValue=}l', b'^{__CFString=}^{__ABMultiValue=}q'), '', {'retval': {'already_cfretained': True}}), 'ABPickerChangeAttributes': (sel32or64(b'v^{OpaqueABPicker=}LL', b'v^{OpaqueABPicker=}II'),), 'ABPickerDeselectAll': (b'v^{OpaqueABPicker=}',), 'ABBeginLoadingImageDataForClient': (sel32or64(b'l^{__ABPerson=}^?^v', b'q^{__ABPerson=}^?^v'), '', {'arguments': {1: {'callable': {'retval': {'type': b'v'}, 'arguments': {0: {'type': b'^{__CFData=}'}, 1: {'type': b'l'}, 2: {'type': b'^v'}}}}}}), 'ABGetSharedAddressBook': (b'^{__ABAddressBookRef=}',), 'ABRecordIsReadOnly': (b'B@',), 'ABPickerIsVisible': (b'B^{OpaqueABPicker=}',), 'ABRecordCopyUniqueId': (b'^{__CFString=}@', '', {'retval': {'already_cfretained': True}}), 'ABCopyArrayOfAllGroups': (b'^{__CFArray=}^{__ABAddressBookRef=}', '', {'retval': {'already_cfretained': True}}), 'ABPickerCreate': (b'^{OpaqueABPicker=}', '', {'retval': {'already_cfretained': True}}), 'ABGroupRemoveMember': (b'B^{__ABGroup=}^{__ABPerson=}',), 'ABPickerDeselectIdentifier': (b'v^{OpaqueABPicker=}^{__ABPerson=}^{__CFString=}',), 'ABPickerSetColumnTitle': (b'v^{OpaqueABPicker=}^{__CFString=}^{__CFString=}',), 'ABPickerCopySelectedValues': (b'^{__CFArray=}^{OpaqueABPicker=}', '', {'retval': {'already_cfretained': True}}), 'ABPickerGetFrame': (sel32or64(b'v^{OpaqueABPicker=}^{_NSRect={_NSPoint=ff}{_NSSize=ff}}', b'v^{OpaqueABPicker=}^{CGRect={CGPoint=dd}{CGSize=dd}}'), '', {'arguments': {1: {'type_modifier': 'o'}}}), 'ABMultiValuePropertyType': (sel32or64(b'l^{__ABMultiValue=}', b'q^{__ABMultiValue=}'),), 'ABPersonCopyVCardRepresentation': (b'^{__CFData=}^{__ABPerson=}', '', {'retval': {'already_cfretained': True}}), 'ABCopyArrayOfPropertiesForRecordType': (b'^{__CFArray=}^{__ABAddressBookRef=}^{__CFString=}', '', {'retval': {'already_cfretained': True}}), 'ABPickerCopyColumnTitle': (b'^{__CFString=}^{OpaqueABPicker=}^{__CFString=}', '', {'retval': {'already_cfretained': True}}), 'ABPickerSetVisibility': (b'v^{OpaqueABPicker=}B',), 'ABPersonCopyParentGroups': (b'^{__CFArray=}^{__ABPerson=}', '', {'retval': {'already_cfretained': True}}), 'ABCopyLocalizedPropertyOrLabel': (b'^{__CFString=}^{__CFString=}', '', {'retval': {'already_cfretained': True}}), 'ABPickerEditInAddressBook': (b'v^{OpaqueABPicker=}',), 'ABPickerSetDisplayedProperty': (b'v^{OpaqueABPicker=}^{__CFString=}',)} cftypes=[('ABAddressBookRef', b'^{__ABAddressBookRef=}', None, 'ABAddressBook'), ('ABGroupRef', b'^{__ABGroup=}', None, 'ABGroup'), ('ABMultiValueRef', b'^{__ABMultiValue=}', None, 'ABMultiValue'), ('ABMutableMultiValueRef', b'^{__ABMultiValue=}', None, 'ABMutableMultiValue'), ('ABPersonRef', b'^{__ABPerson=}', None, 'ABPerson'), ('ABSearchElementRef', b'^{__ABSearchElementRef=}', None, 'ABSearchElement'), ('ABPickerRef', b'^{OpaqueABPicker}', None, 'ABPeoplePickerView')] r = objc.registerMetaDataForSelector objc._updatingMetadata(True) try: r(b'ABAddressBook', b'addRecord:', {'retval': {'type': 'Z'}}) r(b'ABAddressBook', b'addRecord:error:', {'retval': {'type': 'Z'}, 'arguments': {3: {'type_modifier': b'o'}}}) r(b'ABAddressBook', b'hasUnsavedChanges', {'retval': {'type': 'Z'}}) r(b'ABAddressBook', b'removeRecord:', {'retval': {'type': 'Z'}}) r(b'ABAddressBook', b'removeRecord:error:', {'retval': {'type': 'Z'}, 'arguments': {3: {'type_modifier': b'o'}}}) r(b'ABAddressBook', b'save', {'retval': {'type': 'Z'}}) r(b'ABAddressBook', b'saveAndReturnError:', {'retval': {'type': 'Z'}, 'arguments': {2: {'type_modifier': b'o'}}})
import objc, sys if sys.maxsize > 2**32: def sel32or64(a, b): return b else: def sel32or64(a, b): return a misc = {} misc.update({ 'CMQuaternion': objc.createStructType('CMQuaternion', b'{_CMQuaternion=dddd}', ['x', 'y', 'z', 'w']), 'CMMagneticField': objc.createStructType('CMMagneticField', b'{_CMMagneticField=ddd}', ['x', 'y', 'z']), 'CMCalibratedMagneticField': objc.createStructType( 'CMCalibratedMagneticField', b'{_CMCalibratedMagneticField={_CMMagneticField=ddd}i}', ['field', 'accuracy']), 'CMRotationRate': objc.createStructType('CMRotationRate', b'{_CMRotationRate=ddd}', ['x', 'y', 'z']), 'CMRotationMatrix': objc.createStructType( 'CMRotationMatrix', b'{_CMRotationMatrix=ddddddddd}', ['m11', 'm12', 'm13', 'm21', 'm22', 'm23', 'm31', 'm32', 'm33']),
def littleOrBig(a, b): return a else: def littleOrBig(a, b): return b misc = {} misc.update({ 'CVTimeStamp': objc.createStructType( 'CVTimeStamp', sel32or64(b'{_CVTimeStamp=IiqQdq{CVSMPTETime=ssLLLssss}QQ}', b'{_CVTimeStamp=IiqQdq{CVSMPTETime=ssIIIssss}QQ}'), [ 'version', 'videoTimeScale', 'videoTime', 'hostTime', 'rateScalar', 'videoRefreshPeriod', 'smpteTime', 'flags', 'reserved' ]), 'CVPlanarPixelBufferInfo_YCbCrBiPlanar': objc.createStructType( 'CVPlanarPixelBufferInfo_YCbCrBiPlanar', b'{CVPlanarPixelBufferInfo_YCbCrBiPlanar={CVPlanarComponentInfo=iI}{CVPlanarComponentInfo=iI}}', ['componentInfoY', 'componentInfoCbCr']), 'CVPlanarPixelBufferInfo_YCbCrPlanar': objc.createStructType( 'CVPlanarPixelBufferInfo_YCbCrPlanar', b'{CVPlanarPixelBufferInfo_YCbCrPlanar={CVPlanarComponentInfo=iI}{CVPlanarComponentInfo=iI}{CVPlanarComponentInfo=iI}}', ['componentInfoY', 'componentInfoCb', 'componentInfoCr']), 'CVPlanarComponentInfo': objc.createStructType('CVPlanarComponentInfo',
def parseBridgeSupport(xmldata, globals, frameworkName, dylib_path=None, inlineTab=None): if dylib_path: lib = ctypes.cdll.LoadLibrary(dylib_path) _libraries.append(lib) objc._updatingMetadata(True) try: prs = _BridgeSupportParser(xmldata, frameworkName) globals.update(prs.values) for entry in prs.cftypes: tp = objc.registerCFSignature(*entry) globals[entry[0]] = tp for name, typestr in prs.opaque: globals[name] = objc.createOpaquePointerType(name, typestr) for name, typestr, alias in prs.structs: if alias is not None: globals[name] = alias objc.createStructAlias(name, typestr, alias) else: globals[name] = value = objc.createStructType( name, typestr, None) for name, typestr, magic in prs.constants: try: value = objc._loadConstant(name, typestr, magic) except AttributeError: continue globals[name] = value for class_name, sel_name, is_class in prs.meta: objc.registerMetaDataForSelector( class_name, sel_name, prs.meta[(class_name, sel_name, is_class)]) for name, method_list in prs.informal_protocols: proto = objc.informal_protocol(name, method_list) # XXX: protocols submodule should be deprecated if "protocols" not in globals: mod_name = "%s.protocols" % (frameworkName, ) m = globals["protocols"] = type(objc)(mod_name) sys.modules[mod_name] = m else: m = globals["protocols"] setattr(m, name, proto) if prs.functions: objc.loadBundleFunctions(None, globals, prs.functions) if inlineTab is not None: objc.loadFunctionList(inlineTab, globals, prs.functions) for name, orig in prs.func_aliases: try: globals[name] = globals[orig] except KeyError: pass finally: objc._updatingMetadata(False)
def sel32or64(a, b): return b else: def sel32or64(a, b): return a misc = {} misc.update( { "CLLocationCoordinate2D": objc.createStructType( "CLLocationCoordinate2D", b"{CLLocationCoordinate2D=dd}", ["latitude", "longitude"], ) } ) constants = """$CLLocationDistanceMax@d$CLTimeIntervalMax@d$kCLDistanceFilterNone@d$kCLErrorDomain$kCLErrorUserInfoAlternateRegionKey$kCLHeadingFilterNone@d$kCLLocationAccuracyBest@d$kCLLocationAccuracyBestForNavigation@d$kCLLocationAccuracyHundredMeters@d$kCLLocationAccuracyKilometer@d$kCLLocationAccuracyNearestTenMeters@d$kCLLocationAccuracyReduced@d$kCLLocationAccuracyThreeKilometers@d$kCLLocationCoordinate2DInvalid@{CLLocationCoordinate2D=dd}$""" enums = """$CLAccuracyAuthorizationFullAccuracy@0$CLAccuracyAuthorizationReducedAccuracy@1$CLActivityTypeAirborne@5$CLActivityTypeAutomotiveNavigation@2$CLActivityTypeFitness@3$CLActivityTypeOther@1$CLActivityTypeOtherNavigation@4$CLDeviceOrientationFaceDown@6$CLDeviceOrientationFaceUp@5$CLDeviceOrientationLandscapeLeft@3$CLDeviceOrientationLandscapeRight@4$CLDeviceOrientationPortrait@1$CLDeviceOrientationPortraitUpsideDown@2$CLDeviceOrientationUnknown@0$CLProximityFar@3$CLProximityImmediate@1$CLProximityNear@2$CLProximityUnknown@0$CLRegionStateInside@1$CLRegionStateOutside@2$CLRegionStateUnknown@0$kCLAuthorizationStatusAuthorized@3$kCLAuthorizationStatusAuthorizedAlways@3$kCLAuthorizationStatusAuthorizedWhenInUse@4$kCLAuthorizationStatusDenied@2$kCLAuthorizationStatusNotDetermined@0$kCLAuthorizationStatusRestricted@1$kCLErrorDeferredAccuracyTooLow@13$kCLErrorDeferredCanceled@15$kCLErrorDeferredDistanceFiltered@14$kCLErrorDeferredFailed@11$kCLErrorDeferredNotUpdatingLocation@12$kCLErrorDenied@1$kCLErrorGeocodeFoundPartialResult@9$kCLErrorHeadingFailure@3$kCLErrorLocationUnknown@0$kCLErrorNetwork@2$kCLErrorPromptDeclined@18$kCLErrorRangingFailure@17$kCLErrorRangingUnavailable@16$kCLErrorRegionMonitoringDenied@4$kCLErrorRegionMonitoringFailure@5$kCLErrorRegionMonitoringResponseDelayed@7$kCLErrorRegionMonitoringSetupDelayed@6$""" misc.update({}) functions = { "CLLocationCoordinate2DIsValid": (b"Z{CLLocationCoordinate2D=dd}",), "CLLocationCoordinate2DMake": (b"{CLLocationCoordinate2D=dd}dd",), } aliases = {"kCLAuthorizationStatusAuthorized": "kCLAuthorizationStatusAuthorizedAlways"} r = objc.registerMetaDataForSelector objc._updatingMetadata(True) try:
if sys.byteorder == 'little': def littleOrBig(a, b): return a else: def littleOrBig(a, b): return b misc = {} misc.update({ 'FSEventStreamContext': objc.createStructType('FSEventStreamContext', b'{FSEventStreamContext=l^v^?^?^?}', []) }) constants = '''$$''' enums = '''$kFSEventStreamCreateFlagFileEvents@16$kFSEventStreamCreateFlagIgnoreSelf@8$kFSEventStreamCreateFlagMarkSelf@32$kFSEventStreamCreateFlagNoDefer@2$kFSEventStreamCreateFlagNone@0$kFSEventStreamCreateFlagUseCFTypes@1$kFSEventStreamCreateFlagUseExtendedData@64$kFSEventStreamCreateFlagWatchRoot@4$kFSEventStreamEventFlagEventIdsWrapped@8$kFSEventStreamEventFlagHistoryDone@16$kFSEventStreamEventFlagItemChangeOwner@16384$kFSEventStreamEventFlagItemCloned@4194304$kFSEventStreamEventFlagItemCreated@256$kFSEventStreamEventFlagItemFinderInfoMod@8192$kFSEventStreamEventFlagItemInodeMetaMod@1024$kFSEventStreamEventFlagItemIsDir@131072$kFSEventStreamEventFlagItemIsFile@65536$kFSEventStreamEventFlagItemIsHardlink@1048576$kFSEventStreamEventFlagItemIsLastHardlink@2097152$kFSEventStreamEventFlagItemIsSymlink@262144$kFSEventStreamEventFlagItemModified@4096$kFSEventStreamEventFlagItemRemoved@512$kFSEventStreamEventFlagItemRenamed@2048$kFSEventStreamEventFlagItemXattrMod@32768$kFSEventStreamEventFlagKernelDropped@4$kFSEventStreamEventFlagMount@64$kFSEventStreamEventFlagMustScanSubDirs@1$kFSEventStreamEventFlagNone@0$kFSEventStreamEventFlagOwnEvent@524288$kFSEventStreamEventFlagRootChanged@32$kFSEventStreamEventFlagUnmount@128$kFSEventStreamEventFlagUserDropped@2$kFSEventStreamEventIdSinceNow@18446744073709551615$''' misc.update({ 'kFSEventStreamEventExtendedDataPathKey': b'path'.decode("utf-8"), 'kFSEventStreamEventExtendedFileIDKey': b'fileID'.decode("utf-8") }) functions = { 'FSEventStreamShow': (b'v^{__FSEventStream=}', ), 'FSEventStreamGetLatestEventId': (b'Q^{__FSEventStream=}', ), 'FSEventStreamRetain': (b'v^{__FSEventStream=}', ), 'FSEventStreamSetDispatchQueue': (b'v^{__FSEventStream=}^{dispatch_queue_s=}', ), 'FSEventsCopyUUIDForDevice': (b'^{__CFUUID=}i', '', { 'retval': {
if sys.byteorder == 'little': def littleOrBig(a, b): return a else: def littleOrBig(a, b): return b misc = {} misc.update({ 'GKBox': objc.createStructType('GKBox', b'{GKBox=}', ['boxMin', 'boxMax']), 'GKQuad': objc.createStructType('GKQuad', b'{GKQuad=}', ['quadMin', 'quadMax']) }) constants = '''$$''' enums = '''$GKGameModelMaxScore@16777216$GKGameModelMinScore@-16777216$GKMeshGraphTriangulationModeCenters@2$GKMeshGraphTriangulationModeEdgeMidpoints@4$GKMeshGraphTriangulationModeVertices@1$GKRTreeSplitStrategyHalve@0$GKRTreeSplitStrategyLinear@1$GKRTreeSplitStrategyQuadratic@2$GKRTreeSplitStrategyReduceOverlap@3$GK_VERSION@80000000$''' misc.update({}) aliases = {'GK_AVAILABLE': '__OSX_AVAILABLE_STARTING'} r = objc.registerMetaDataForSelector objc._updatingMetadata(True) try: r(b'GKAgent3D', b'rightHanded', {'retval': {'type': b'Z'}}) r(b'GKAgent3D', b'rotation', {'retval': {'type': b'{_matrix_float3x3=?}'}}) r(b'GKAgent3D', b'setRightHanded:', {'arguments': {2: {'type': b'Z'}}}) r(b'GKAgent3D', b'setRotation:', {'arguments': {
# Last update: Wed Sep 19 16:12:12 2012 import objc, sys if sys.maxsize > 2 ** 32: def sel32or64(a, b): return b else: def sel32or64(a, b): return a if sys.byteorder == 'little': def littleOrBig(a, b): return a else: def littleOrBig(a, b): return b misc = { } misc.update({'CLLocationCoordinate2D': objc.createStructType('CLLocationCoordinate2D', b'{_CLLocationCoordinate2D=dd}', ['latitude', 'longitude'])}) constants = '''$kCLDistanceFilterNone@d$kCLErrorDomain$kCLErrorUserInfoAlternateRegionKey$kCLHeadingFilterNone@d$kCLLocationAccuracyBest@d$kCLLocationAccuracyBestForNavigation@d$kCLLocationAccuracyHundredMeters@d$kCLLocationAccuracyKilometer@d$kCLLocationAccuracyNearestTenMeters@d$kCLLocationAccuracyThreeKilometers@d$kCLLocationCoordinate2DInvalid@{_CLLocationCoordinate2D=dd}$''' enums = '''$CLDeviceOrientationFaceDown@6$CLDeviceOrientationFaceUp@5$CLDeviceOrientationLandscapeLeft@3$CLDeviceOrientationLandscapeRight@4$CLDeviceOrientationPortrait@1$CLDeviceOrientationPortraitUpsideDown@2$CLDeviceOrientationUnknown@0$kCLAuthorizationStatusAuthorized@3$kCLAuthorizationStatusDenied@2$kCLAuthorizationStatusNotDetermined@0$kCLAuthorizationStatusRestricted@1$kCLErrorDenied@1$kCLErrorGeocodeFoundPartialResult@9$kCLErrorHeadingFailure@3$kCLErrorLocationUnknown@0$kCLErrorNetwork@2$kCLErrorRegionMonitoringDenied@4$kCLErrorRegionMonitoringFailure@5$kCLErrorRegionMonitoringResponseDelayed@7$kCLErrorRegionMonitoringSetupDelayed@6$''' misc.update({}) functions={'CLLocationCoordinate2DIsValid': (b'Z{_CLLocationCoordinate2D=dd}',), 'CLLocationCoordinate2DMake': (b'{_CLLocationCoordinate2D=dd}dd',)} r = objc.registerMetaDataForSelector objc._updatingMetadata(True) try: r(b'CLGeocoder', b'geocodeAddressDictionary:completionHandler:', {'arguments': {3: {'callable': {'retval': {'type': b'v'}, 'arguments': {0: {'type': b'^v'}, 1: {'type': b'@'}, 2: {'type': b'@'}}}}}}) r(b'CLGeocoder', b'geocodeAddressString:completionHandler:', {'arguments': {3: {'callable': {'retval': {'type': b'v'}, 'arguments': {0: {'type': b'^v'}, 1: {'type': b'@'}, 2: {'type': b'@'}}}}}}) r(b'CLGeocoder', b'geocodeAddressString:inRegion:completionHandler:', {'arguments': {4: {'callable': {'retval': {'type': b'v'}, 'arguments': {0: {'type': b'^v'}, 1: {'type': b'@'}, 2: {'type': b'@'}}}}}}) r(b'CLGeocoder', b'isGeocoding', {'retval': {'type': b'Z'}}) r(b'CLGeocoder', b'reverseGeocodeLocation:completionHandler:', {'arguments': {3: {'callable': {'retval': {'type': b'v'}, 'arguments': {0: {'type': b'^v'}, 1: {'type': b'@'}, 2: {'type': b'@'}}}}}}) r(b'CLLocation', b'coordinate', {'retval': {'type': '{_CLLocationCoordinate2D=dd}'}}) r(b'CLLocation', b'initWithCoordinate:altitude:horizontalAccuracy:verticalAccuracy:course:speed:timestamp:', {'arguments': {2: {'type': b'{_CLLocationCoordinate2D=dd}'}}}) r(b'CLLocation', b'initWithCoordinate:altitude:horizontalAccuracy:verticalAccuracy:timestamp:', {'arguments': {2: {'type': '{_CLLocationCoordinate2D=dd}'}}})
if sys.byteorder == "little": def littleOrBig(a, b): return a else: def littleOrBig(a, b): return b misc = {} misc.update({ "FSEventStreamContext": objc.createStructType("FSEventStreamContext", b"{FSEventStreamContext=l^v^?^?^?}", []) }) constants = """$$""" enums = """$kFSEventStreamCreateFlagFileEvents@16$kFSEventStreamCreateFlagIgnoreSelf@8$kFSEventStreamCreateFlagMarkSelf@32$kFSEventStreamCreateFlagNoDefer@2$kFSEventStreamCreateFlagNone@0$kFSEventStreamCreateFlagUseCFTypes@1$kFSEventStreamCreateFlagUseExtendedData@64$kFSEventStreamCreateFlagWatchRoot@4$kFSEventStreamEventFlagEventIdsWrapped@8$kFSEventStreamEventFlagHistoryDone@16$kFSEventStreamEventFlagItemChangeOwner@16384$kFSEventStreamEventFlagItemCloned@4194304$kFSEventStreamEventFlagItemCreated@256$kFSEventStreamEventFlagItemFinderInfoMod@8192$kFSEventStreamEventFlagItemInodeMetaMod@1024$kFSEventStreamEventFlagItemIsDir@131072$kFSEventStreamEventFlagItemIsFile@65536$kFSEventStreamEventFlagItemIsHardlink@1048576$kFSEventStreamEventFlagItemIsLastHardlink@2097152$kFSEventStreamEventFlagItemIsSymlink@262144$kFSEventStreamEventFlagItemModified@4096$kFSEventStreamEventFlagItemRemoved@512$kFSEventStreamEventFlagItemRenamed@2048$kFSEventStreamEventFlagItemXattrMod@32768$kFSEventStreamEventFlagKernelDropped@4$kFSEventStreamEventFlagMount@64$kFSEventStreamEventFlagMustScanSubDirs@1$kFSEventStreamEventFlagNone@0$kFSEventStreamEventFlagOwnEvent@524288$kFSEventStreamEventFlagRootChanged@32$kFSEventStreamEventFlagUnmount@128$kFSEventStreamEventFlagUserDropped@2$kFSEventStreamEventIdSinceNow@18446744073709551615$""" misc.update({ "kFSEventStreamEventExtendedDataPathKey": b"path".decode("utf-8"), "kFSEventStreamEventExtendedFileIDKey": b"fileID".decode("utf-8"), }) functions = { "FSEventStreamShow": (b"v^{__FSEventStream=}", ), "FSEventStreamGetLatestEventId": (b"Q^{__FSEventStream=}", ), "FSEventStreamRetain": (b"v^{__FSEventStream=}", ), "FSEventStreamSetDispatchQueue": (b"v^{__FSEventStream=}^{dispatch_queue_s=}", ), "FSEventsCopyUUIDForDevice": ( b"^{__CFUUID=}i",
if sys.byteorder == 'little': def littleOrBig(a, b): return a else: def littleOrBig(a, b): return b misc = {} misc.update({ 'MKMapRect': objc.createStructType('MKMapRect', b'{_MKMapRect={_MKMapPoint=dd}{_MKMapSize=dd}}', ['origin', 'size']), 'MKMapSize': objc.createStructType('MKMapSize', b'{_MKMapSize=dd}', ['width', 'height']), 'MKCoordinateRegion': objc.createStructType( 'MKCoordinateRegion', b'{_MKCoordinateRegion={_CLLocationCoordinate2D=dd}{_MKCoordinateSpan=dd}}', ['center', 'span']), 'MKCoordinateSpan': objc.createStructType('MKCoordinateSpan', b'{_MKCoordinateSpan=dd}', ['latitudeDelta', 'longitudeDelta']), 'MKTileOverlayPath': objc.createStructType('MKTileOverlayPath', b'{_MKTileOverlayPath=qqqd}', ['x', 'y', 'z', 'contentScaleFactor']),
if sys.byteorder == 'little': def littleOrBig(a, b): return a else: def littleOrBig(a, b): return b misc = {} misc.update({ 'CFHostClientContext': objc.createStructType( 'CFHostClientContext', sel32or64(b'{CFHostClientContext=l^v^?^?^?}', b'{CFHostClientContext=q^v^?^?^?}'), []), 'CFNetServiceClientContext': objc.createStructType( 'CFNetServiceClientContext', sel32or64(b'{CFNetServiceClientContext=l^v^?^?^?}', b'{CFNetServiceClientContext=q^v^?^?^?}'), []) }) constants = '''$kCFDNSServiceFailureKey@^{__CFString=}$kCFErrorDomainCFNetwork@^{__CFString=}$kCFErrorDomainWinSock@^{__CFString=}$kCFFTPResourceGroup@^{__CFString=}$kCFFTPResourceLink@^{__CFString=}$kCFFTPResourceModDate@^{__CFString=}$kCFFTPResourceMode@^{__CFString=}$kCFFTPResourceName@^{__CFString=}$kCFFTPResourceOwner@^{__CFString=}$kCFFTPResourceSize@^{__CFString=}$kCFFTPResourceType@^{__CFString=}$kCFFTPStatusCodeKey@^{__CFString=}$kCFGetAddrInfoFailureKey@^{__CFString=}$kCFHTTPAuthenticationAccountDomain@^{__CFString=}$kCFHTTPAuthenticationPassword@^{__CFString=}$kCFHTTPAuthenticationSchemeBasic@^{__CFString=}$kCFHTTPAuthenticationSchemeDigest@^{__CFString=}$kCFHTTPAuthenticationSchemeKerberos@^{__CFString=}$kCFHTTPAuthenticationSchemeNTLM@^{__CFString=}$kCFHTTPAuthenticationSchemeNegotiate@^{__CFString=}$kCFHTTPAuthenticationSchemeNegotiate2@^{__CFString=}$kCFHTTPAuthenticationSchemeOAuth1@^{__CFString=}$kCFHTTPAuthenticationSchemeXMobileMeAuthToken@^{__CFString=}$kCFHTTPAuthenticationUsername@^{__CFString=}$kCFHTTPVersion1_0@^{__CFString=}$kCFHTTPVersion1_1@^{__CFString=}$kCFHTTPVersion2_0@^{__CFString=}$kCFNetworkProxiesExceptionsList@^{__CFString=}$kCFNetworkProxiesExcludeSimpleHostnames@^{__CFString=}$kCFNetworkProxiesFTPEnable@^{__CFString=}$kCFNetworkProxiesFTPPassive@^{__CFString=}$kCFNetworkProxiesFTPPort@^{__CFString=}$kCFNetworkProxiesFTPProxy@^{__CFString=}$kCFNetworkProxiesGopherEnable@^{__CFString=}$kCFNetworkProxiesGopherPort@^{__CFString=}$kCFNetworkProxiesGopherProxy@^{__CFString=}$kCFNetworkProxiesHTTPEnable@^{__CFString=}$kCFNetworkProxiesHTTPPort@^{__CFString=}$kCFNetworkProxiesHTTPProxy@^{__CFString=}$kCFNetworkProxiesHTTPSEnable@^{__CFString=}$kCFNetworkProxiesHTTPSPort@^{__CFString=}$kCFNetworkProxiesHTTPSProxy@^{__CFString=}$kCFNetworkProxiesProxyAutoConfigEnable@^{__CFString=}$kCFNetworkProxiesProxyAutoConfigJavaScript@^{__CFString=}$kCFNetworkProxiesProxyAutoConfigURLString@^{__CFString=}$kCFNetworkProxiesProxyAutoDiscoveryEnable@^{__CFString=}$kCFNetworkProxiesRTSPEnable@^{__CFString=}$kCFNetworkProxiesRTSPPort@^{__CFString=}$kCFNetworkProxiesRTSPProxy@^{__CFString=}$kCFNetworkProxiesSOCKSEnable@^{__CFString=}$kCFNetworkProxiesSOCKSPort@^{__CFString=}$kCFNetworkProxiesSOCKSProxy@^{__CFString=}$kCFProxyAutoConfigurationHTTPResponseKey@^{__CFString=}$kCFProxyAutoConfigurationJavaScriptKey@^{__CFString=}$kCFProxyAutoConfigurationURLKey@^{__CFString=}$kCFProxyHostNameKey@^{__CFString=}$kCFProxyPasswordKey@^{__CFString=}$kCFProxyPortNumberKey@^{__CFString=}$kCFProxyTypeAutoConfigurationJavaScript@^{__CFString=}$kCFProxyTypeAutoConfigurationURL@^{__CFString=}$kCFProxyTypeFTP@^{__CFString=}$kCFProxyTypeHTTP@^{__CFString=}$kCFProxyTypeHTTPS@^{__CFString=}$kCFProxyTypeKey@^{__CFString=}$kCFProxyTypeNone@^{__CFString=}$kCFProxyTypeSOCKS@^{__CFString=}$kCFProxyUsernameKey@^{__CFString=}$kCFSOCKSNegotiationMethodKey@^{__CFString=}$kCFSOCKSStatusCodeKey@^{__CFString=}$kCFSOCKSVersionKey@^{__CFString=}$kCFStreamErrorDomainSOCKS@i$kCFStreamErrorDomainSSL@i$kCFStreamNetworkServiceType@^{__CFString=}$kCFStreamNetworkServiceTypeBackground@^{__CFString=}$kCFStreamNetworkServiceTypeCallSignaling@^{__CFString=}$kCFStreamNetworkServiceTypeVideo@^{__CFString=}$kCFStreamNetworkServiceTypeVoIP@^{__CFString=}$kCFStreamNetworkServiceTypeVoice@^{__CFString=}$kCFStreamPropertyConnectionIsCellular@^{__CFString=}$kCFStreamPropertyFTPAttemptPersistentConnection@^{__CFString=}$kCFStreamPropertyFTPFetchResourceInfo@^{__CFString=}$kCFStreamPropertyFTPFileTransferOffset@^{__CFString=}$kCFStreamPropertyFTPPassword@^{__CFString=}$kCFStreamPropertyFTPProxy@^{__CFString=}$kCFStreamPropertyFTPProxyHost@^{__CFString=}$kCFStreamPropertyFTPProxyPassword@^{__CFString=}$kCFStreamPropertyFTPProxyPort@^{__CFString=}$kCFStreamPropertyFTPProxyUser@^{__CFString=}$kCFStreamPropertyFTPResourceSize@^{__CFString=}$kCFStreamPropertyFTPUsePassiveMode@^{__CFString=}$kCFStreamPropertyFTPUserName@^{__CFString=}$kCFStreamPropertyHTTPAttemptPersistentConnection@^{__CFString=}$kCFStreamPropertyHTTPFinalRequest@^{__CFString=}$kCFStreamPropertyHTTPFinalURL@^{__CFString=}$kCFStreamPropertyHTTPProxy@^{__CFString=}$kCFStreamPropertyHTTPProxyHost@^{__CFString=}$kCFStreamPropertyHTTPProxyPort@^{__CFString=}$kCFStreamPropertyHTTPRequestBytesWrittenCount@^{__CFString=}$kCFStreamPropertyHTTPResponseHeader@^{__CFString=}$kCFStreamPropertyHTTPSProxyHost@^{__CFString=}$kCFStreamPropertyHTTPSProxyPort@^{__CFString=}$kCFStreamPropertyHTTPShouldAutoredirect@^{__CFString=}$kCFStreamPropertyNoCellular@^{__CFString=}$kCFStreamPropertyProxyLocalBypass@^{__CFString=}$kCFStreamPropertySOCKSPassword@^{__CFString=}$kCFStreamPropertySOCKSProxy@^{__CFString=}$kCFStreamPropertySOCKSProxyHost@^{__CFString=}$kCFStreamPropertySOCKSProxyPort@^{__CFString=}$kCFStreamPropertySOCKSUser@^{__CFString=}$kCFStreamPropertySOCKSVersion@^{__CFString=}$kCFStreamPropertySSLContext@^{__CFString=}$kCFStreamPropertySSLPeerCertificates@^{__CFString=}$kCFStreamPropertySSLPeerTrust@^{__CFString=}$kCFStreamPropertySSLSettings@^{__CFString=}$kCFStreamPropertyShouldCloseNativeSocket@^{__CFString=}$kCFStreamPropertySocketExtendedBackgroundIdleMode@^{__CFString=}$kCFStreamPropertySocketRemoteHost@^{__CFString=}$kCFStreamPropertySocketRemoteNetService@^{__CFString=}$kCFStreamPropertySocketSecurityLevel@^{__CFString=}$kCFStreamSSLAllowsAnyRoot@^{__CFString=}$kCFStreamSSLAllowsExpiredCertificates@^{__CFString=}$kCFStreamSSLAllowsExpiredRoots@^{__CFString=}$kCFStreamSSLCertificates@^{__CFString=}$kCFStreamSSLIsServer@^{__CFString=}$kCFStreamSSLLevel@^{__CFString=}$kCFStreamSSLPeerName@^{__CFString=}$kCFStreamSSLValidatesCertificateChain@^{__CFString=}$kCFStreamSocketSOCKSVersion4@^{__CFString=}$kCFStreamSocketSOCKSVersion5@^{__CFString=}$kCFStreamSocketSecurityLevelNegotiatedSSL@^{__CFString=}$kCFStreamSocketSecurityLevelNone@^{__CFString=}$kCFStreamSocketSecurityLevelSSLv2@^{__CFString=}$kCFStreamSocketSecurityLevelSSLv3@^{__CFString=}$kCFStreamSocketSecurityLevelTLSv1@^{__CFString=}$kCFURLErrorFailingURLErrorKey@^{__CFString=}$kCFURLErrorFailingURLStringErrorKey@^{__CFString=}$''' constants = constants + '$kCFStreamErrorDomainNetServices@%s$' % (sel32or64( 'l', 'i'), ) constants = constants + '$kCFStreamErrorDomainFTP@%s$' % (sel32or64('l', 'i'), ) constants = constants + '$kCFStreamErrorDomainSystemConfiguration@%s$' % ( sel32or64('l', 'i'), ) constants = constants + '$kCFStreamErrorDomainWinSock@%s$' % (sel32or64(
def littleOrBig(a, b): return a else: def littleOrBig(a, b): return b misc = { "IBDocumentStorage*": objc.createOpaquePointerType( "IBDocumentStorage*", b"^{IBDocumentStorage=}" ), "IBInset": objc.createStructType( "IBInset", b'{IBInsetTag="left"f"top"f"right"f"bottom"f}', None ), } constants = """$IBAdditionalLocalizableKeyPaths$IBAttributeKeyPaths$IBLocalizableGeometryKeyPaths$IBLocalizableStringKeyPaths$IBToManyRelationshipKeyPaths$IBToOneRelationshipKeyPaths$""" enums = """$IBMaxXDirection@2$IBMaxXMaxYDirection@10$IBMaxXMinYDirection@6$IBMaxYDirection@8$IBMinXDirection@1$IBMinXMaxYDirection@9$IBMinXMinYDirection@5$IBMinYDirection@4$IBNoDirection@0$""" misc.update({}) functions = {} cftypes = [] r = objc.registerMetaDataForSelector objc._updatingMetadata(True) try: pass r( b"IBDocument", b"addObject:toParent:", {"retval": {"type": b"v"}, "arguments": {2: {"type": b"@"}, 3: {"type": b"@"}}},
# Last update: Thu Jul 21 08:47:20 2011 import objc, sys if sys.maxsize > 2 ** 32: def sel32or64(a, b): return b else: def sel32or64(a, b): return a if sys.byteorder == 'little': def littleOrBig(a, b): return a else: def littleOrBig(a, b): return b misc = { "IBDocumentStorage*": objc.createOpaquePointerType('IBDocumentStorage*', b'^{IBDocumentStorage=}'), "IBInset": objc.createStructType('IBInset', b'{IBInsetTag="left"f"top"f"right"f"bottom"f}', None), } constants = '''$IBAdditionalLocalizableKeyPaths$IBAttributeKeyPaths$IBLocalizableGeometryKeyPaths$IBLocalizableStringKeyPaths$IBToManyRelationshipKeyPaths$IBToOneRelationshipKeyPaths$''' enums = '''$IBMaxXDirection@2$IBMaxXMaxYDirection@10$IBMaxXMinYDirection@6$IBMaxYDirection@8$IBMinXDirection@1$IBMinXMaxYDirection@9$IBMinXMinYDirection@5$IBMinYDirection@4$IBNoDirection@0$''' misc.update({}) functions = {} cftypes = [] r = objc.registerMetaDataForSelector objc._updatingMetadata(True) try: pass r(b'IBDocument', b'addObject:toParent:', {'retval': {'type': b'v'}, 'arguments': {2: {'type': b'@'}, 3: {'type': b'@'}}}) r(b'IBDocument', b'childrenOfObject:', {'retval': {'type': b'@'}, 'arguments': {2: {'type': b'@'}}}) r(b'IBDocument', b'connectAction:ofSourceObject:toDestinationObject:', {'retval': {'type': b'v'}, 'arguments': {2: {'type': b'@'}, 3: {'type': b'@'}, 4: {'type': b'@'}}}) r(b'IBDocument', b'connectBinding:ofSourceObject:toDestinationObject:keyPath:options:', {'retval': {'type': b'v'}, 'arguments': {2: {'type': b'@'}, 3: {'type': b'@'}, 4: {'type': b'@'}, 5: {'type': b'@'}, 6: {'type': b'@'}}}) r(b'IBDocument', b'connectOutlet:ofSourceObject:toDestinationObject:', {'retval': {'type': b'v'}, 'arguments': {2: {'type': b'@'}, 3: {'type': b'@'}, 4: {'type': b'@'}}})
# Last update: Fri Jun 8 16:58:06 2012 import objc, sys if sys.maxsize > 2 ** 32: def sel32or64(a, b): return b else: def sel32or64(a, b): return a if sys.byteorder == 'little': def littleOrBig(a, b): return a else: def littleOrBig(a, b): return b misc = { } misc.update({'CATransform3D': objc.createStructType('CATransform3D', sel32or64(b'{CATransform3D=ffffffffffffffff}', b'{CATransform3D=dddddddddddddddd}'), ['m11', 'm12', 'm13', 'm14', 'm21', 'm22', 'm23', 'm24', 'm31', 'm32', 'm33', 'm34', 'm41', 'm42', 'm43', 'm44'])}) constants = '''$CIDetectorAccuracy$CIDetectorAccuracyHigh$CIDetectorAccuracyLow$CIDetectorTypeFace$CIFeatureTypeFace$kCAAlignmentCenter$kCAAlignmentJustified$kCAAlignmentLeft$kCAAlignmentNatural$kCAAlignmentRight$kCAAnimationCubic$kCAAnimationCubicPaced$kCAAnimationDiscrete$kCAAnimationLinear$kCAAnimationPaced$kCAAnimationRotateAuto$kCAAnimationRotateAutoReverse$kCAEmitterLayerAdditive$kCAEmitterLayerBackToFront$kCAEmitterLayerCircle$kCAEmitterLayerCuboid$kCAEmitterLayerLine$kCAEmitterLayerOldestFirst$kCAEmitterLayerOldestLast$kCAEmitterLayerOutline$kCAEmitterLayerPoint$kCAEmitterLayerPoints$kCAEmitterLayerRectangle$kCAEmitterLayerSphere$kCAEmitterLayerSurface$kCAEmitterLayerUnordered$kCAEmitterLayerVolume$kCAFillModeBackwards$kCAFillModeBoth$kCAFillModeForwards$kCAFillModeFrozen$kCAFillModeRemoved$kCAFillRuleEvenOdd$kCAFillRuleNonZero$kCAFilterLinear$kCAFilterNearest$kCAFilterTrilinear$kCAGradientLayerAxial$kCAGravityBottom$kCAGravityBottomLeft$kCAGravityBottomRight$kCAGravityCenter$kCAGravityLeft$kCAGravityResize$kCAGravityResizeAspect$kCAGravityResizeAspectFill$kCAGravityRight$kCAGravityTop$kCAGravityTopLeft$kCAGravityTopRight$kCALineCapButt$kCALineCapRound$kCALineCapSquare$kCALineJoinBevel$kCALineJoinMiter$kCALineJoinRound$kCAMediaTimingFunctionDefault$kCAMediaTimingFunctionEaseIn$kCAMediaTimingFunctionEaseInEaseOut$kCAMediaTimingFunctionEaseOut$kCAMediaTimingFunctionLinear$kCAOnOrderIn$kCAOnOrderOut$kCAScrollBoth$kCAScrollHorizontally$kCAScrollNone$kCAScrollVertically$kCATransactionAnimationDuration$kCATransactionAnimationTimingFunction$kCATransactionCompletionBlock$kCATransactionDisableActions$kCATransition$kCATransitionFade$kCATransitionFromBottom$kCATransitionFromLeft$kCATransitionFromRight$kCATransitionFromTop$kCATransitionMoveIn$kCATransitionPush$kCATransitionReveal$kCATruncationEnd$kCATruncationMiddle$kCATruncationNone$kCATruncationStart$kCAValueFunctionRotateX$kCAValueFunctionRotateY$kCAValueFunctionRotateZ$kCAValueFunctionScale$kCAValueFunctionScaleX$kCAValueFunctionScaleY$kCAValueFunctionScaleZ$kCAValueFunctionTranslate$kCAValueFunctionTranslateX$kCAValueFunctionTranslateY$kCAValueFunctionTranslateZ$kCIActiveKeys$kCIApplyOptionColorSpace$kCIApplyOptionDefinition$kCIApplyOptionExtent$kCIApplyOptionUserInfo$kCIAttributeClass$kCIAttributeDefault$kCIAttributeDescription$kCIAttributeDisplayName$kCIAttributeFilterCategories$kCIAttributeFilterDisplayName$kCIAttributeFilterName$kCIAttributeIdentity$kCIAttributeMax$kCIAttributeMin$kCIAttributeName$kCIAttributeReferenceDocumentation$kCIAttributeSliderMax$kCIAttributeSliderMin$kCIAttributeType$kCIAttributeTypeAngle$kCIAttributeTypeBoolean$kCIAttributeTypeCount$kCIAttributeTypeDistance$kCIAttributeTypeGradient$kCIAttributeTypeInteger$kCIAttributeTypeOffset$kCIAttributeTypeOpaqueColor$kCIAttributeTypePosition$kCIAttributeTypePosition3$kCIAttributeTypeRectangle$kCIAttributeTypeScalar$kCIAttributeTypeTime$kCICategoryBlur$kCICategoryBuiltIn$kCICategoryColorAdjustment$kCICategoryColorEffect$kCICategoryCompositeOperation$kCICategoryDistortionEffect$kCICategoryFilterGenerator$kCICategoryGenerator$kCICategoryGeometryAdjustment$kCICategoryGradient$kCICategoryHalftoneEffect$kCICategoryHighDynamicRange$kCICategoryInterlaced$kCICategoryNonSquarePixels$kCICategoryReduction$kCICategorySharpen$kCICategoryStillImage$kCICategoryStylize$kCICategoryTileEffect$kCICategoryTransition$kCICategoryVideo$kCIContextOutputColorSpace$kCIContextUseSoftwareRenderer$kCIContextWorkingColorSpace$kCIFilterGeneratorExportedKey$kCIFilterGeneratorExportedKeyName$kCIFilterGeneratorExportedKeyTargetObject$kCIFormatARGB8@i$kCIFormatRGBA16@i$kCIFormatRGBAf@i$kCIFormatRGBAh@i$kCIImageColorSpace$kCIImageProviderTileSize$kCIImageProviderUserInfo$kCIInputAllowDraftModeKey$kCIInputAngleKey$kCIInputAspectRatioKey$kCIInputBackgroundImageKey$kCIInputBiasKey$kCIInputBoostKey$kCIInputBoostShadowAmountKey$kCIInputBrightnessKey$kCIInputCenterKey$kCIInputColorKey$kCIInputContrastKey$kCIInputDecoderVersionKey$kCIInputEVKey$kCIInputEnableChromaticNoiseTrackingKey$kCIInputEnableSharpeningKey$kCIInputExtentKey$kCIInputGradientImageKey$kCIInputIgnoreImageOrientationKey$kCIInputImageKey$kCIInputImageOrientationKey$kCIInputIntensityKey$kCIInputLinearSpaceFilter$kCIInputMaskImageKey$kCIInputNeutralChromaticityXKey$kCIInputNeutralChromaticityYKey$kCIInputNeutralLocationKey$kCIInputNeutralTemperatureKey$kCIInputNeutralTintKey$kCIInputNoiseReductionAmountKey$kCIInputRadiusKey$kCIInputRefractionKey$kCIInputSaturationKey$kCIInputScaleFactorKey$kCIInputScaleKey$kCIInputShadingImageKey$kCIInputSharpnessKey$kCIInputTargetImageKey$kCIInputTimeKey$kCIInputTransformKey$kCIInputWidthKey$kCIOutputImageKey$kCIOutputNativeSizeKey$kCISamplerAffineMatrix$kCISamplerColorSpace$kCISamplerFilterLinear$kCISamplerFilterMode$kCISamplerFilterNearest$kCISamplerWrapBlack$kCISamplerWrapClamp$kCISamplerWrapMode$kCISupportedDecoderVersionsKey$kCIUIParameterSet$kCIUISetAdvanced$kCIUISetBasic$kCIUISetDevelopment$kCIUISetIntermediate$''' constants = constants + '$CATransform3DIdentity@%s$'%(sel32or64('{CATransform3D=ffffffffffffffff}', '{CATransform3D=dddddddddddddddd}'),) enums = '''$CA_WARN_DEPRECATED@1$kCAConstraintHeight@7$kCAConstraintMaxX@2$kCAConstraintMaxY@6$kCAConstraintMidX@1$kCAConstraintMidY@5$kCAConstraintMinX@0$kCAConstraintMinY@4$kCAConstraintWidth@3$kCALayerBottomEdge@4$kCALayerHeightSizable@16$kCALayerLeftEdge@1$kCALayerMaxXMargin@4$kCALayerMaxYMargin@32$kCALayerMinXMargin@1$kCALayerMinYMargin@8$kCALayerNotSizable@0$kCALayerRightEdge@2$kCALayerTopEdge@8$kCALayerWidthSizable@2$''' misc.update({}) functions={'CATransform3DIsAffine': (sel32or64(b'B{CATransform3D=ffffffffffffffff}', b'B{CATransform3D=dddddddddddddddd}'),), 'CATransform3DInvert': (sel32or64(b'{CATransform3D=ffffffffffffffff}{CATransform3D=ffffffffffffffff}', b'{CATransform3D=dddddddddddddddd}{CATransform3D=dddddddddddddddd}'),), 'CATransform3DIsIdentity': (sel32or64(b'B{CATransform3D=ffffffffffffffff}', b'B{CATransform3D=dddddddddddddddd}'),), 'CATransform3DMakeScale': (sel32or64(b'{CATransform3D=ffffffffffffffff}fff', b'{CATransform3D=dddddddddddddddd}ddd'),), 'CATransform3DTranslate': (sel32or64(b'{CATransform3D=ffffffffffffffff}{CATransform3D=ffffffffffffffff}fff', b'{CATransform3D=dddddddddddddddd}{CATransform3D=dddddddddddddddd}ddd'),), 'CATransform3DEqualToTransform': (sel32or64(b'B{CATransform3D=ffffffffffffffff}{CATransform3D=ffffffffffffffff}', b'B{CATransform3D=dddddddddddddddd}{CATransform3D=dddddddddddddddd}'),), 'CATransform3DRotate': (sel32or64(b'{CATransform3D=ffffffffffffffff}{CATransform3D=ffffffffffffffff}ffff', b'{CATransform3D=dddddddddddddddd}{CATransform3D=dddddddddddddddd}dddd'),), 'CACurrentMediaTime': (b'd',), 'CATransform3DMakeRotation': (sel32or64(b'{CATransform3D=ffffffffffffffff}ffff', b'{CATransform3D=dddddddddddddddd}dddd'),), 'CATransform3DConcat': (sel32or64(b'{CATransform3D=ffffffffffffffff}{CATransform3D=ffffffffffffffff}{CATransform3D=ffffffffffffffff}', b'{CATransform3D=dddddddddddddddd}{CATransform3D=dddddddddddddddd}{CATransform3D=dddddddddddddddd}'),), 'CATransform3DScale': (sel32or64(b'{CATransform3D=ffffffffffffffff}{CATransform3D=ffffffffffffffff}fff', b'{CATransform3D=dddddddddddddddd}{CATransform3D=dddddddddddddddd}ddd'),), 'CATransform3DMakeTranslation': (sel32or64(b'{CATransform3D=ffffffffffffffff}fff', b'{CATransform3D=dddddddddddddddd}ddd'),), 'CATransform3DGetAffineTransform': (sel32or64(b'{CGAffineTransform=ffffff}{CATransform3D=ffffffffffffffff}', b'{CGAffineTransform=dddddd}{CATransform3D=dddddddddddddddd}'),), 'CATransform3DMakeAffineTransform': (sel32or64(b'{CATransform3D=ffffffffffffffff}{CGAffineTransform=ffffff}', b'{CATransform3D=dddddddddddddddd}{CGAffineTransform=dddddd}'),)} r = objc.registerMetaDataForSelector objc._updatingMetadata(True) try: r(b'CAAnimation', b'isRemovedOnCompletion', {'retval': {'type': b'Z'}}) r(b'CAAnimation', b'setRemovedOnCompletion:', {'arguments': {2: {'type': b'Z'}}}) r(b'CAAnimation', b'shouldArchiveValueForKey:', {'retval': {'type': b'Z'}}) r(b'CAEmitterCell', b'isEnabled', {'retval': {'type': b'Z'}}) r(b'CAEmitterCell', b'setEnabled:', {'arguments': {2: {'type': b'Z'}}}) r(b'CAEmitterCell', b'shouldArchiveValueForKey:', {'retval': {'type': b'Z'}}) r(b'CAEmitterLayer', b'preservesDepth', {'retval': {'type': b'Z'}})
# Last update: Mon May 25 16:53:44 2015 import objc, sys if sys.maxsize > 2 ** 32: def sel32or64(a, b): return b else: def sel32or64(a, b): return a if sys.byteorder == 'little': def littleOrBig(a, b): return a else: def littleOrBig(a, b): return b misc = { } misc.update({'GCExtendedGamepadValueChangedHandler': objc.createStructType('GCExtendedGamepadValueChangedHandler', b'{_GCGamepadSnapShotDataV100=SSffffffff}', ['version', 'size', 'dpadX', 'dpadY', 'buttonA', 'buttonB', 'buttonX', 'buttonY', 'leftShoulder', 'rightShoulder']), 'GCQuaternion': objc.createStructType('GCQuaternion', b'{GCQuaternion=dddd}', ['x', 'y', 'z', 'w']), 'GCAcceleration': objc.createStructType('GCAcceleration', b'{_GCAcceleration=ddd}', ['x', 'y', 'z']), 'GCGamepadSnapShotDataV100': objc.createStructType('GCGamepadSnapShotDataV100', b'{_GCGamepadSnapShotDataV100=SSffffffff}', ['version', 'size', 'dpadX', 'dpadY', 'buttonA', 'buttonB', 'buttonX', 'buttonY', 'leftShoulder', 'rightShoulder'], None, 1), 'GCExtendedGamepadSnapShotDataV100': objc.createStructType('GCExtendedGamepadSnapShotDataV100', b'{_GCExtendedGamepadSnapShotDataV100=SSffffffffffffff}', ['version', 'size', 'dpadX', 'dpadY', 'buttonA', 'buttonB', 'buttonX', 'buttonY', 'leftShoulder', 'rightShoulder', 'leftThumbstickX', 'leftThumbstickY', 'rightThumbstickX', 'rightThumbstickY', 'leftTrigger', 'rightTrigger'], None, 1), 'GCRotationRate': objc.createStructType('GCRotationRate', b'{_GCRotationRate=ddd}', ['x', 'y', 'z'])}) constants = '''$GCControllerDidConnectNotification$GCControllerDidDisconnectNotification$''' enums = '''$GCControllerPlayerIndexUnset@-1$''' misc.update({}) functions={'NSDataFromGCGamepadSnapShotDataV100': (b'@^{_GCGamepadSnapShotDataV100=SSffffffff}', '', {'arguments': {0: {'type_modifier': 'n'}}}), 'NSDataFromGCExtendedGamepadSnapShotDataV100': (b'@^{_GCExtendedGamepadSnapShotDataV100=SSffffffffffffff}', '', {'arguments': {0: {'type_modifier': 'n'}}}), 'GCGamepadSnapShotDataV100FromNSData': (b'Z^{_GCGamepadSnapShotDataV100=SSffffffff}@', '', {'arguments': {0: {'type_modifier': 'o'}}}), 'GCExtendedGamepadSnapShotDataV100FromNSData': (b'Z^{_GCExtendedGamepadSnapShotDataV100=SSffffffffffffff}@', '', {'arguments': {0: {'type_modifier': 'o'}}})} r = objc.registerMetaDataForSelector objc._updatingMetadata(True) try: r(b'GCController', b'controllerPausedHandler', {'retval': {'callable': {'retval': {'type': b'v'}, 'arguments': {0: {'type': b'^v'}, 1: {'type': b'@'}}}}}) r(b'GCController', b'isAttachedToDevice', {'retval': {'type': b'Z'}}) r(b'GCController', b'setControllerPausedHandler:', {'arguments': {2: {'callable': {'retval': {'type': b'v'}, 'arguments': {0: {'type': b'^v'}, 1: {'type': b'@'}}}}}}) r(b'GCController', b'startWirelessControllerDiscoveryWithCompletionHandler:', {'arguments': {2: {'callable': {'retval': {'type': b'v'}, 'arguments': {0: {'type': b'^v'}}}}}}) r(b'GCControllerAxisInput', b'setValueChangedHandler:', {'arguments': {2: {'callable': {'retval': {'type': b'v'}, 'arguments': {0: {'type': b'^v'}, 1: {'type': b'@'}, 2: {'type': b'f'}}}}}}) r(b'GCControllerAxisInput', b'valueChangedHandler', {'retval': {'callable': {'retval': {'type': b'v'}, 'arguments': {0: {'type': b'^v'}, 1: {'type': b'@'}, 2: {'type': b'f'}}}}}) r(b'GCControllerButtonInput', b'isPressed', {'retval': {'type': b'Z'}}) r(b'GCControllerButtonInput', b'pressedChangedHandler', {'retval': {'callable': {'retval': {'type': b'v'}, 'arguments': {0: {'type': b'^v'}, 1: {'type': b'@'}, 2: {'type': b'f'}, 3: {'type': b'Z'}}}}})
def sel32or64(a, b): return b else: def sel32or64(a, b): return a misc = {} misc.update({ "MKMapRect": objc.createStructType( "MKMapRect", b"{_MKMapRect={_MKMapPoint=dd}{_MKMapSize=dd}}", ["origin", "size"], ), "MKMapSize": objc.createStructType("MKMapSize", b"{_MKMapSize=dd}", ["width", "height"]), "MKCoordinateRegion": objc.createStructType( "MKCoordinateRegion", b"{_MKCoordinateRegion={CLLocationCoordinate2D=dd}{_MKCoordinateSpan=dd}}", ["center", "span"], ), "MKCoordinateSpan": objc.createStructType( "MKCoordinateSpan", b"{_MKCoordinateSpan=dd}",
# This file is generated by objective.metadata # # Last update: Mon Jan 14 10:24:36 2013 import objc, sys if sys.maxsize > 2 ** 32: def sel32or64(a, b): return b else: def sel32or64(a, b): return a if sys.byteorder == 'little': def littleOrBig(a, b): return a else: def littleOrBig(a, b): return b misc = { } misc.update({'LSItemInfoRecord': objc.createStructType('LSItemInfoRecord', sel32or64(b'{LSItemInfoRecord=LLL^{__CFString=}^{__CFString=}L}', b'{LSItemInfoRecord=III^{__CFString=}}'), sel32or64(['flags', 'filetype', 'creator', 'extension', 'iconFileName', 'kindID'], ['flags', 'filetype', 'creator', 'extension']), None, 2), 'LSLaunchFSRefSpec': objc.createStructType('LSLaunchFSRefSpec', sel32or64(b'{LSLaunchFSRefSpec=^{FSRef=[80C]}L^{FSRef=[80C]}^{AEDesc=L^^{OpaqueAEDataStorageType=}}L^v}', b'{LSLaunchFSRefSpec=^{FSRef=[80C]}Q^{FSRef=[80C]}^{AEDesc=I^^{OpaqueAEDataStorageType=}}I^v}'), ['appRef', 'numDocs', 'itemRefs', 'passThruParams', 'launchFlags', 'asyncRefCon'], None, 2), 'LSApplicationParameters': objc.createStructType('LSApplicationParameters', sel32or64(b'{LSApplicationParameters=lL^{FSRef=[80C]}^v^{__CFDictionary=}^{__CFArray=}^{AEDesc=L^^{OpaqueAEDataStorageType=}}}', b'{LSApplicationParameters=qI^{FSRef=[80C]}^v^{__CFDictionary=}^{__CFArray=}^{AEDesc=I^^{OpaqueAEDataStorageType=}}}'), ['version', 'flags', 'application', 'asyncLaunchRefCon', 'environment', 'argv', 'initialEvent']), 'LSLaunchURLSpec': objc.createStructType('LSLaunchURLSpec', sel32or64(b'{LSLaunchURLSpec=^{__CFURL=}^{__CFArray=}^{AEDesc=L^^{OpaqueAEDataStorageType=}}L^v}', b'{LSLaunchURLSpec=^{__CFURL=}^{__CFArray=}^{AEDesc=I^^{OpaqueAEDataStorageType=}}I^v}'), ['appURL', 'itemURLs', 'passThruParams', 'launchFlags', 'asyncRefCon'], None, 2)}) constants = '''$kLSItemContentType@^{__CFString=}$kLSItemDisplayKind@^{__CFString=}$kLSItemDisplayName@^{__CFString=}$kLSItemExtension@^{__CFString=}$kLSItemExtensionIsHidden@^{__CFString=}$kLSItemFileCreator@^{__CFString=}$kLSItemFileType@^{__CFString=}$kLSItemIsInvisible@^{__CFString=}$kLSItemQuarantineProperties@^{__CFString=}$kLSItemRoleHandlerDisplayName@^{__CFString=}$kLSQuarantineAgentBundleIdentifierKey@^{__CFString=}$kLSQuarantineAgentNameKey@^{__CFString=}$kLSQuarantineDataURLKey@^{__CFString=}$kLSQuarantineOriginURLKey@^{__CFString=}$kLSQuarantineTimeStampKey@^{__CFString=}$kLSQuarantineTypeCalendarEventAttachment@^{__CFString=}$kLSQuarantineTypeEmailAttachment@^{__CFString=}$kLSQuarantineTypeInstantMessageAttachment@^{__CFString=}$kLSQuarantineTypeKey@^{__CFString=}$kLSQuarantineTypeOtherAttachment@^{__CFString=}$kLSQuarantineTypeOtherDownload@^{__CFString=}$kLSQuarantineTypeWebDownload@^{__CFString=}$kLSSharedFileListFavoriteItems@^{__CFString=}$kLSSharedFileListFavoriteVolumes@^{__CFString=}$kLSSharedFileListGlobalLoginItems@^{__CFString=}$kLSSharedFileListItemHidden@^{__CFString=}$kLSSharedFileListLoginItemHidden@^{__CFString=}$kLSSharedFileListRecentApplicationItems@^{__CFString=}$kLSSharedFileListRecentDocumentItems@^{__CFString=}$kLSSharedFileListRecentItemsMaxAmount@^{__CFString=}$kLSSharedFileListRecentServerItems@^{__CFString=}$kLSSharedFileListSessionLoginItems@^{__CFString=}$kLSSharedFileListVolumesComputerVisible@^{__CFString=}$kLSSharedFileListVolumesIDiskVisible@^{__CFString=}$kLSSharedFileListVolumesNetworkVisible@^{__CFString=}$kUTExportedTypeDeclarationsKey@^{__CFString=}$kUTImportedTypeDeclarationsKey@^{__CFString=}$kUTTagClassFilenameExtension@^{__CFString=}$kUTTagClassMIMEType@^{__CFString=}$kUTTagClassNSPboardType@^{__CFString=}$kUTTagClassOSType@^{__CFString=}$kUTTypeAliasFile@^{__CFString=}$kUTTypeAliasRecord@^{__CFString=}$kUTTypeAppleICNS@^{__CFString=}$kUTTypeAppleProtectedMPEG4Audio@^{__CFString=}$kUTTypeApplication@^{__CFString=}$kUTTypeApplicationBundle@^{__CFString=}$kUTTypeApplicationFile@^{__CFString=}$kUTTypeArchive@^{__CFString=}$kUTTypeAudio@^{__CFString=}$kUTTypeAudiovisualContent@^{__CFString=}$kUTTypeBMP@^{__CFString=}$kUTTypeBundle@^{__CFString=}$kUTTypeCHeader@^{__CFString=}$kUTTypeCPlusPlusHeader@^{__CFString=}$kUTTypeCPlusPlusSource@^{__CFString=}$kUTTypeCSource@^{__CFString=}$kUTTypeCompositeContent@^{__CFString=}$kUTTypeConformsToKey@^{__CFString=}$kUTTypeContact@^{__CFString=}$kUTTypeContent@^{__CFString=}$kUTTypeData@^{__CFString=}$kUTTypeDescriptionKey@^{__CFString=}$kUTTypeDirectory@^{__CFString=}$kUTTypeDiskImage@^{__CFString=}$kUTTypeFileURL@^{__CFString=}$kUTTypeFlatRTFD@^{__CFString=}$kUTTypeFolder@^{__CFString=}$kUTTypeFramework@^{__CFString=}$kUTTypeGIF@^{__CFString=}$kUTTypeHTML@^{__CFString=}$kUTTypeICO@^{__CFString=}$kUTTypeIconFileKey@^{__CFString=}$kUTTypeIdentifierKey@^{__CFString=}$kUTTypeImage@^{__CFString=}$kUTTypeInkText@^{__CFString=}$kUTTypeItem@^{__CFString=}$kUTTypeJPEG@^{__CFString=}$kUTTypeJPEG2000@^{__CFString=}$kUTTypeJavaSource@^{__CFString=}$kUTTypeMP3@^{__CFString=}$kUTTypeMPEG@^{__CFString=}$kUTTypeMPEG4@^{__CFString=}$kUTTypeMPEG4Audio@^{__CFString=}$kUTTypeMessage@^{__CFString=}$kUTTypeMountPoint@^{__CFString=}$kUTTypeMovie@^{__CFString=}$kUTTypeObjectiveCPlusPlusSource@^{__CFString=}$kUTTypeObjectiveCSource@^{__CFString=}$kUTTypePDF@^{__CFString=}$kUTTypePICT@^{__CFString=}$kUTTypePNG@^{__CFString=}$kUTTypePackage@^{__CFString=}$kUTTypePlainText@^{__CFString=}$kUTTypeQuickTimeImage@^{__CFString=}$kUTTypeQuickTimeMovie@^{__CFString=}$kUTTypeRTF@^{__CFString=}$kUTTypeRTFD@^{__CFString=}$kUTTypeReferenceURLKey@^{__CFString=}$kUTTypeResolvable@^{__CFString=}$kUTTypeSourceCode@^{__CFString=}$kUTTypeSymLink@^{__CFString=}$kUTTypeTIFF@^{__CFString=}$kUTTypeTXNTextAndMultimediaData@^{__CFString=}$kUTTypeTagSpecificationKey@^{__CFString=}$kUTTypeText@^{__CFString=}$kUTTypeURL@^{__CFString=}$kUTTypeUTF16ExternalPlainText@^{__CFString=}$kUTTypeUTF16PlainText@^{__CFString=}$kUTTypeUTF8PlainText@^{__CFString=}$kUTTypeVCard@^{__CFString=}$kUTTypeVersionKey@^{__CFString=}$kUTTypeVideo@^{__CFString=}$kUTTypeVolume@^{__CFString=}$kUTTypeWebArchive@^{__CFString=}$kUTTypeXML@^{__CFString=}$''' enums = '''$appleMenuFolderIconResource@-3982$controlPanelFolderIconResource@-3976$desktopIconResource@-3992$dropFolderIconResource@-3979$extensionsFolderIconResource@-3973$floppyIconResource@-3998$fontsFolderIconResource@-3968$fullTrashIconResource@-3984$genericApplicationIconResource@-3996$genericCDROMIconResource@-3987$genericDeskAccessoryIconResource@-3991$genericDocumentIconResource@-4000$genericEditionFileIconResource@-3989$genericExtensionIconResource@-16415$genericFileServerIconResource@-3972$genericFolderIconResource@-3999$genericHardDiskIconResource@-3995$genericMoverObjectIconResource@-3969$genericPreferencesIconResource@-3971$genericQueryDocumentIconResource@-16506$genericRAMDiskIconResource@-3988$genericStationeryIconResource@-3985$genericSuitcaseIconResource@-3970$kAFPServerIcon@1634103411$kAlertCautionBadgeIcon@1667392615$kAlertCautionIcon@1667331444$kAlertNoteIcon@1852798053$kAlertStopIcon@1937010544$kAliasBadgeIcon@1633838183$kAppearanceFolderIcon@1634758770$kAppleExtrasFolderIcon@1634040004$kAppleLogoIcon@1667330156$kAppleMenuFolderIcon@1634561653$kAppleMenuFolderIconResource@-3982$kAppleMenuIcon@1935765612$kAppleScriptBadgeIcon@1935897200$kAppleTalkIcon@1635019883$kAppleTalkZoneIcon@1635023470$kApplicationSupportFolderIcon@1634956656$kApplicationsFolderIcon@1634758771$kAssistantsFolderIcon@1634956484$kBackwardArrowIcon@1650553455$kBurningIcon@1651864174$kClipboardIcon@1129072976$kClippingPictureTypeIcon@1668051056$kClippingSoundTypeIcon@1668051059$kClippingTextTypeIcon@1668051060$kClippingUnknownTypeIcon@1668051061$kColorSyncFolderIcon@1886547814$kComputerIcon@1919905652$kConnectToIcon@1668178804$kContextualMenuItemsFolderIcon@1668116085$kControlPanelDisabledFolderIcon@1668575812$kControlPanelFolderIcon@1668575852$kControlPanelFolderIconResource@-3976$kControlStripModulesFolderIcon@1935963844$kDeleteAliasIcon@1684106345$kDesktopIcon@1684370283$kDesktopIconResource@-3992$kDocumentsFolderIcon@1685021555$kDropFolderIcon@1684172664$kDropFolderIconResource@-3979$kEjectMediaIcon@1701471587$kExtensionsDisabledFolderIcon@1702392900$kExtensionsFolderIcon@1702392942$kExtensionsFolderIconResource@-3973$kFTPServerIcon@1718906995$kFavoriteItemsIcon@1717663346$kFavoritesFolderIcon@1717663347$kFinderIcon@1179534418$kFloppyIconResource@-3998$kFontSuitcaseIcon@1179011404$kFontsFolderIcon@1718578804$kFontsFolderIconResource@-3968$kForwardArrowIcon@1717662319$kFullTrashIcon@1718907496$kFullTrashIconResource@-3984$kGenericApplicationIcon@1095782476$kGenericApplicationIconResource@-3996$kGenericCDROMIcon@1667523698$kGenericCDROMIconResource@-3987$kGenericComponentIcon@1953001063$kGenericControlPanelIcon@1095782467$kGenericControlStripModuleIcon@1935959414$kGenericDeskAccessoryIcon@1095782468$kGenericDeskAccessoryIconResource@-3991$kGenericDocumentIcon@1685021557$kGenericDocumentIconResource@-4000$kGenericEditionFileIcon@1701082214$kGenericEditionFileIconResource@-3989$kGenericExtensionIcon@1229867348$kGenericExtensionIconResource@-16415$kGenericFileServerIcon@1936881266$kGenericFileServerIconResource@-3972$kGenericFloppyIcon@1718382713$kGenericFolderIcon@1718379634$kGenericFolderIconResource@-3999$kGenericFontIcon@1717987692$kGenericFontScalerIcon@1935895666$kGenericHardDiskIcon@1751413611$kGenericHardDiskIconResource@-3995$kGenericIDiskIcon@1768190827$kGenericMoverObjectIcon@1836021362$kGenericMoverObjectIconResource@-3969$kGenericNetworkIcon@1735288180$kGenericPCCardIcon@1885564259$kGenericPreferencesIcon@1886545254$kGenericPreferencesIconResource@-3971$kGenericQueryDocumentIcon@1902473849$kGenericQueryDocumentIconResource@-16506$kGenericRAMDiskIcon@1918987620$kGenericRAMDiskIconResource@-3988$kGenericRemovableMediaIcon@1919774582$kGenericSharedLibaryIcon@1936223330$kGenericStationeryIcon@1935961955$kGenericStationeryIconResource@-3985$kGenericSuitcaseIcon@1937074548$kGenericSuitcaseIconResource@-3970$kGenericURLIcon@1735750252$kGenericWORMIcon@2003792493$kGenericWindowIcon@1735879022$kGridIcon@1735551332$kGroupIcon@1735554416$kGuestUserIcon@1735750514$kHTTPServerIcon@1752461427$kHelpFolderIcon@-999789456$kHelpIcon@1751477360$kHelpIconResource@-20271$kIPFileServerIcon@1769173622$kIconServicesCatalogInfoMask@531550$kIconServicesNoBadgeFlag@1$kIconServicesNormalUsageFlag@0$kIconServicesUpdateIfNeededFlag@2$kInternationResourcesIcon@1768319340$kInternationalResourcesIcon@1768319340$kInternetFolderIcon@1768846532$kInternetLocationAppleShareIcon@1768710502$kInternetLocationAppleTalkZoneIcon@1768710516$kInternetLocationFTPIcon@1768711796$kInternetLocationFileIcon@1768711785$kInternetLocationGenericIcon@1768712037$kInternetLocationHTTPIcon@1768712308$kInternetLocationMailIcon@1768713569$kInternetLocationNSLNeighborhoodIcon@1768713843$kInternetLocationNewsIcon@1768713847$kInternetPlugInFolderIcon@-999398028$kInternetSearchSitesFolderIcon@1769173862$kKeepArrangedIcon@1634889319$kKeyboardLayoutIcon@1801873772$kLSAcceptAllowLoginUI@2$kLSAcceptDefault@1$kLSAppDoesNotClaimTypeErr@-10820$kLSAppDoesNotSupportSchemeWarning@-10821$kLSAppInTrashErr@-10660$kLSApplicationNotFoundErr@-10814$kLSAttributeNotFoundErr@-10662$kLSAttributeNotSettableErr@-10663$kLSCannotSetInfoErr@-10823$kLSDataErr@-10817$kLSDataTooOldErr@-10816$kLSDataUnavailableErr@-10813$kLSExecutableIncorrectFormat@-10661$kLSHandlerOptionsDefault@0$kLSHandlerOptionsIgnoreCreator@1$kLSIncompatibleApplicationVersionErr@-10664$kLSIncompatibleSystemVersionErr@-10825$kLSInitializeDefaults@1$kLSItemInfoAppIsScriptable@2048$kLSItemInfoAppPrefersClassic@1024$kLSItemInfoAppPrefersNative@512$kLSItemInfoExtensionIsHidden@1048576$kLSItemInfoIsAliasFile@16$kLSItemInfoIsApplication@4$kLSItemInfoIsClassicApp@256$kLSItemInfoIsContainer@8$kLSItemInfoIsInvisible@64$kLSItemInfoIsNativeApp@128$kLSItemInfoIsPackage@2$kLSItemInfoIsPlainFile@1$kLSItemInfoIsSymlink@32$kLSItemInfoIsVolume@4096$kLSLaunchAndDisplayErrors@64$kLSLaunchAndHide@1048576$kLSLaunchAndHideOthers@2097152$kLSLaunchAndPrint@2$kLSLaunchAsync@65536$kLSLaunchDefaults@1$kLSLaunchDontAddToRecents@256$kLSLaunchDontSwitch@512$kLSLaunchHasUntrustedContents@4194304$kLSLaunchInClassic@262144$kLSLaunchInProgressErr@-10818$kLSLaunchInhibitBGOnly@128$kLSLaunchNewInstance@524288$kLSLaunchNoParams@2048$kLSLaunchReserved2@4$kLSLaunchReserved3@8$kLSLaunchReserved4@16$kLSLaunchReserved5@32$kLSLaunchStartClassic@131072$kLSMinCatInfoBitmap@6154$kLSMultipleSessionsNotSupportedErr@-10829$kLSNoClassicEnvironmentErr@-10828$kLSNoExecutableErr@-10827$kLSNoLaunchPermissionErr@-10826$kLSNoRegistrationInfoErr@-10824$kLSNoRosettaEnvironmentErr@-10665$kLSNotAnApplicationErr@-10811$kLSNotInitializedErr@-10812$kLSNotRegisteredErr@-10819$kLSRequestAllFlags@16$kLSRequestAllInfo@4294967295$kLSRequestAppTypeFlags@8$kLSRequestBasicFlagsOnly@4$kLSRequestExtension@1$kLSRequestExtensionFlagsOnly@64$kLSRequestIconAndKind@32$kLSRequestTypeCreator@2$kLSRolesAll@4294967295$kLSRolesEditor@4$kLSRolesNone@1$kLSRolesShell@8$kLSRolesViewer@2$kLSServerCommunicationErr@-10822$kLSSharedFileListDoNotMountVolumes@2$kLSSharedFileListNoUserInteraction@1$kLSUnknownCreator@0$kLSUnknownErr@-10810$kLSUnknownKindID@0$kLSUnknownType@0$kLSUnknownTypeErr@-10815$kLocalesFolderIcon@-999526557$kLockedBadgeIcon@1818387559$kLockedIcon@1819239275$kMacOSReadMeFolderIcon@1836020420$kMountedBadgeIcon@1835164775$kMountedFolderIcon@1835955300$kMountedFolderIconResource@-3977$kNoFilesIcon@1852205420$kNoFolderIcon@1852206180$kNoWriteIcon@1853321844$kOpenFolderIcon@1868983396$kOpenFolderIconResource@-3997$kOwnedFolderIcon@1870098020$kOwnedFolderIconResource@-3980$kOwnerIcon@1937077106$kPreferencesFolderIcon@1886545604$kPreferencesFolderIconResource@-3974$kPrintMonitorFolderIcon@1886547572$kPrintMonitorFolderIconResource@-3975$kPrinterDescriptionFolderIcon@1886413926$kPrinterDriverFolderIcon@-999263644$kPrivateFolderIcon@1886549606$kPrivateFolderIconResource@-3994$kProtectedApplicationFolderIcon@1885433968$kProtectedSystemFolderIcon@1886615923$kPublicFolderIcon@1886741094$kQuestionMarkIcon@1903519091$kRecentApplicationsFolderIcon@1918988400$kRecentDocumentsFolderIcon@1919184739$kRecentItemsIcon@1919118964$kRecentServersFolderIcon@1920168566$kRightContainerArrowIcon@1919115634$kScriptingAdditionsFolderIcon@-999070862$kScriptsFolderIcon@1935897284$kSharedBadgeIcon@1935828071$kSharedFolderIcon@1936221804$kSharedFolderIconResource@-3978$kSharedLibrariesFolderIcon@-999528094$kSharingPrivsNotApplicableIcon@1936223841$kSharingPrivsReadOnlyIcon@1936224879$kSharingPrivsReadWriteIcon@1936224887$kSharingPrivsUnknownIcon@1936225643$kSharingPrivsWritableIcon@2003986804$kShortcutIcon@1936224884$kShutdownItemsDisabledFolderIcon@1936221252$kShutdownItemsFolderIcon@1936221286$kSortAscendingIcon@1634954852$kSortDescendingIcon@1685286500$kSoundFileIcon@1936091500$kSpeakableItemsFolder@1936747369$kStartupFolderIconResource@-3981$kStartupItemsDisabledFolderIcon@1937011268$kStartupItemsFolderIcon@1937011316$kSystemExtensionDisabledFolderIcon@1835098948$kSystemFolderIcon@1835098995$kSystemFolderIconResource@-3983$kSystemIconsCreator@1835098995$kSystemSuitcaseIcon@2054388083$kTextEncodingsFolderIcon@-999004808$kToolbarAdvancedIcon@1952604534$kToolbarApplicationsFolderIcon@1950445683$kToolbarCustomizeIcon@1952675187$kToolbarDeleteIcon@1952736620$kToolbarDesktopFolderIcon@1950643051$kToolbarDocumentsFolderIcon@1950642019$kToolbarDownloadsFolderIcon@1950644078$kToolbarFavoritesIcon@1952866678$kToolbarHomeIcon@1953001325$kToolbarInfoIcon@1952606574$kToolbarLabelsIcon@1952607330$kToolbarLibraryFolderIcon@1951164770$kToolbarMovieFolderIcon@1951231862$kToolbarMusicFolderIcon@1951233395$kToolbarPicturesFolderIcon@1951426915$kToolbarPublicFolderIcon@1951429986$kToolbarSitesFolderIcon@1951626355$kToolbarUtilitiesFolderIcon@1951757420$kTrashIcon@1953657704$kTrashIconResource@-3993$kTrueTypeFlatFontIcon@1936092788$kTrueTypeFontIcon@1952868716$kTrueTypeMultiFlatFontIcon@1953784678$kUnknownFSObjectIcon@1970169459$kUnlockedIcon@1970037611$kUserFolderIcon@1969646692$kUserIDiskIcon@1969517419$kUserIcon@1970496882$kUsersFolderIcon@1970500292$kUtilitiesFolderIcon@1970563524$kVoicesFolderIcon@1719037795$kWorkgroupFolderIcon@2003201124$mountedFolderIconResource@-3977$openFolderIconResource@-3997$ownedFolderIconResource@-3980$preferencesFolderIconResource@-3974$printMonitorFolderIconResource@-3975$privateFolderIconResource@-3994$sharedFolderIconResource@-3978$startupFolderIconResource@-3981$systemFolderIconResource@-3983$trashIconResource@-3993$''' misc.update({}) functions={'LSSharedFileListItemCopyDisplayName': (b'^{__CFString=}^{OpaqueLSSharedFileListItemRef=}', '', {'retval': {'already_cfretained': True}}), '_LSCopyAllApplicationURLs': (b'v^@', '', {'arguments': {0: {'already_retained': True, 'type_modifier': 'o'}}}), 'LSCopyItemInfoForRef': (sel32or64(b'l^{FSRef=[80C]}L^{LSItemInfoRecord=LLL^{__CFString=}^{__CFString=}L}', b'i^{FSRef=[80C]}I^{LSItemInfoRecord=III^{__CFString=}}'), '', {'retval': {'already_cfretained': True}, 'arguments': {0: {'type_modifier': 'n'}, 2: {'type_modifier': 'o'}}}), 'GetIconRefFromTypeInfo': (sel32or64(b'sLL^{__CFString=}^{__CFString=}L^^{OpaqueIconRef=}', b'sII^{__CFString=}^{__CFString=}I^^{OpaqueIconRef=}'), '', {'arguments': {5: {'type_modifier': 'o'}}}), 'ReadIconFromFSRef': (sel32or64(b'l^{FSRef=[80C]}^^^{IconFamilyResource=Ll[1{IconFamilyElement=Ll[1C]}]}', b'i^{FSRef=[80C]}^^^{IconFamilyResource=Ii[1{IconFamilyElement=Ii[1C]}]}'), '', {'arguments': {0: {'type_modifier': 'n'}}}), 'LSSharedFileListRemoveAllItems': (sel32or64(b'l^{OpaqueLSSharedFileListRef=}', b'i^{OpaqueLSSharedFileListRef=}'),), 'LSCopyItemAttribute': (sel32or64(b'l^{FSRef=[80C]}L^{__CFString=}^@', b'i^{FSRef=[80C]}I^{__CFString=}^@'), '', {'retval': {'already_cfretained': True}, 'arguments': {0: {'type_modifier': 'n'}, 3: {'already_cfretained': True, 'type_modifier': 'o'}}}), 'LSSharedFileListItemMove': (sel32or64(b'l^{OpaqueLSSharedFileListRef=}^{OpaqueLSSharedFileListItemRef=}^{OpaqueLSSharedFileListItemRef=}', b'i^{OpaqueLSSharedFileListRef=}^{OpaqueLSSharedFileListItemRef=}^{OpaqueLSSharedFileListItemRef=}'),), 'LSSetDefaultRoleHandlerForContentType': (sel32or64(b'l^{__CFString=}L^{__CFString=}', b'i^{__CFString=}I^{__CFString=}'),), 'LSSetHandlerOptionsForContentType': (sel32or64(b'l^{__CFString=}L', b'i^{__CFString=}I'),), 'LSSharedFileListGetTypeID': (sel32or64(b'L', b'Q'),), 'LSInit': (sel32or64(b'lL', b'iI'),), 'LSCopyDefaultHandlerForURLScheme': (b'^{__CFString=}^{__CFString=}', '', {'retval': {'already_cfretained': True}}), 'LSCopyAllRoleHandlersForContentType': (sel32or64(b'^{__CFArray=}^{__CFString=}L', b'^{__CFArray=}^{__CFString=}I'), '', {'retval': {'already_cfretained': True}}), 'IsDataAvailableInIconRef': (sel32or64(b'ZL^{OpaqueIconRef=}', b'ZI^{OpaqueIconRef=}'),), 'IsValidIconRef': (b'Z^{OpaqueIconRef=}',), 'LSCanRefAcceptItem': (sel32or64(b'l^{FSRef=[80C]}^{FSRef=[80C]}LL^Z', b'i^{FSRef=[80C]}^{FSRef=[80C]}II^Z'), '', {'arguments': {0: {'type_modifier': 'n'}, 1: {'type_modifier': 'n'}, 4: {'type_modifier': 'o'}}}), 'LSCopyKindStringForTypeInfo': (sel32or64(b'lLL^{__CFString=}^^{__CFString=}', b'iII^{__CFString=}^^{__CFString=}'), '', {'retval': {'already_cfretained': True}, 'arguments': {3: {'already_cfretained': True, 'type_modifier': 'o'}}}), 'UTTypeCopyPreferredTagWithClass': (b'^{__CFString=}^{__CFString=}^{__CFString=}', '', {'retval': {'already_cfretained': True}}), 'FlushIconRefs': (b'sLL',), 'LSSetExtensionHiddenForURL': (sel32or64(b'l^{__CFURL=}Z', b'i^{__CFURL=}Z'),), 'LSOpenFSRef': (sel32or64(b'l^{FSRef=[80C]}^{FSRef=[80C]}', b'i^{FSRef=[80C]}^{FSRef=[80C]}'), '', {'arguments': {0: {'type_modifier': 'n'}, 1: {'type_modifier': 'o'}}}), 'LSSharedFileListInsertItemFSRef': (b'^{OpaqueLSSharedFileListItemRef=}^{OpaqueLSSharedFileListRef=}^{OpaqueLSSharedFileListItemRef=}^{__CFString=}^{OpaqueIconRef=}^{FSRef=[80C]}^{__CFDictionary=}^{__CFArray=}',), 'RegisterIconRefFromIconFile': (b'sLL^{FSSpec=sl[64C]}^^{OpaqueIconRef=}', '', {'arguments': {3: {'type_modifier': 'o'}}}), 'LSCopyItemAttributes': (sel32or64(b'l^{FSRef=[80C]}L^{__CFArray=}^^{__CFDictionary=}', b'i^{FSRef=[80C]}I^{__CFArray=}^^{__CFDictionary=}'), '', {'retval': {'already_cfretained': True}, 'arguments': {0: {'type_modifier': 'n'}, 3: {'type_modifier': 'o'}}}), 'LSSharedFileListItemSetProperty': (sel32or64(b'l^{OpaqueLSSharedFileListItemRef=}^{__CFString=}@', b'i^{OpaqueLSSharedFileListItemRef=}^{__CFString=}@'),), 'UTTypeCreateAllIdentifiersForTag': (b'^{__CFArray=}^{__CFString=}^{__CFString=}^{__CFString=}', '', {'retval': {'already_cfretained': True}}), 'LSGetHandlerOptionsForContentType': (sel32or64(b'L^{__CFString=}', b'I^{__CFString=}'),), 'LSTerm': (sel32or64(b'l', b'i'),), 'LSSharedFileListItemCopyProperty': (b'@^{OpaqueLSSharedFileListItemRef=}^{__CFString=}', '', {'retval': {'already_cfretained': True}}), 'UpdateIconRef': (b's^{OpaqueIconRef=}',), 'LSGetApplicationForInfo': (sel32or64(b'lLL^{__CFString=}L^{FSRef=[80C]}^^{__CFURL=}', b'iII^{__CFString=}I^{FSRef=[80C]}^^{__CFURL=}'), '', {'arguments': {4: {'type_modifier': 'o'}, 5: {'already_cfretained': True, 'type_modifier': 'o'}}}), 'LSSharedFileListItemGetTypeID': (sel32or64(b'L', b'Q'),), 'GetIconRefFromComponent': (sel32or64(b'l^{ComponentRecord=[1l]}^^{OpaqueIconRef=}', b'i^{ComponentRecord=[1q]}^^{OpaqueIconRef=}'), '', {'arguments': {1: {'type_modifier': 'o'}}}), 'UTTypeCopyDeclaration': (b'^{__CFDictionary=}^{__CFString=}', '', {'retval': {'already_cfretained': True}}), 'LSSharedFileListSetProperty': (sel32or64(b'l^{OpaqueLSSharedFileListRef=}^{__CFString=}@', b'i^{OpaqueLSSharedFileListRef=}^{__CFString=}@'),), 'LSSharedFileListRemoveObserver': (b'v^{OpaqueLSSharedFileListRef=}^{__CFRunLoop=}^{__CFString=}^?^v', '', {'arguments': {3: {'callable': {'retval': {'type': b'v'}, 'arguments': {0: {'type': b'^{OpaqueLSSharedFileListRef=}'}, 1: {'type': b'^v'}}}}}}), 'RegisterIconRefFromFSRef': (sel32or64(b'lLL^{FSRef=[80C]}^^{OpaqueIconRef=}', b'iII^{FSRef=[80C]}^^{OpaqueIconRef=}'), '', {'arguments': {2: {'type_modifier': 'n'}}}), 'LSCopyApplicationForMIMEType': (sel32or64(b'l^{__CFString=}L^^{__CFURL=}', b'i^{__CFString=}I^^{__CFURL=}'), '', {'retval': {'already_cfretained': True}, 'arguments': {2: {'already_cfretained': True, 'type_modifier': 'o'}}}), 'ReleaseIconRef': (b's^{OpaqueIconRef=}',), 'UTTypeCreatePreferredIdentifierForTag': (b'^{__CFString=}^{__CFString=}^{__CFString=}^{__CFString=}', '', {'retval': {'already_cfretained': True}}), 'LSSharedFileListItemResolve': (sel32or64(b'l^{OpaqueLSSharedFileListItemRef=}L^^{__CFURL=}^{FSRef=[80C]}', b'i^{OpaqueLSSharedFileListItemRef=}I^^{__CFURL=}^{FSRef=[80C]}'), '', {'arguments': {2: {'already_cfretained': True, 'type_modifier': 'o'}, 3: {'type_modifier': 'o'}}}), 'GetIconRefFromIconFamilyPtr': (sel32or64(b'l^{IconFamilyResource=Ll[1{IconFamilyElement=Ll[1C]}]}l^^{OpaqueIconRef=}', b'i^{IconFamilyResource=Ii[1{IconFamilyElement=Ii[1C]}]}q^^{OpaqueIconRef=}'), '', {'arguments': {0: {'type_modifier': 'n'}, 2: {'type_modifier': 'o'}}}), 'LSSharedFileListCreate': (b'^{OpaqueLSSharedFileListRef=}^{__CFAllocator=}^{__CFString=}@', '', {'retval': {'already_cfretained': True}}), 'WriteIconFile': (b's^^{IconFamilyResource=Ll[1{IconFamilyElement=Ll[1C]}]}^{FSSpec=sl[64C]}',), 'OverrideIconRef': (b's^{OpaqueIconRef=}^{OpaqueIconRef=}',), 'LSSharedFileListCopyProperty': (b'@^{OpaqueLSSharedFileListRef=}^{__CFString=}', '', {'retval': {'already_cfretained': True}}), 'IsIconRefComposite': (b's^{OpaqueIconRef=}^^{OpaqueIconRef=}^^{OpaqueIconRef=}', '', {'arguments': {1: {'type_modifier': 'o'}, 2: {'type_modifier': 'o'}}}), 'LSCanURLAcceptURL': (sel32or64(b'l^{__CFURL=}^{__CFURL=}LL^Z', b'i^{__CFURL=}^{__CFURL=}II^Z'), '', {'arguments': {4: {'type_modifier': 'o'}}}), 'GetIconRefFromFile': (b's^{FSSpec=sl[64C]}^^{OpaqueIconRef=}^s', '', {'arguments': {2: {'type_modifier': 'o'}}}), 'RemoveIconRefOverride': (b's^{OpaqueIconRef=}',), 'LSSharedFileListSetAuthorization': (sel32or64(b'l^{OpaqueLSSharedFileListRef=}^{AuthorizationOpaqueRef=}', b'i^{OpaqueLSSharedFileListRef=}^{AuthorizationOpaqueRef=}'),), 'LSOpenItemsWithRole': (sel32or64(b'l^{FSRef=[80C]}lL^{AEKeyDesc=L{AEDesc=L^^{OpaqueAEDataStorageType=}}}^{LSApplicationParameters=lL^{FSRef=[80C]}^v^{__CFDictionary=}^{__CFArray=}^{AEDesc=L^^{OpaqueAEDataStorageType=}}}^{ProcessSerialNumber=LL}l', b'i^{FSRef=[80C]}qI^{AEKeyDesc=I{AEDesc=I^^{OpaqueAEDataStorageType=}}}^{LSApplicationParameters=qI^{FSRef=[80C]}^v^{__CFDictionary=}^{__CFArray=}^{AEDesc=I^^{OpaqueAEDataStorageType=}}}^{ProcessSerialNumber=II}q'), '', {'arguments': {0: {'c_array_length_in_arg': 1, 'type_modifier': 'n'}, 3: {'type_modifier': 'n'}, 4: {'type_modifier': 'n'}, 5: {'c_array_length_in_arg': 6, 'type_modifier': 'o'}}}), 'RegisterIconRefFromResource': (b'sLL^{FSSpec=sl[64C]}s^^{OpaqueIconRef=}',), 'LSSharedFileListGetSeedValue': (sel32or64(b'L^{OpaqueLSSharedFileListRef=}', b'I^{OpaqueLSSharedFileListRef=}'),), 'LSOpenApplication': (sel32or64(b'l^{LSApplicationParameters=lL^{FSRef=[80C]}^v^{__CFDictionary=}^{__CFArray=}^{AEDesc=L^^{OpaqueAEDataStorageType=}}}^{ProcessSerialNumber=LL}', b'i^{LSApplicationParameters=qI^{FSRef=[80C]}^v^{__CFDictionary=}^{__CFArray=}^{AEDesc=I^^{OpaqueAEDataStorageType=}}}^{ProcessSerialNumber=II}'), '', {'arguments': {0: {'type_modifier': 'n'}, 1: {'type_modifier': 'o'}}}), 'LSGetApplicationForItem': (sel32or64(b'l^{FSRef=[80C]}L^{FSRef=[80C]}^^{__CFURL=}', b'i^{FSRef=[80C]}I^{FSRef=[80C]}^^{__CFURL=}'), '', {'arguments': {0: {'type_modifier': 'n'}, 2: {'type_modifier': 'o'}, 3: {'already_cfretained': True, 'type_modifier': 'o'}}}), 'LSSetDefaultHandlerForURLScheme': (sel32or64(b'l^{__CFString=}^{__CFString=}', b'i^{__CFString=}^{__CFString=}'),), 'GetIconRef': (sel32or64(b'ssLL^^{OpaqueIconRef=}', b'ssII^^{OpaqueIconRef=}'), '', {'arguments': {3: {'type_modifier': 'o'}}}), 'LSRegisterURL': (sel32or64(b'l^{__CFURL=}Z', b'i^{__CFURL=}Z'),), 'GetIconRefOwners': (b's^{OpaqueIconRef=}^S', '', {'arguments': {1: {'type_modifier': 'o'}}}), 'LSCopyAllHandlersForURLScheme': (b'^{__CFArray=}^{__CFString=}', '', {'retval': {'already_cfretained': True}}), 'UTTypeCopyDeclaringBundleURL': (b'^{__CFURL=}^{__CFString=}', '', {'retval': {'already_cfretained': True}}), 'AcquireIconRef': (b's^{OpaqueIconRef=}',), 'ReadIconFile': (b's^{FSSpec=sl[64C]}^^^{IconFamilyResource=Ll[1{IconFamilyElement=Ll[1C]}]}',), 'LSSharedFileListItemCopyIconRef': (b'^{OpaqueIconRef=}^{OpaqueLSSharedFileListItemRef=}', '', {'retval': {'already_cfretained': True}}), 'UTGetOSTypeFromString': (sel32or64(b'L^{__CFString=}', b'I^{__CFString=}'),), 'LSGetApplicationForURL': (sel32or64(b'l^{__CFURL=}L^{FSRef=[80C]}^^{__CFURL=}', b'i^{__CFURL=}I^{FSRef=[80C]}^^{__CFURL=}'), '', {'arguments': {2: {'type_modifier': 'o'}, 3: {'already_cfretained': True, 'type_modifier': 'o'}}}), 'LSSharedFileListInsertItemURL': (b'^{OpaqueLSSharedFileListItemRef=}^{OpaqueLSSharedFileListRef=}^{OpaqueLSSharedFileListItemRef=}^{__CFString=}^{OpaqueIconRef=}^{__CFURL=}^{__CFDictionary=}^{__CFArray=}', '', {'retval': {'already_cfretained': True}}), 'LSOpenURLsWithRole': (sel32or64(b'l^{__CFArray=}L^{AEKeyDesc=L{AEDesc=L^^{OpaqueAEDataStorageType=}}}^{LSApplicationParameters=lL^{FSRef=[80C]}^v^{__CFDictionary=}^{__CFArray=}^{AEDesc=L^^{OpaqueAEDataStorageType=}}}^{ProcessSerialNumber=LL}l', b'i^{__CFArray=}I^{AEKeyDesc=I{AEDesc=I^^{OpaqueAEDataStorageType=}}}^{LSApplicationParameters=qI^{FSRef=[80C]}^v^{__CFDictionary=}^{__CFArray=}^{AEDesc=I^^{OpaqueAEDataStorageType=}}}^{ProcessSerialNumber=II}q'), '', {'arguments': {2: {'type_modifier': 'n'}, 3: {'type_modifier': 'n'}, 4: {'c_array_length_in_arg': 5, 'type_modifier': 'o'}}}), 'LSCopyDefaultRoleHandlerForContentType': (sel32or64(b'^{__CFString=}^{__CFString=}L', b'^{__CFString=}^{__CFString=}I'), '', {'retval': {'already_cfretained': True}}), 'UnregisterIconRef': (sel32or64(b'sLL', b'sII'),), 'LSOpenFromURLSpec': (sel32or64(b'l^{LSLaunchURLSpec=^{__CFURL=}^{__CFArray=}^{AEDesc=L^^{OpaqueAEDataStorageType=}}L^v}^^{__CFURL=}', b'i^{LSLaunchURLSpec=^{__CFURL=}^{__CFArray=}^{AEDesc=I^^{OpaqueAEDataStorageType=}}I^v}^^{__CFURL=}'), '', {'arguments': {0: {'type_modifier': 'n'}, 1: {'already_cfretained': True, 'type_modifier': 'o'}}}), 'UTTypeConformsTo': (b'Z^{__CFString=}^{__CFString=}',), 'SetCustomIconsEnabled': (b'ssZ',), 'LSRegisterFSRef': (sel32or64(b'l^{FSRef=[80C]}Z', b'i^{FSRef=[80C]}Z'), '', {'arguments': {0: {'type_modifier': 'n'}}}), 'LSSetItemAttribute': (sel32or64(b'l^{FSRef=[80C]}L^{__CFString=}@', b'i^{FSRef=[80C]}I^{__CFString=}@'), '', {'arguments': {0: {'type_modifier': 'n'}}}), 'UTCreateStringForOSType': (sel32or64(b'^{__CFString=}L', b'^{__CFString=}I'), '', {'retval': {'already_cfretained': True}}), 'LSCopyKindStringForRef': (sel32or64(b'l^{FSRef=[80C]}^^{__CFString=}', b'i^{FSRef=[80C]}^^{__CFString=}'), '', {'retval': {'already_cfretained': True}, 'arguments': {0: {'type_modifier': 'n'}, 1: {'already_cfretained': True, 'type_modifier': 'o'}}}), 'LSCopyDisplayNameForRef': (sel32or64(b'l^{FSRef=[80C]}^^{__CFString=}', b'i^{FSRef=[80C]}^^{__CFString=}'), '', {'retval': {'already_cfretained': True}, 'arguments': {0: {'type_modifier': 'n'}, 1: {'already_cfretained': True, 'type_modifier': 'o'}}}), 'CompositeIconRef': (b's^{OpaqueIconRef=}^{OpaqueIconRef=}^^{OpaqueIconRef=}', '', {'arguments': {2: {'type_modifier': 'o'}}}), 'UTTypeEqual': (b'Z^{__CFString=}^{__CFString=}',), 'LSCopyKindStringForMIMEType': (sel32or64(b'l^{__CFString=}^^{__CFString=}', b'i^{__CFString=}^^{__CFString=}'), '', {'retval': {'already_cfretained': True}, 'arguments': {1: {'already_cfretained': True, 'type_modifier': 'o'}}}), 'RegisterIconRefFromIconFamily': (sel32or64(b'sLL^^{IconFamilyResource=Ll[1{IconFamilyElement=Ll[1C]}]}^^{OpaqueIconRef=}', b'sII^^{IconFamilyResource=Ii[1{IconFamilyElement=Ii[1C]}]}^^{OpaqueIconRef=}'),), 'LSCopyDisplayNameForURL': (sel32or64(b'l^{__CFURL=}^^{__CFString=}', b'i^{__CFURL=}^^{__CFString=}'), '', {'retval': {'already_cfretained': True}, 'arguments': {1: {'already_cfretained': True, 'type_modifier': 'o'}}}), 'GetIconRefFromFolder': (sel32or64(b'ssllcc^^{OpaqueIconRef=}', b'ssiicc^^{OpaqueIconRef=}'), '', {'arguments': {5: {'type_modifier': 'o'}}}), 'LSSetExtensionHiddenForRef': (sel32or64(b'l^{FSRef=[80C]}Z', b'i^{FSRef=[80C]}Z'), '', {'arguments': {0: {'type_modifier': 'n'}}}), 'OverrideIconRefFromResource': (b's^{OpaqueIconRef=}^{FSSpec=sl[64C]}s',), 'LSGetExtensionInfo': (sel32or64(b'lL^T^L', b'iQ^T^Q'), '', {'arguments': {1: {'c_array_length_in_arg': 0, 'type_modifier': 'n'}, 2: {'type_modifier': 'o'}}}), 'GetIconRefFromFileInfo': (sel32or64(b'l^{FSRef=[80C]}L^TL^{FSCatalogInfo=SsLLCCCC{UTCDateTime=SLS}{UTCDateTime=SLS}{UTCDateTime=SLS}{UTCDateTime=SLS}{UTCDateTime=SLS}[4L][16C][16C]QQQQLL}L^^{OpaqueIconRef=}^s', b'i^{FSRef=[80C]}Q^TI^{FSCatalogInfo=SsIICCCC{UTCDateTime=SIS}{UTCDateTime=SIS}{UTCDateTime=SIS}{UTCDateTime=SIS}{UTCDateTime=SIS}{FSPermissionInfo=IICCS^{__FSFileSecurity=}}[16C][16C]QQQQII}I^^{OpaqueIconRef=}^s'), '', {'arguments': {0: {'type_modifier': 'n'}, 2: {'c_array_length_in_arg': 1, 'type_modifier': 'n'}, 4: {'null_accepted': True, 'type_modifier': 'n'}, 6: {'type_modifier': 'o'}, 7: {'type_modifier': 'o'}}}), 'UTTypeCopyDescription': (b'^{__CFString=}^{__CFString=}', '', {'retval': {'already_cfretained': True}}), 'FlushIconRefsByVolume': (b'ss',), 'GetCustomIconsEnabled': (b'ss^Z', '', {'arguments': {1: {'type_modifier': 'o'}}}), 'LSCopyItemInfoForURL': (sel32or64(b'l^{__CFURL=}L^{LSItemInfoRecord=LLL^{__CFString=}^{__CFString=}L}', b'i^{__CFURL=}I^{LSItemInfoRecord=III^{__CFString=}}'), '', {'retval': {'already_cfretained': True}, 'arguments': {2: {'type_modifier': 'o'}}}), 'LSFindApplicationForInfo': (sel32or64(b'lL^{__CFString=}^{__CFString=}^{FSRef=[80C]}^^{__CFURL=}', b'iI^{__CFString=}^{__CFString=}^{FSRef=[80C]}^^{__CFURL=}'), '', {'arguments': {3: {'type_modifier': 'o'}, 4: {'already_cfretained': True, 'type_modifier': 'o'}}}), 'LSOpenFromRefSpec': (sel32or64(b'l^{LSLaunchFSRefSpec=^{FSRef=[80C]}L^{FSRef=[80C]}^{AEDesc=L^^{OpaqueAEDataStorageType=}}L^v}^{FSRef=[80C]}', b'i^{LSLaunchFSRefSpec=^{FSRef=[80C]}Q^{FSRef=[80C]}^{AEDesc=I^^{OpaqueAEDataStorageType=}}I^v}^{FSRef=[80C]}'), '', {'arguments': {0: {'type_modifier': 'n'}, 1: {'type_modifier': 'o'}}}), 'LSSharedFileListItemRemove': (sel32or64(b'l^{OpaqueLSSharedFileListRef=}^{OpaqueLSSharedFileListItemRef=}', b'i^{OpaqueLSSharedFileListRef=}^{OpaqueLSSharedFileListItemRef=}'),), 'LSCopyKindStringForURL': (sel32or64(b'l^{__CFURL=}^^{__CFString=}', b'i^{__CFURL=}^^{__CFString=}'), '', {'retval': {'already_cfretained': True}, 'arguments': {1: {'already_cfretained': True, 'type_modifier': 'o'}}}), 'LSCopyApplicationURLsForURL': (sel32or64(b'^{__CFArray=}^{__CFURL=}L', b'^{__CFArray=}^{__CFURL=}I'), '', {'retval': {'already_cfretained': True}}), 'LSOpenCFURLRef': (sel32or64(b'l^{__CFURL=}^^{__CFURL=}', b'i^{__CFURL=}^^{__CFURL=}'), '', {'arguments': {1: {'already_cfretained': True, 'type_modifier': 'o'}}}), 'LSSharedFileListCopySnapshot': (sel32or64(b'^{__CFArray=}^{OpaqueLSSharedFileListRef=}^L', b'^{__CFArray=}^{OpaqueLSSharedFileListRef=}^I'), '', {'retval': {'already_cfretained': True}, 'arguments': {1: {'type_modifier': 'o'}}}), 'LSSharedFileListAddObserver': (b'v^{OpaqueLSSharedFileListRef=}^{__CFRunLoop=}^{__CFString=}^?^v', '', {'arguments': {3: {'callable': {'retval': {'type': b'v'}, 'arguments': {0: {'type': b'^{OpaqueLSSharedFileListRef=}'}, 1: {'type': b'^v'}}}, 'callable_retained': True}}}), 'LSSharedFileListItemGetID': (sel32or64(b'L^{OpaqueLSSharedFileListItemRef=}', b'I^{OpaqueLSSharedFileListItemRef=}'),)} aliases = {'kLSInvalidExtensionIndex': 'ULONG_MAX'} cftypes=[('LSSharedFileListItemRef', b'^{OpaqueLSSharedFileListItemRef=}', 'LSSharedFileListItemGetTypeID', None), ('LSSharedFileListRef', b'^{OpaqueLSSharedFileListRef=}', 'LSSharedFileListGetTypeID', None)] misc.update({'IconRef': objc.createOpaquePointerType('IconRef', b'^{OpaqueIconRef=}')}) expressions = {} # END OF FILE
'/Users/jstoner/Documents/projects/boogiepants/boogiepants/build/Release/boogiepants.app/Contents/MacOS', '/Users/jstoner/Documents/projects/boogiepants/boogiepants/build/Release/boogiepants.app/Contents/Resources', '/Users/jstoner/Documents/projects/boogiepants/WiiRemoteFramework/build/Release', '/Library/Frameworks']) import objc objc.loadBundle("WiiRemote", globals(), bundle_path="WiiRemote.framework") from Foundation import * from AppKit import * from PyObjCTools import AppHelper wd = WiiRemoteDiscovery.new().init() IRData = objc.createStructType("IRData", "iii", ["x", "y", "s"]) WiiRemoteDiscoveryDelegate = objc.informal_protocol( "WiiRemoteDiscoveryDelegate", [ objc.selector(None,selector="WiiRemoteDiscovered:",signature="v@:@",isRequired=0), objc.selector(None, selector="WiiRemoteDiscoveryError:",signature="v@:i",isRequired=0) ]) WiiRemoteDelegate = objc.informal_protocol( "WiiRemoteDelegate", [ objc.selector(None, selector="irPointMovedX:",signature="v@:ff@", isRequired=False), objc.selector(None, selector="rawIRData:",signature="v@:[4{IRData=iii}]@", isRequired=False), objc.selector(None, selector="buttonChanged:",signature="v@:Sc@", isRequired=False), objc.selector(None, selector="accelerationChanged:",signature="v@:SCCC@", isRequired=False),
# This file is generated by objective.metadata # # Last update: Wed Sep 19 17:12:12 2012 import objc, sys if sys.maxsize > 2 ** 32: def sel32or64(a, b): return b else: def sel32or64(a, b): return a if sys.byteorder == 'little': def littleOrBig(a, b): return a else: def littleOrBig(a, b): return b misc = { } misc.update({'CTParagraphStyleSetting': objc.createStructType('CTParagraphStyleSetting', sel32or64(b'{CTParagraphStyleSetting=iL^v}', b'{CTParagraphStyleSetting=iQ^v}'), ['spec', 'valueSize', 'value'])}) constants = '''$kCTBaselineClassAttributeName@^{__CFString=}$kCTBaselineClassHanging@^{__CFString=}$kCTBaselineClassIdeographicCentered@^{__CFString=}$kCTBaselineClassIdeographicHigh@^{__CFString=}$kCTBaselineClassIdeographicLow@^{__CFString=}$kCTBaselineClassMath@^{__CFString=}$kCTBaselineClassRoman@^{__CFString=}$kCTBaselineInfoAttributeName@^{__CFString=}$kCTBaselineOriginalFont@^{__CFString=}$kCTBaselineReferenceFont@^{__CFString=}$kCTBaselineReferenceInfoAttributeName@^{__CFString=}$kCTCharacterShapeAttributeName@^{__CFString=}$kCTFontAttributeName@^{__CFString=}$kCTFontBaselineAdjustAttribute@^{__CFString=}$kCTFontCascadeListAttribute@^{__CFString=}$kCTFontCharacterSetAttribute@^{__CFString=}$kCTFontCollectionDisallowAutoActivationOption@^{__CFString=}$kCTFontCollectionIncludeDisabledFontsOption@^{__CFString=}$kCTFontCollectionRemoveDuplicatesOption@^{__CFString=}$kCTFontCopyrightNameKey@^{__CFString=}$kCTFontDescriptionNameKey@^{__CFString=}$kCTFontDesignerNameKey@^{__CFString=}$kCTFontDesignerURLNameKey@^{__CFString=}$kCTFontDisplayNameAttribute@^{__CFString=}$kCTFontEnabledAttribute@^{__CFString=}$kCTFontFamilyNameAttribute@^{__CFString=}$kCTFontFamilyNameKey@^{__CFString=}$kCTFontFeatureSelectorDefaultKey@^{__CFString=}$kCTFontFeatureSelectorIdentifierKey@^{__CFString=}$kCTFontFeatureSelectorNameKey@^{__CFString=}$kCTFontFeatureSelectorSettingKey@^{__CFString=}$kCTFontFeatureSettingsAttribute@^{__CFString=}$kCTFontFeatureTypeExclusiveKey@^{__CFString=}$kCTFontFeatureTypeIdentifierKey@^{__CFString=}$kCTFontFeatureTypeNameKey@^{__CFString=}$kCTFontFeatureTypeSelectorsKey@^{__CFString=}$kCTFontFeaturesAttribute@^{__CFString=}$kCTFontFixedAdvanceAttribute@^{__CFString=}$kCTFontFormatAttribute@^{__CFString=}$kCTFontFullNameKey@^{__CFString=}$kCTFontLanguagesAttribute@^{__CFString=}$kCTFontLicenseNameKey@^{__CFString=}$kCTFontLicenseURLNameKey@^{__CFString=}$kCTFontMacintoshEncodingsAttribute@^{__CFString=}$kCTFontManagerBundleIdentifier@^{__CFString=}$kCTFontManagerErrorDomain@^{__CFString=}$kCTFontManagerErrorFontURLsKey@^{__CFString=}$kCTFontManagerRegisteredFontsChangedNotification@^{__CFString=}$kCTFontManufacturerNameKey@^{__CFString=}$kCTFontMatrixAttribute@^{__CFString=}$kCTFontNameAttribute@^{__CFString=}$kCTFontOrientationAttribute@^{__CFString=}$kCTFontPostScriptCIDNameKey@^{__CFString=}$kCTFontPostScriptNameKey@^{__CFString=}$kCTFontPriorityAttribute@^{__CFString=}$kCTFontRegistrationScopeAttribute@^{__CFString=}$kCTFontSampleTextNameKey@^{__CFString=}$kCTFontSizeAttribute@^{__CFString=}$kCTFontSlantTrait@^{__CFString=}$kCTFontStyleNameAttribute@^{__CFString=}$kCTFontStyleNameKey@^{__CFString=}$kCTFontSubFamilyNameKey@^{__CFString=}$kCTFontSymbolicTrait@^{__CFString=}$kCTFontTrademarkNameKey@^{__CFString=}$kCTFontTraitsAttribute@^{__CFString=}$kCTFontURLAttribute@^{__CFString=}$kCTFontUniqueNameKey@^{__CFString=}$kCTFontVariationAttribute@^{__CFString=}$kCTFontVariationAxisDefaultValueKey@^{__CFString=}$kCTFontVariationAxisIdentifierKey@^{__CFString=}$kCTFontVariationAxisMaximumValueKey@^{__CFString=}$kCTFontVariationAxisMinimumValueKey@^{__CFString=}$kCTFontVariationAxisNameKey@^{__CFString=}$kCTFontVendorURLNameKey@^{__CFString=}$kCTFontVersionNameKey@^{__CFString=}$kCTFontWeightTrait@^{__CFString=}$kCTFontWidthTrait@^{__CFString=}$kCTForegroundColorAttributeName@^{__CFString=}$kCTForegroundColorFromContextAttributeName@^{__CFString=}$kCTFrameClippingPathsAttributeName@^{__CFString=}$kCTFramePathClippingPathAttributeName@^{__CFString=}$kCTFramePathFillRuleAttributeName@^{__CFString=}$kCTFramePathWidthAttributeName@^{__CFString=}$kCTFrameProgressionAttributeName@^{__CFString=}$kCTGlyphInfoAttributeName@^{__CFString=}$kCTKernAttributeName@^{__CFString=}$kCTLigatureAttributeName@^{__CFString=}$kCTParagraphStyleAttributeName@^{__CFString=}$kCTRunDelegateAttributeName@^{__CFString=}$kCTStrokeColorAttributeName@^{__CFString=}$kCTStrokeWidthAttributeName@^{__CFString=}$kCTSuperscriptAttributeName@^{__CFString=}$kCTTabColumnTerminatorsAttributeName@^{__CFString=}$kCTTypesetterOptionDisableBidiProcessing@^{__CFString=}$kCTTypesetterOptionForcedEmbeddingLevel@^{__CFString=}$kCTUnderlineColorAttributeName@^{__CFString=}$kCTUnderlineStyleAttributeName@^{__CFString=}$kCTVerticalFormsAttributeName@^{__CFString=}$kCTWritingDirectionAttributeName@^{__CFString=}$''' enums = '''$kCTAdobeCNS1CharacterCollection@1$kCTAdobeGB1CharacterCollection@2$kCTAdobeJapan1CharacterCollection@3$kCTAdobeJapan2CharacterCollection@4$kCTAdobeKorea1CharacterCollection@5$kCTCenterTextAlignment@2$kCTCharacterCollectionAdobeCNS1@1$kCTCharacterCollectionAdobeGB1@2$kCTCharacterCollectionAdobeJapan1@3$kCTCharacterCollectionAdobeJapan2@4$kCTCharacterCollectionAdobeKorea1@5$kCTCharacterCollectionIdentityMapping@0$kCTFontAlertHeaderFontType@18$kCTFontApplicationFontType@9$kCTFontBoldTrait@2$kCTFontClarendonSerifsClass@1073741824$kCTFontClassClarendonSerifs@1073741824$kCTFontClassFreeformSerifs@1879048192$kCTFontClassMaskShift@28$kCTFontClassMaskTrait@4026531840$kCTFontClassModernSerifs@805306368$kCTFontClassOldStyleSerifs@268435456$kCTFontClassOrnamentals@2415919104$kCTFontClassSansSerif@2147483648$kCTFontClassScripts@2684354560$kCTFontClassSlabSerifs@1342177280$kCTFontClassSymbolic@3221225472$kCTFontClassTransitionalSerifs@536870912$kCTFontClassUnknown@0$kCTFontCollectionCopyDefaultOptions@0$kCTFontCollectionCopyStandardSort@2$kCTFontCollectionCopyUnique@1$kCTFontColorGlyphsTrait@8192$kCTFontCompositeTrait@16384$kCTFontCondensedTrait@64$kCTFontControlContentFontType@26$kCTFontDefaultOrientation@0$kCTFontEmphasizedSystemDetailFontType@20$kCTFontEmphasizedSystemFontType@3$kCTFontExpandedTrait@32$kCTFontFormatBitmap@5$kCTFontFormatOpenTypePostScript@1$kCTFontFormatOpenTypeTrueType@2$kCTFontFormatPostScript@4$kCTFontFormatTrueType@3$kCTFontFormatUnrecognized@0$kCTFontFreeformSerifsClass@1879048192$kCTFontHorizontalOrientation@1$kCTFontItalicTrait@1$kCTFontLabelFontType@10$kCTFontManagerAutoActivationDefault@0$kCTFontManagerAutoActivationDisabled@1$kCTFontManagerAutoActivationEnabled@2$kCTFontManagerAutoActivationPromptUser@3$kCTFontManagerErrorAlreadyRegistered@105$kCTFontManagerErrorFileNotFound@101$kCTFontManagerErrorInUse@202$kCTFontManagerErrorInsufficientPermissions@102$kCTFontManagerErrorInvalidFontData@104$kCTFontManagerErrorNotRegistered@201$kCTFontManagerErrorSystemRequired@202$kCTFontManagerErrorUnrecognizedFormat@103$kCTFontManagerScopeNone@0$kCTFontManagerScopeProcess@1$kCTFontManagerScopeSession@3$kCTFontManagerScopeUser@2$kCTFontMenuItemCmdKeyFontType@14$kCTFontMenuItemFontType@12$kCTFontMenuItemMarkFontType@13$kCTFontMenuTitleFontType@11$kCTFontMessageFontType@23$kCTFontMiniEmphasizedSystemFontType@7$kCTFontMiniSystemFontType@6$kCTFontModernSerifsClass@805306368$kCTFontMonoSpaceTrait@1024$kCTFontNoFontType@4294967295$kCTFontOldStyleSerifsClass@268435456$kCTFontOptionsDefault@0$kCTFontOptionsPreferSystemFont@4$kCTFontOptionsPreventAutoActivation@1$kCTFontOrientationDefault@0$kCTFontOrientationHorizontal@1$kCTFontOrientationVertical@2$kCTFontOrnamentalsClass@2415919104$kCTFontPaletteFontType@24$kCTFontPriorityComputer@30000$kCTFontPriorityDynamic@50000$kCTFontPriorityNetwork@20000$kCTFontPriorityProcess@60000$kCTFontPrioritySystem@10000$kCTFontPriorityUser@40000$kCTFontPushButtonFontType@16$kCTFontSansSerifClass@2147483648$kCTFontScriptsClass@2684354560$kCTFontSlabSerifsClass@1342177280$kCTFontSmallEmphasizedSystemFontType@5$kCTFontSmallSystemFontType@4$kCTFontSmallToolbarFontType@22$kCTFontSymbolicClass@3221225472$kCTFontSystemDetailFontType@19$kCTFontSystemFontType@2$kCTFontTableAcnt@1633906292$kCTFontTableAnkr@1634626418$kCTFontTableAvar@1635148146$kCTFontTableBASE@1111577413$kCTFontTableBdat@1650745716$kCTFontTableBhed@1651008868$kCTFontTableBloc@1651273571$kCTFontTableBsln@1651731566$kCTFontTableCFF@1128678944$kCTFontTableCmap@1668112752$kCTFontTableCvar@1668702578$kCTFontTableCvt@1668707360$kCTFontTableDSIG@1146308935$kCTFontTableEBDT@1161970772$kCTFontTableEBLC@1161972803$kCTFontTableEBSC@1161974595$kCTFontTableFdsc@1717859171$kCTFontTableFeat@1717920116$kCTFontTableFmtx@1718449272$kCTFontTableFpgm@1718642541$kCTFontTableFvar@1719034226$kCTFontTableGDEF@1195656518$kCTFontTableGPOS@1196445523$kCTFontTableGSUB@1196643650$kCTFontTableGasp@1734439792$kCTFontTableGlyf@1735162214$kCTFontTableGvar@1735811442$kCTFontTableHdmx@1751412088$kCTFontTableHead@1751474532$kCTFontTableHhea@1751672161$kCTFontTableHmtx@1752003704$kCTFontTableHsty@1752396921$kCTFontTableJSTF@1246975046$kCTFontTableJust@1786082164$kCTFontTableKern@1801810542$kCTFontTableKerx@1801810552$kCTFontTableLTSH@1280594760$kCTFontTableLcar@1818452338$kCTFontTableLoca@1819239265$kCTFontTableMaxp@1835104368$kCTFontTableMort@1836020340$kCTFontTableMorx@1836020344$kCTFontTableName@1851878757$kCTFontTableOS2@1330851634$kCTFontTableOpbd@1869636196$kCTFontTableOptionExcludeSynthetic@1$kCTFontTableOptionNoOptions@0$kCTFontTablePCLT@1346587732$kCTFontTablePost@1886352244$kCTFontTablePrep@1886545264$kCTFontTableProp@1886547824$kCTFontTableSbit@1935829364$kCTFontTableSbix@1935829368$kCTFontTableTrak@1953653099$kCTFontTableVDMX@1447316824$kCTFontTableVORG@1448038983$kCTFontTableVhea@1986553185$kCTFontTableVmtx@1986884728$kCTFontTableZapf@1516335206$kCTFontToolTipFontType@25$kCTFontToolbarFontType@21$kCTFontTraitBold@2$kCTFontTraitClassMask@4026531840$kCTFontTraitColorGlyphs@8192$kCTFontTraitComposite@16384$kCTFontTraitCondensed@64$kCTFontTraitExpanded@32$kCTFontTraitItalic@1$kCTFontTraitMonoSpace@1024$kCTFontTraitUIOptimized@4096$kCTFontTraitVertical@2048$kCTFontTransitionalSerifsClass@536870912$kCTFontUIFontAlertHeader@18$kCTFontUIFontApplication@9$kCTFontUIFontControlContent@26$kCTFontUIFontEmphasizedSystem@3$kCTFontUIFontEmphasizedSystemDetail@20$kCTFontUIFontLabel@10$kCTFontUIFontMenuItem@12$kCTFontUIFontMenuItemCmdKey@14$kCTFontUIFontMenuItemMark@13$kCTFontUIFontMenuTitle@11$kCTFontUIFontMessage@23$kCTFontUIFontMiniEmphasizedSystem@7$kCTFontUIFontMiniSystem@6$kCTFontUIFontNone@4294967295$kCTFontUIFontPalette@24$kCTFontUIFontPushButton@16$kCTFontUIFontSmallEmphasizedSystem@5$kCTFontUIFontSmallSystem@4$kCTFontUIFontSmallToolbar@22$kCTFontUIFontSystem@2$kCTFontUIFontSystemDetail@19$kCTFontUIFontToolTip@25$kCTFontUIFontToolbar@21$kCTFontUIFontUser@0$kCTFontUIFontUserFixedPitch@1$kCTFontUIFontUtilityWindowTitle@17$kCTFontUIFontViews@8$kCTFontUIFontWindowTitle@15$kCTFontUIOptimizedTrait@4096$kCTFontUnknownClass@0$kCTFontUserFixedPitchFontType@1$kCTFontUserFontType@0$kCTFontUtilityWindowTitleFontType@17$kCTFontVerticalOrientation@2$kCTFontVerticalTrait@2048$kCTFontViewsFontType@8$kCTFontWindowTitleFontType@15$kCTFramePathFillEvenOdd@0$kCTFramePathFillWindingNumber@1$kCTFrameProgressionRightToLeft@1$kCTFrameProgressionTopToBottom@0$kCTIdentityMappingCharacterCollection@0$kCTJustifiedTextAlignment@3$kCTLeftTextAlignment@0$kCTLineBoundsExcludeTypographicLeading@1$kCTLineBoundsExcludeTypographicShifts@2$kCTLineBoundsUseGlyphPathBounds@8$kCTLineBoundsUseHangingPunctuation@4$kCTLineBoundsUseOpticalBounds@16$kCTLineBreakByCharWrapping@1$kCTLineBreakByClipping@2$kCTLineBreakByTruncatingHead@3$kCTLineBreakByTruncatingMiddle@5$kCTLineBreakByTruncatingTail@4$kCTLineBreakByWordWrapping@0$kCTLineTruncationEnd@1$kCTLineTruncationMiddle@2$kCTLineTruncationStart@0$kCTNaturalTextAlignment@4$kCTParagraphStyleSpecifierAlignment@0$kCTParagraphStyleSpecifierBaseWritingDirection@13$kCTParagraphStyleSpecifierCount@18$kCTParagraphStyleSpecifierDefaultTabInterval@5$kCTParagraphStyleSpecifierFirstLineHeadIndent@1$kCTParagraphStyleSpecifierHeadIndent@2$kCTParagraphStyleSpecifierLineBoundsOptions@17$kCTParagraphStyleSpecifierLineBreakMode@6$kCTParagraphStyleSpecifierLineHeightMultiple@7$kCTParagraphStyleSpecifierLineSpacing@10$kCTParagraphStyleSpecifierLineSpacingAdjustment@16$kCTParagraphStyleSpecifierMaximumLineHeight@8$kCTParagraphStyleSpecifierMaximumLineSpacing@14$kCTParagraphStyleSpecifierMinimumLineHeight@9$kCTParagraphStyleSpecifierMinimumLineSpacing@15$kCTParagraphStyleSpecifierParagraphSpacing@11$kCTParagraphStyleSpecifierParagraphSpacingBefore@12$kCTParagraphStyleSpecifierTabStops@4$kCTParagraphStyleSpecifierTailIndent@3$kCTRightTextAlignment@1$kCTRunStatusHasNonIdentityMatrix@4$kCTRunStatusNoStatus@0$kCTRunStatusNonMonotonic@2$kCTRunStatusRightToLeft@1$kCTTextAlignmentCenter@2$kCTTextAlignmentJustified@3$kCTTextAlignmentLeft@0$kCTTextAlignmentNatural@4$kCTTextAlignmentRight@1$kCTUnderlinePatternDash@512$kCTUnderlinePatternDashDot@768$kCTUnderlinePatternDashDotDot@1024$kCTUnderlinePatternDot@256$kCTUnderlinePatternSolid@0$kCTUnderlineStyleDouble@9$kCTUnderlineStyleNone@0$kCTUnderlineStyleSingle@1$kCTUnderlineStyleThick@2$kCTVersionNumber10_5@131072$kCTVersionNumber10_5_2@131073$kCTVersionNumber10_5_3@131074$kCTVersionNumber10_5_5@131075$kCTVersionNumber10_6@196608$kCTVersionNumber10_6_7@196615$kCTVersionNumber10_7@262144$kCTVersionNumber10_8@327680$kCTWritingDirectionEmbedding@0$kCTWritingDirectionLeftToRight@0$kCTWritingDirectionNatural@-1$kCTWritingDirectionOverride@2$kCTWritingDirectionRightToLeft@1$''' misc.update({}) functions={'CTFontManagerCreateFontDescriptorsFromURL': (b'^{__CFArray=}^{__CFURL=}', '', {'retval': {'already_cfretained': True}}), 'CTLineCreateTruncatedLine': (b'^{__CTLine=}^{__CTLine=}dI^{__CTLine=}', '', {'retval': {'already_cfretained': True}}), 'CTFramesetterCreateFrame': (sel32or64(b'^{__CTFrame=}^{__CTFramesetter=}{_CFRange=ll}^{CGPath=}^{__CFDictionary=}', b'^{__CTFrame=}^{__CTFramesetter=}{_CFRange=qq}^{CGPath=}^{__CFDictionary=}'), '', {'retval': {'already_cfretained': True}}), 'CTTypesetterSuggestClusterBreak': (sel32or64(b'l^{__CTTypesetter=}ld', b'q^{__CTTypesetter=}qd'),), 'CTFontCreateCopyWithFamily': (sel32or64(b'^{__CTFont=}^{__CTFont=}f^{CGAffineTransform=ffffff}^{__CFString=}', b'^{__CTFont=}^{__CTFont=}d^{CGAffineTransform=dddddd}^{__CFString=}'), '', {'retval': {'already_cfretained': True}}), 'CTFontGetGlyphsForCharacters': (sel32or64(b'B^{__CTFont=}^T^Sl', b'B^{__CTFont=}^T^Sq'), '', {'arguments': {1: {'c_array_length_in_arg': 3, 'type_modifier': 'n'}, 2: {'c_array_length_in_arg': 3, 'type_modifier': 'o'}}}), 'CTLineGetPenOffsetForFlush': (sel32or64(b'd^{__CTLine=}fd', b'd^{__CTLine=}dd'),), 'CTTypesetterSuggestLineBreak': (sel32or64(b'l^{__CTTypesetter=}ld', b'q^{__CTTypesetter=}qd'),), 'CTFontCreateWithGraphicsFont': (sel32or64(b'^{__CTFont=}^{CGFont=}f^{CGAffineTransform=ffffff}^{__CTFontDescriptor=}', b'^{__CTFont=}^{CGFont=}d^{CGAffineTransform=dddddd}^{__CTFontDescriptor=}'), '', {'retval': {'already_cfretained': True}, 'arguments': {2: {'type_modifier': 'n'}}}), 'CTRunGetStringRange': (sel32or64(b'{_CFRange=ll}^{__CTRun=}', b'{_CFRange=qq}^{__CTRun=}'),), 'CTFontCreateWithQuickdrawInstance': (sel32or64(b'^{__CTFont=}*sCf', b'^{__CTFont=}*sCd'), '', {'retval': {'already_cfretained': True}}), 'CTFontManagerUnregisterFontsForURL': (b'B^{__CFURL=}I^^{__CFError=}', '', {'arguments': {2: {'already_cfretained': True, 'type_modifier': 'o', 'null_accepted': True}}}), 'CTFontManagerCreateFontRequestRunLoopSource': (sel32or64(b'^{__CFRunLoopSource=}l@?', b'^{__CFRunLoopSource=}q@?'), '', {'retval': {'already_cfretained': True}, 'arguments': {1: {'block': {'retval': {'type': b'^{__CFArray=}'}, 'arguments': {0: {'type': b'^{__CFDictionary=}'}, 1: {'type': b'i'}}}}}}), 'CTFontManagerSetAutoActivationSetting': (b'v^{__CFString=}I',), 'CTRunGetStringIndices': (sel32or64(b'v^{__CTRun=}{_CFRange=ll}^l', b'v^{__CTRun=}{_CFRange=qq}^q'), '', {'arguments': {2: {'c_array_length_in_arg': 1, 'type_modifier': 'o'}}}), 'CTFontCopyAvailableTables': (b'^{__CFArray=}^{__CTFont=}I', '', {'retval': {'already_cfretained': True}}), 'CTFontManagerCompareFontFamilyNames': (sel32or64(b'i^v^v^v', b'q^v^v^v'),), 'CTRunGetStringIndicesPtr': (sel32or64(b'r^i^{__CTRun=}', b'r^q^{__CTRun=}'), '', {'retval': {'c_array_of_variable_length': True}}), 'CTFontGetAscent': (sel32or64(b'f^{__CTFont=}', b'd^{__CTFont=}'),), 'CTFontManagerRegisterGraphicsFont': (b'B^{CGFont=}^^{__CFError=}', '', {'arguments': {1: {'already_cfretained': True, 'type_modifier': 'o', 'null_accepted': True}}}), 'CTFontCollectionCopyQueryDescriptors': (b'^{__CFArray=}^{__CTFontCollection=}', '', {'retval': {'already_cfretained': True}}), 'CTTypesetterCreateLine': (sel32or64(b'^{__CTLine=}^{__CTTypesetter=}{_CFRange=ll}', b'^{__CTLine=}^{__CTTypesetter=}{_CFRange=qq}'), '', {'retval': {'already_cfretained': True}}), 'CTFontGetDescent': (sel32or64(b'f^{__CTFont=}', b'd^{__CTFont=}'),), 'CTFontCreateWithFontDescriptor': (sel32or64(b'^{__CTFont=}^{__CTFontDescriptor=}f^{CGAffineTransform=ffffff}', b'^{__CTFont=}^{__CTFontDescriptor=}d^{CGAffineTransform=dddddd}'), '', {'retval': {'already_cfretained': True}, 'arguments': {2: {'type_modifier': 'n'}}}), 'CTRunGetAttributes': (b'^{__CFDictionary=}^{__CTRun=}',), 'CTFontCopySupportedLanguages': (b'^{__CFArray=}^{__CTFont=}', '', {'retval': {'already_cfretained': True}}), 'CTFontCopyVariationAxes': (b'^{__CFArray=}^{__CTFont=}', '', {'retval': {'already_cfretained': True}}), 'CTTextTabGetLocation': (b'd^{__CTTextTab=}',), 'CTFontCopyPostScriptName': (b'^{__CFString=}^{__CTFont=}', '', {'retval': {'already_cfretained': True}}), 'CTFrameGetVisibleStringRange': (sel32or64(b'{_CFRange=ll}^{__CTFrame=}', b'{_CFRange=qq}^{__CTFrame=}'),), 'CTFontGetVerticalTranslationsForGlyphs': (sel32or64(b'v^{__CTFont=}^S^{_NSSize=ff}l', b'v^{__CTFont=}^S^{CGSize=dd}q'), '', {'arguments': {1: {'c_array_length_in_arg': 3, 'type_modifier': 'n'}, 2: {'c_array_length_in_arg': 3, 'type_modifier': 'o'}}}), 'CTFontCollectionCreateMatchingFontDescriptorsWithOptions': (b'^{__CFArray=}^{__CTFontCollection=}^{__CFDictionary=}', '', {'retval': {'already_cfretained': True}}), 'CTFramesetterCreateWithAttributedString': (b'^{__CTFramesetter=}^{__CFAttributedString=}', '', {'retval': {'already_cfretained': True}}), 'CTFontCreatePathForGlyph': (sel32or64(b'^{CGPath=}^{__CTFont=}S^{CGAffineTransform=ffffff}', b'^{CGPath=}^{__CTFont=}S^{CGAffineTransform=dddddd}'), '', {'retval': {'already_cfretained': True}, 'arguments': {2: {'type_modifier': 'n'}}}), 'CTFrameDraw': (b'v^{__CTFrame=}^{CGContext=}',), 'CTFontCollectionCopyExclusionDescriptors': (b'^{__CFArray=}^{__CTFontCollection=}', '', {'retval': {'already_cfretained': True}}), 'CTFontManagerGetAutoActivationSetting': (b'I^{__CFString=}',), 'CTFontGetOpticalBoundsForGlyphs': (sel32or64(b'{CGRect={CGPoint=ff}{CGSize=ff}}^{__CTFont=}^S^{CGRect={CGPoint=ff}{CGSize=ff}}lL', b'{CGRect={CGPoint=dd}{CGSize=dd}}^{__CTFont=}^S^{CGRect={CGPoint=dd}{CGSize=dd}}qQ'),), 'CTFontDescriptorCopyAttribute': (b'@^{__CTFontDescriptor=}^{__CFString=}', '', {'retval': {'already_cfretained': True}}), 'CTFontCreateWithFontDescriptorAndOptions': (sel32or64(b'^{__CTFont=}^{__CTFontDescriptor=}f^{CGAffineTransform=ffffff}L', b'^{__CTFont=}^{__CTFontDescriptor=}d^{CGAffineTransform=dddddd}Q'), '', {'retval': {'already_cfretained': True}, 'arguments': {2: {'type_modifier': 'n'}}}), 'CTFontGetMatrix': (sel32or64(b'{CGAffineTransform=ffffff}^{__CTFont=}', b'{CGAffineTransform=dddddd}^{__CTFont=}'),), 'CTFontGetSymbolicTraits': (b'I^{__CTFont=}',), 'CTFontCreateCopyWithAttributes': (sel32or64(b'^{__CTFont=}^{__CTFont=}f^{CGAffineTransform=ffffff}^{__CTFontDescriptor=}', b'^{__CTFont=}^{__CTFont=}d^{CGAffineTransform=dddddd}^{__CTFontDescriptor=}'), '', {'retval': {'already_cfretained': True}}), 'CTFontCollectionCopyFontAttribute': (b'^{__CFArray=}^{__CTFontCollection=}^{__CFString=}I', '', {'retval': {'already_cfretained': True}}), 'CTFontCopyFamilyName': (b'^{__CFString=}^{__CTFont=}', '', {'retval': {'already_cfretained': True}}), 'CTGlyphInfoGetTypeID': (sel32or64(b'L', b'Q'),), 'CTParagraphStyleCreate': (sel32or64(b'^{__CTParagraphStyle=}^{CTParagraphStyleSetting=II^v}l', b'^{__CTParagraphStyle=}^{CTParagraphStyleSetting=IQ^v}q'), '', {'retval': {'already_cfretained': True}, 'arguments': {0: {'c_array_length_in_arg': 1, 'type_modifier': 'n'}}}), 'CTRunGetImageBounds': (sel32or64(b'{CGRect={CGPoint=ff}{CGSize=ff}}^{__CTRun=}^{CGContext=}{_CFRange=ll}', b'{CGRect={CGPoint=dd}{CGSize=dd}}^{__CTRun=}^{CGContext=}{_CFRange=qq}'),), 'CTFontManagerIsSupportedFont': (b'B^{__CFURL=}',), 'CTRunGetStatus': (b'I^{__CTRun=}',), 'CTGlyphInfoGetCharacterIdentifier': (b'S^{__CTGlyphInfo=}',), 'CTFontGetUnitsPerEm': (b'I^{__CTFont=}',), 'CTFontCopyVariation': (b'^{__CFDictionary=}^{__CTFont=}', '', {'retval': {'already_cfretained': True}}), 'CTFrameGetFrameAttributes': (b'^{__CFDictionary=}^{__CTFrame=}',), 'CTTextTabCreate': (b'^{__CTTextTab=}Cd^{__CFDictionary=}', '', {'retval': {'already_cfretained': True}}), 'CTFontCollectionSetExclusionDescriptors': (b'v^{__CTFontCollection=}^{__CFArray=}',), 'CTFrameGetPath': (b'^{CGPath=}^{__CTFrame=}',), 'CTFrameGetTypeID': (sel32or64(b'L', b'Q'),), 'CTFramesetterGetTypeID': (sel32or64(b'L', b'Q'),), 'CTFontCollectionCreateFromAvailableFonts': (b'^{__CTFontCollection=}^{__CFDictionary=}', '', {'retval': {'already_cfretained': True}}), 'CTRunGetGlyphsPtr': (b'r^S^{__CTRun=}', '', {'retval': {'c_array_of_variable_length': True}}), 'CTFontDrawGlyphs': (sel32or64(b'v^{__CTFont=}^S^{CGPoint=ff}L^{CGContext=}', b'v^{__CTFont=}^S^{CGPoint=dd}Q^{CGContext=}'),), 'CTFontGetGlyphCount': (sel32or64(b'l^{__CTFont=}', b'q^{__CTFont=}'),), 'CTFontManagerCreateFontDescriptorFromData': (b'^{__CTFontDescriptor=}^{__CFData=}', '', {'retval': {'already_cfretained': True}}), 'CTGlyphInfoGetCharacterCollection': (b'S^{__CTGlyphInfo=}',), 'CTFontCopyAttribute': (b'@^{__CTFont=}^{__CFString=}', '', {'retval': {'already_cfretained': True}}), 'CTFontGetBoundingRectsForGlyphs': (sel32or64(b'{CGRect={CGPoint=ff}{CGSize=ff}}^{__CTFont=}I^S^{_NSRect={_NSPoint=ff}{_NSSize=ff}}l', b'{CGRect={CGPoint=dd}{CGSize=dd}}^{__CTFont=}I^S^{CGRect={CGPoint=dd}{CGSize=dd}}q'), '', {'arguments': {2: {'c_array_length_in_arg': 4, 'type_modifier': 'n'}, 3: {'c_array_length_in_arg': 4, 'type_modifier': 'o'}}}), 'CTFontGetBoundingBox': (sel32or64(b'{CGRect={CGPoint=ff}{CGSize=ff}}^{__CTFont=}', b'{CGRect={CGPoint=dd}{CGSize=dd}}^{__CTFont=}'),), 'CTTypesetterCreateWithAttributedStringAndOptions': (b'^{__CTTypesetter=}^{__CFAttributedString=}^{__CFDictionary=}', '', {'retval': {'already_cfretained': True}}), 'CTLineGetImageBounds': (sel32or64(b'{CGRect={CGPoint=ff}{CGSize=ff}}^{__CTLine=}^{CGContext=}', b'{CGRect={CGPoint=dd}{CGSize=dd}}^{__CTLine=}^{CGContext=}'),), 'CTFontCopyDisplayName': (b'^{__CFString=}^{__CTFont=}', '', {'retval': {'already_cfretained': True}}), 'CTGetCoreTextVersion': (b'I',), 'CTParagraphStyleCreateCopy': (b'^{__CTParagraphStyle=}^{__CTParagraphStyle=}', '', {'retval': {'already_cfretained': True}}), 'CTFontGetAdvancesForGlyphs': (sel32or64(b'd^{__CTFont=}I^S^{_NSSize=ff}l', b'd^{__CTFont=}I^S^{CGSize=dd}q'), '', {'arguments': {2: {'c_array_length_in_arg': 4, 'type_modifier': 'n'}, 3: {'c_array_length_in_arg': 4, 'type_modifier': 'o'}}}), 'CTTextTabGetOptions': (b'^{__CFDictionary=}^{__CTTextTab=}',), 'CTGlyphInfoCreateWithGlyph': (b'^{__CTGlyphInfo=}S^{__CTFont=}^{__CFString=}', '', {'retval': {'already_cfretained': True}}), 'CTFontCreateWithPlatformFont': (sel32or64(b'^{__CTFont=}Lf^{CGAffineTransform=ffffff}^{__CTFontDescriptor=}', b'^{__CTFont=}Id^{CGAffineTransform=dddddd}^{__CTFontDescriptor=}'), '', {'retval': {'already_cfretained': True}, 'arguments': {2: {'type_modifier': 'n'}}}), 'CTFontManagerUnregisterGraphicsFont': (b'B^{CGFont=}^^{__CFError=}', '', {'arguments': {1: {'already_cfretained': True, 'type_modifier': 'o', 'null_accepted': True}}}), 'CTTypesetterSuggestClusterBreakWithOffset': (sel32or64(b'l^{__CTTypesetter=}ldd', b'q^{__CTTypesetter=}qdd'),), 'CTRunGetTypeID': (sel32or64(b'L', b'Q'),), 'CTLineGetTypographicBounds': (sel32or64(b'd^{__CTLine=}^f^f^f', b'd^{__CTLine=}^d^d^d'), '', {'arguments': {1: {'type_modifier': 'o'}, 2: {'type_modifier': 'o'}, 3: {'type_modifier': 'o'}}}), 'CTFontGetPlatformFont': (sel32or64(b'L^{__CTFont=}^^{__CTFontDescriptor}', b'I^{__CTFont=}^^{__CTFontDescriptor}'), '', {'arguments': {1: {'already_cfretained': True, 'type_modifier': 'o'}}}), 'CTLineGetTrailingWhitespaceWidth': (b'd^{__CTLine=}',), 'CTFontManagerRegisterFontsForURL': (b'B^{__CFURL=}I^^{__CFError=}', '', {'arguments': {2: {'already_cfretained': True, 'type_modifier': 'o', 'null_accepted': True}}}), 'CTFontCopyTable': (b'^{__CFData=}^{__CTFont=}II', '', {'retval': {'already_cfretained': True}}), 'CTTypesetterSuggestLineBreakWithOffset': (sel32or64(b'l^{__CTTypesetter=}ldd', b'q^{__CTTypesetter=}qdd'),), 'CTGlyphInfoCreateWithCharacterIdentifier': (b'^{__CTGlyphInfo=}SS^{__CFString=}', '', {'retval': {'already_cfretained': True}}), 'CTFontCopyCharacterSet': (b'^{__CFCharacterSet=}^{__CTFont=}', '', {'retval': {'already_cfretained': True}}), 'CTFontGetStringEncoding': (sel32or64(b'L^{__CTFont=}', b'I^{__CTFont=}'),), 'CTRunGetAdvances': (sel32or64(b'v^{__CTRun=}{_CFRange=ll}^{_NSSize=ff}', b'v^{__CTRun=}{_CFRange=qq}^{CGSize=dd}'), '', {'arguments': {2: {'c_array_length_in_arg': 1, 'type_modifier': 'o'}}}), 'CTFontCollectionCreateMatchingFontDescriptorsSortedWithCallback': (b'^{__CFArray=}^{__CTFontCollection=}^?@', '', {'retval': {'already_cfretained': True}, 'arguments': {1: {'callable': {'retval': {'type': b'i'}, 'arguments': {0: {'type': b'^{__CTFontDescriptor=}'}, 1: {'type': b'^{__CTFontDescriptor=}'}, 2: {'type': b'@'}}}, 'callable_retained': False}}}), 'CTFontCopyFullName': (b'^{__CFString=}^{__CTFont=}', '', {'retval': {'already_cfretained': True}}), 'CTParagraphStyleGetValueForSpecifier': (sel32or64(b'B^{__CTParagraphStyle=}IL^v', b'B^{__CTParagraphStyle=}IQ^v'), '', {'arguments': {3: {'c_array_length_in_arg': 2, 'type_modifier': 'o'}}}), 'CTLineGetOffsetForStringIndex': (sel32or64(b'f^{__CTLine=}l^f', b'd^{__CTLine=}q^d'), '', {'arguments': {2: {'type_modifier': 'o'}}}), 'CTFontManagerEnableFontDescriptors': (b'v^{__CFArray=}B',), 'CTFontCopyLocalizedName': (b'^{__CFString=}^{__CTFont=}^{__CFString=}^^{__CFString}', '', {'retval': {'already_cfretained': True}, 'arguments': {2: {'type_modifier': 'o'}}}), 'CTFontGetTypeID': (sel32or64(b'L', b'Q'),), 'CTFontManagerGetScopeForURL': (b'I^{__CFURL=}',), 'CTFontGetSize': (sel32or64(b'f^{__CTFont=}', b'd^{__CTFont=}'),), 'CTFontCollectionGetTypeID': (sel32or64(b'L', b'Q'),), 'CTFontGetGlyphWithName': (b'S^{__CTFont=}^{__CFString=}',), 'CTLineGetGlyphRuns': (b'^{__CFArray=}^{__CTLine=}',), 'CTFontCreateWithNameAndOptions': (sel32or64(b'^{__CTFont=}^{__CFString=}f^{CGAffineTransform=ffffff}L', b'^{__CTFont=}^{__CFString=}d^{CGAffineTransform=dddddd}Q'), '', {'retval': {'already_cfretained': True}, 'arguments': {2: {'type_modifier': 'n'}}}), 'CTFontDescriptorCreateCopyWithAttributes': (b'^{__CTFontDescriptor=}^{__CTFontDescriptor=}^{__CFDictionary=}', '', {'retval': {'already_cfretained': True}}), 'CTFontCopyFontDescriptor': (b'^{__CTFontDescriptor=}^{__CTFont=}', '', {'retval': {'already_cfretained': True}}), 'CTFontGetCapHeight': (sel32or64(b'f^{__CTFont=}', b'd^{__CTFont=}'),), 'CTFontGetUnderlineThickness': (sel32or64(b'f^{__CTFont=}', b'd^{__CTFont=}'),), 'CTFontManagerCopyAvailableFontURLs': (b'^{__CFArray=}', '', {'retval': {'already_cfretained': True}}), 'CTFontCopyFeatureSettings': (b'^{__CFArray=}^{__CTFont=}', '', {'retval': {'already_cfretained': True}}), 'CTFontDescriptorCreateMatchingFontDescriptor': (b'^{__CTFontDescriptor=}^{__CTFontDescriptor=}^{__CFSet=}', '', {'retval': {'already_cfretained': True}}), 'CTLineGetGlyphCount': (sel32or64(b'l^{__CTLine=}', b'q^{__CTLine=}'),), 'CTLineDraw': (b'v^{__CTLine=}^{CGContext=}',), 'CTFontDescriptorCreateCopyWithFeature': (b'^{__CTFontDescriptor=}^{__CTFontDescriptor=}^{__CFNumber=}^{__CFNumber=}', '', {'retval': {'already_cfretained': True}}), 'CTTypesetterGetTypeID': (sel32or64(b'L', b'Q'),), 'CTRunGetTextMatrix': (sel32or64(b'{CGAffineTransform=ffffff}^{__CTRun=}', b'{CGAffineTransform=dddddd}^{__CTRun=}'),), 'CTFontGetLigatureCaretPositions': (sel32or64(b'l^{__CTFont=}S^fl', b'q^{__CTFont=}S^dq'),), 'CTFontCollectionCreateMutableCopy': (b'^{__CTFontCollection=}^{__CTFontCollection=}', '', {'retval': {'already_cfretained': True}}), 'CTFontDescriptorCreateWithNameAndSize': (sel32or64(b'^{__CTFontDescriptor=}^{__CFString=}f', b'^{__CTFontDescriptor=}^{__CFString=}d'), '', {'retval': {'already_cfretained': True}}), 'CTLineGetStringRange': (sel32or64(b'{_CFRange=ll}^{__CTLine=}', b'{_CFRange=qq}^{__CTLine=}'),), 'CTFontManagerCopyAvailablePostScriptNames': (b'^{__CFArray=}', '', {'retval': {'already_cfretained': True}}), 'CTLineCreateJustifiedLine': (sel32or64(b'^{__CTLine=}^{__CTLine=}fd', b'^{__CTLine=}^{__CTLine=}dd'), '', {'retval': {'already_cfretained': True}}), 'CTFrameGetLines': (b'^{__CFArray=}^{__CTFrame=}',), 'CTFontCollectionCreateCopyWithFontDescriptors': (b'^{__CTFontCollection=}^{__CTFontCollection=}^{__CFArray=}^{__CFDictionary=}', '', {'retval': {'already_cfretained': True}}), 'CTRunGetGlyphCount': (sel32or64(b'l^{__CTRun=}', b'q^{__CTRun=}'),), 'CTFontDescriptorCreateMatchingFontDescriptors': (b'^{__CFArray=}^{__CTFontDescriptor=}^{__CFSet=}', '', {'retval': {'already_cfretained': True}}), 'CTFontCollectionSetQueryDescriptors': (b'v^{__CTFontCollection=}^{__CFArray=}',), 'CTFontDescriptorCopyLocalizedAttribute': (b'@^{__CTFontDescriptor=}^{__CFString=}^^{__CFString}', '', {'retval': {'already_cfretained': True}, 'arguments': {2: {'type_modifier': 'o'}}}), 'CTFrameGetStringRange': (sel32or64(b'{_CFRange=ll}^{__CTFrame=}', b'{_CFRange=qq}^{__CTFrame=}'),), 'CTFrameGetLineOrigins': (sel32or64(b'v^{__CTFrame=}{_CFRange=ll}^{_NSPoint=ff}', b'v^{__CTFrame=}{_CFRange=qq}^{CGPoint=dd}'), '', {'arguments': {2: {'c_array_length_in_arg': 1, 'type_modifier': 'o'}}}), 'CTFontCreateWithName': (sel32or64(b'^{__CTFont=}^{__CFString=}f^{CGAffineTransform=ffffff}', b'^{__CTFont=}^{__CFString=}d^{CGAffineTransform=dddddd}'), '', {'retval': {'already_cfretained': True}, 'arguments': {2: {'type_modifier': 'n'}}}), 'CTFramesetterGetTypesetter': (b'^{__CTTypesetter=}^{__CTFramesetter=}',), 'CTGlyphInfoCreateWithGlyphName': (b'^{__CTGlyphInfo=}^{__CFString=}^{__CTFont=}^{__CFString=}', '', {'retval': {'already_cfretained': True}}), 'CTLineGetBoundsWithOptions': (sel32or64(b'{CGRect={CGPoint=ff}{CGSize=ff}}^{__CTLine=}i', b'{CGRect={CGPoint=dd}{CGSize=dd}}^{__CTLine=}i'),), 'CTFontCopyGraphicsFont': (b'^{CGFont=}^{__CTFont=}^^{__CTFontDescriptor}', '', {'retval': {'already_cfretained': True}, 'arguments': {1: {'already_cfretained': True, 'type_modifier': 'o'}}}), 'CTFontCollectionCreateMatchingFontDescriptorsForFamily': (b'^{__CFArray=}^{__CTFontCollection=}^{__CFString=}^{__CFDictionary=}', '', {'retval': {'already_cfretained': True}}), 'CTFontGetXHeight': (sel32or64(b'f^{__CTFont=}', b'd^{__CTFont=}'),), 'CTRunGetPositions': (sel32or64(b'v^{__CTRun=}{_CFRange=ll}^{_NSPoint=ff}', b'v^{__CTRun=}{_CFRange=qq}^{CGPoint=dd}'), '', {'arguments': {2: {'c_array_length_in_arg': 1, 'type_modifier': 'o'}}}), 'CTFontDescriptorCreateCopyWithVariation': (sel32or64(b'^{__CTFontDescriptor=}^{__CTFontDescriptor=}^{__CFNumber=}f', b'^{__CTFontDescriptor=}^{__CTFontDescriptor=}^{__CFNumber=}d'), '', {'retval': {'already_cfretained': True}}), 'CTFontDescriptorCreateWithAttributes': (b'^{__CTFontDescriptor=}^{__CFDictionary=}', '', {'retval': {'already_cfretained': True}}), 'CTFontDescriptorGetTypeID': (sel32or64(b'L', b'Q'),), 'CTFontCollectionCreateMatchingFontDescriptors': (b'^{__CFArray=}^{__CTFontCollection=}', '', {'retval': {'already_cfretained': True}}), 'CTTextTabGetTypeID': (sel32or64(b'L', b'Q'),), 'CTFontManagerUnregisterFontsForURLs': (b'B^{__CFArray=}I^^{__CFArray=}',), 'CTFontCreateCopyWithSymbolicTraits': (sel32or64(b'^{__CTFont=}^{__CTFont=}f^{CGAffineTransform=ffffff}II', b'^{__CTFont=}^{__CTFont=}d^{CGAffineTransform=dddddd}II'), '', {'retval': {'already_cfretained': True}}), 'CTFontCopyTraits': (b'^{__CFDictionary=}^{__CTFont=}', '', {'retval': {'already_cfretained': True}}), 'CTRunDraw': (sel32or64(b'v^{__CTRun=}^{CGContext=}{_CFRange=ll}', b'v^{__CTRun=}^{CGContext=}{_CFRange=qq}'),), 'CTLineGetStringIndexForPosition': (sel32or64(b'l^{__CTLine=}{CGPoint=ff}', b'q^{__CTLine=}{CGPoint=dd}'),), 'CTFontDescriptorCopyAttributes': (b'^{__CFDictionary=}^{__CTFontDescriptor=}', '', {'retval': {'already_cfretained': True}}), 'CTFontGetLeading': (sel32or64(b'f^{__CTFont=}', b'd^{__CTFont=}'),), 'CTRunGetGlyphs': (sel32or64(b'v^{__CTRun=}{_CFRange=ll}^S', b'v^{__CTRun=}{_CFRange=qq}^S'), '', {'arguments': {2: {'c_array_length_in_arg': 1, 'type_modifier': 'o'}}}), 'CTFontCollectionCreateWithFontDescriptors': (b'^{__CTFontCollection=}^{__CFArray=}^{__CFDictionary=}', '', {'retval': {'already_cfretained': True}}), 'CTTypesetterCreateLineWithOffset': (sel32or64(b'^{__CTLine=}^{__CTTypesetter=}{_CFRange=ll}d', b'^{__CTLine=}^{__CTTypesetter=}{_CFRange=qq}d'), '', {'retval': {'already_cfretained': True}}), 'CTFontGetUnderlinePosition': (sel32or64(b'f^{__CTFont=}', b'd^{__CTFont=}'),), 'CTRunGetTypographicBounds': (sel32or64(b'd^{__CTRun=}{_CFRange=ll}^f^f^f', b'd^{__CTRun=}{_CFRange=qq}^d^d^d'), '', {'arguments': {2: {'type_modifier': 'o'}, 3: {'type_modifier': 'o'}, 4: {'type_modifier': 'o'}}}), 'CTTypesetterCreateWithAttributedString': (b'^{__CTTypesetter=}^{__CFAttributedString=}', '', {'retval': {'already_cfretained': True}}), 'CTLineCreateWithAttributedString': (b'^{__CTLine=}^{__CFAttributedString=}', '', {'retval': {'already_cfretained': True}}), 'CTTextTabGetAlignment': (b'C^{__CTTextTab=}',), 'CTFontCopyName': (b'^{__CFString=}^{__CTFont=}^{__CFString=}', '', {'retval': {'already_cfretained': True}}), 'CTFontGetSlantAngle': (sel32or64(b'f^{__CTFont=}', b'd^{__CTFont=}'),), 'CTFramesetterSuggestFrameSizeWithConstraints': (sel32or64(b'{CGSize=ff}^{__CTTypesetter=}{_CFRange=ll}@{CGSize=ff}^{_CFRange=ll}', b'{CGSize=dd}^{__CTTypesetter=}{_CFRange=qq}@{CGSize=dd}^{_CFRange=qq}'), '', {'arguments': {4: {'type_modifier': 'o'}}}), 'CTFontCollectionCopyFontAttributes': (b'^{__CFArray=}^{__CTFontCollection=}^{__CFSet=}I', '', {'retval': {'already_cfretained': True}}), 'CTFontManagerRegisterFontsForURLs': (b'B^{__CFArray=}I^^{__CFArray=}',), 'CTFontCopyFeatures': (b'^{__CFArray=}^{__CTFont=}', '', {'retval': {'already_cfretained': True}}), 'CTFontCreateForString': (sel32or64(b'^{__CTFont=}^{__CTFont=}^{__CFString=}{_CFRange=ll}', b'^{__CTFont=}^{__CTFont=}^{__CFString=}{_CFRange=qq}'), '', {'retval': {'already_cfretained': True}}), 'CTGlyphInfoGetGlyphName': (b'^{__CFString=}^{__CTGlyphInfo=}',), 'CTParagraphStyleGetTypeID': (sel32or64(b'L', b'Q'),), 'CTFontCreateUIFontForLanguage': (sel32or64(b'^{__CTFont=}If^{__CFString=}', b'^{__CTFont=}Id^{__CFString=}'), '', {'retval': {'already_cfretained': True}}), 'CTFontManagerCopyAvailableFontFamilyNames': (b'^{__CFArray=}', '', {'retval': {'already_cfretained': True}}), 'CTLineGetTypeID': (sel32or64(b'L', b'Q'),), 'CTRunGetPositionsPtr': (sel32or64(b'r^{_NSPoint=ff}^{__CTRun=}', b'r^{CGPoint=dd}^{__CTRun=}'), '', {'retval': {'c_array_of_variable_length': True}})} aliases = {'CT_DEPRECATED_ENUMERATOR': '__CT_DEPRECATED_ENUMERATOR', 'CT_AVAILABLE_BUT_DEPRECATED': '__OSX_AVAILABLE_BUT_DEPRECATED', 'CT_AVAILABLE_STARTING': '__OSX_AVAILABLE_STARTING'} cftypes=[('CTFontCollectionRef', b'^{__CTFontCollection=}', 'CTFontCollectionGetTypeID', 'NSCTFontCollection'), ('CTFontDescriptorRef', b'^{__CTFontDescriptor=}', 'CTFontDescriptorGetTypeID', 'NSCTFontDescriptor'), ('CTFontRef', b'^{__CTFont=}', 'CTFontGetTypeID', 'NSCTFont'), ('CTFrameRef', b'^{__CTFrame=}', 'CTFrameGetTypeID', None), ('CTFramesetterRef', b'^{__CTFramesetter=}', 'CTFramesetterGetTypeID', None), ('CTGlyphInfoRef', b'^{__CTGlyphInfo=}', 'CTGlyphInfoGetTypeID', 'NSCTGlyphInfo'), ('CTLineRef', b'^{__CTLine=}', 'CTLineGetTypeID', None), ('CTParagraphStyleRef', b'^{__CTParagraphStyle=}', 'CTParagraphStyleGetTypeID', None), ('CTRunRef', b'^{__CTRun=}', 'CTRunGetTypeID', None), ('CTTextTabRef', b'^{__CTTextTab=}', 'CTTextTabGetTypeID', None), ('CTTypesetterRef', b'^{__CTTypesetter=}', 'CTTypesetterGetTypeID', None)] expressions = {} # END OF FILE
def littleOrBig(a, b): return b misc = {} misc.update({ "ABRecordRef": objc.createStructType( "ABRecordRef", b"{__ABBookflags=b1b1b1b1b1b1b1b1b1b1b1b21}", [ "hasUnsavedChanges", "readOnly", "importMe", "needConversion", "cleanedUp", "importTips", "restoreFromMetaData", "prefsNeedSync", "waitingForReset", "enforcesConstraints", "tracksAllSources", "_reserved", ], ), "ABAddressBookRef": objc.createStructType("ABAddressBookRef", b"{__ABAddressBookRef=}", []), "ABMutableMultiValueRef": objc.createStructType("ABMutableMultiValueRef", b"{__ABMultiValue=}", []), "ABActionEnabledCallback": objc.createStructType("ABActionEnabledCallback", b"{__ABMultiValue=}", []), "ABPickerAttributes":
# Last update: Sun Jun 11 11:19:41 2017 import objc, sys if sys.maxsize > 2 ** 32: def sel32or64(a, b): return b else: def sel32or64(a, b): return a if sys.byteorder == 'little': def littleOrBig(a, b): return a else: def littleOrBig(a, b): return b misc = { } misc.update({'GCExtendedGamepadValueChangedHandler': objc.createStructType('GCExtendedGamepadValueChangedHandler', b'{_GCGamepadSnapShotDataV100=SSffffffff}', ['version', 'size', 'dpadX', 'dpadY', 'buttonA', 'buttonB', 'buttonX', 'buttonY', 'leftShoulder', 'rightShoulder']), 'GCQuaternion': objc.createStructType('GCQuaternion', b'{GCQuaternion=dddd}', ['x', 'y', 'z', 'w']), 'GCAcceleration': objc.createStructType('GCAcceleration', b'{_GCAcceleration=ddd}', ['x', 'y', 'z']), 'GCGamepadSnapShotDataV100': objc.createStructType('GCGamepadSnapShotDataV100', b'{_GCGamepadSnapShotDataV100=SSffffffff}', ['version', 'size', 'dpadX', 'dpadY', 'buttonA', 'buttonB', 'buttonX', 'buttonY', 'leftShoulder', 'rightShoulder'], None, 1), 'GCExtendedGamepadSnapShotDataV100': objc.createStructType('GCExtendedGamepadSnapShotDataV100', b'{_GCExtendedGamepadSnapShotDataV100=SSffffffffffffff}', ['version', 'size', 'dpadX', 'dpadY', 'buttonA', 'buttonB', 'buttonX', 'buttonY', 'leftShoulder', 'rightShoulder', 'leftThumbstickX', 'leftThumbstickY', 'rightThumbstickX', 'rightThumbstickY', 'leftTrigger', 'rightTrigger'], None, 1), 'GCRotationRate': objc.createStructType('GCRotationRate', b'{_GCRotationRate=ddd}', ['x', 'y', 'z']), 'GCMicroGamepadSnapShotDataV100': objc.createStructType('GCMicroGamepadSnapShotDataV100', b'{_GCMicroGamepadSnapShotDataV100=SSffff}', ['version', 'size', 'dpadX', 'dpadY', 'buttonA', 'buttonX'], None, 1)}) constants = '''$GCControllerDidConnectNotification$GCControllerDidDisconnectNotification$''' enums = '''$GCControllerPlayerIndexUnset@-1$''' misc.update({}) functions={'NSDataFromGCMicroGamepadSnapShotDataV100': (b'@n^{_GCMicroGamepadSnapShotDataV100=}',), 'GCGamepadSnapShotDataV100FromNSData': (b'Z^{_GCGamepadSnapShotDataV100=SSffffffff}@', '', {'arguments': {0: {'type_modifier': 'o'}}}), 'NSDataFromGCGamepadSnapShotDataV100': (b'@^{_GCGamepadSnapShotDataV100=SSffffffff}', '', {'arguments': {0: {'type_modifier': 'n'}}}), 'GCExtendedGamepadSnapShotDataV100FromNSData': (b'Z^{_GCExtendedGamepadSnapShotDataV100=SSffffffffffffff}@', '', {'arguments': {0: {'type_modifier': 'o'}}}), 'GCMicroGamepadSnapShotDataV100FromNSData': (b'Zo^{_GCMicroGamepadSnapShotDataV100=}@',), 'NSDataFromGCExtendedGamepadSnapShotDataV100': (b'@^{_GCExtendedGamepadSnapShotDataV100=SSffffffffffffff}', '', {'arguments': {0: {'type_modifier': 'n'}}})} r = objc.registerMetaDataForSelector objc._updatingMetadata(True) try: r(b'GCController', b'controllerPausedHandler', {'retval': {'callable': {'retval': {'type': b'v'}, 'arguments': {0: {'type': b'^v'}, 1: {'type': b'@'}}}}}) r(b'GCController', b'isAttachedToDevice', {'retval': {'type': b'Z'}}) r(b'GCController', b'setControllerPausedHandler:', {'arguments': {2: {'callable': {'retval': {'type': b'v'}, 'arguments': {0: {'type': b'^v'}, 1: {'type': b'@'}}}}}}) r(b'GCController', b'startWirelessControllerDiscoveryWithCompletionHandler:', {'arguments': {2: {'callable': {'retval': {'type': b'v'}, 'arguments': {0: {'type': b'^v'}}}}}}) r(b'GCControllerAxisInput', b'setValueChangedHandler:', {'arguments': {2: {'callable': {'retval': {'type': b'v'}, 'arguments': {0: {'type': b'^v'}, 1: {'type': b'@'}, 2: {'type': b'f'}}}}}}) r(b'GCControllerAxisInput', b'valueChangedHandler', {'retval': {'callable': {'retval': {'type': b'v'}, 'arguments': {0: {'type': b'^v'}, 1: {'type': b'@'}, 2: {'type': b'f'}}}}}) r(b'GCControllerButtonInput', b'isPressed', {'retval': {'type': b'Z'}}) r(b'GCControllerButtonInput', b'pressedChangedHandler', {'retval': {'callable': {'retval': {'type': b'v'}, 'arguments': {0: {'type': b'^v'}, 1: {'type': b'@'}, 2: {'type': b'f'}, 3: {'type': b'Z'}}}}})
def sel32or64(a, b): return b else: def sel32or64(a, b): return a misc = {} misc.update({ "MIDIIOErrorNotification": objc.createStructType( "MIDIIOErrorNotification", b"{MIDIIOErrorNotification=iIIi}", ["messageID", "messageSize", "driverDevice", "errorCode"], ), "MIDIMessage_96": objc.createStructType("MIDIMessage_96", b"{MIDIMessage_96=III}", ["word0", "word1", "word2"]), "MIDIMessage_128": objc.createStructType( "MIDIMessage_128", b"{MIDIMessage_128=IIII}", ["word0", "word1", "word2", "word3"], ), "MIDIThruConnectionEndpoint": objc.createStructType( "MIDIThruConnectionEndpoint", b"{MIDIThruConnectionEndpoint=Ii}",
# Last update: Wed Sep 19 10:07:56 2012 import objc, sys if sys.maxsize > 2 ** 32: def sel32or64(a, b): return b else: def sel32or64(a, b): return a if sys.byteorder == 'little': def littleOrBig(a, b): return a else: def littleOrBig(a, b): return b misc = { } misc.update({'CFHostClientContext': objc.createStructType('CFHostClientContext', sel32or64(b'{CFHostClientContext=l^v^?^?^?}', b'{CFHostClientContext=q^v^?^?^?}'), []), 'CFNetServiceClientContext': objc.createStructType('CFNetServiceClientContext', sel32or64(b'{CFNetServiceClientContext=l^v^?^?^?}', b'{CFNetServiceClientContext=q^v^?^?^?}'), [])}) constants = '''$kCFDNSServiceFailureKey@^{__CFString=}$kCFErrorDomainCFNetwork@^{__CFString=}$kCFErrorDomainWinSock@^{__CFString=}$kCFFTPResourceGroup@^{__CFString=}$kCFFTPResourceLink@^{__CFString=}$kCFFTPResourceModDate@^{__CFString=}$kCFFTPResourceMode@^{__CFString=}$kCFFTPResourceName@^{__CFString=}$kCFFTPResourceOwner@^{__CFString=}$kCFFTPResourceSize@^{__CFString=}$kCFFTPResourceType@^{__CFString=}$kCFFTPStatusCodeKey@^{__CFString=}$kCFGetAddrInfoFailureKey@^{__CFString=}$kCFHTTPAuthenticationAccountDomain@^{__CFString=}$kCFHTTPAuthenticationPassword@^{__CFString=}$kCFHTTPAuthenticationSchemeBasic@^{__CFString=}$kCFHTTPAuthenticationSchemeDigest@^{__CFString=}$kCFHTTPAuthenticationSchemeKerberos@^{__CFString=}$kCFHTTPAuthenticationSchemeNTLM@^{__CFString=}$kCFHTTPAuthenticationSchemeNegotiate@^{__CFString=}$kCFHTTPAuthenticationSchemeNegotiate2@^{__CFString=}$kCFHTTPAuthenticationSchemeXMobileMeAuthToken@^{__CFString=}$kCFHTTPAuthenticationUsername@^{__CFString=}$kCFHTTPVersion1_0@^{__CFString=}$kCFHTTPVersion1_1@^{__CFString=}$kCFNetworkProxiesExceptionsList@^{__CFString=}$kCFNetworkProxiesExcludeSimpleHostnames@^{__CFString=}$kCFNetworkProxiesFTPEnable@^{__CFString=}$kCFNetworkProxiesFTPPassive@^{__CFString=}$kCFNetworkProxiesFTPPort@^{__CFString=}$kCFNetworkProxiesFTPProxy@^{__CFString=}$kCFNetworkProxiesGopherEnable@^{__CFString=}$kCFNetworkProxiesGopherPort@^{__CFString=}$kCFNetworkProxiesGopherProxy@^{__CFString=}$kCFNetworkProxiesHTTPEnable@^{__CFString=}$kCFNetworkProxiesHTTPPort@^{__CFString=}$kCFNetworkProxiesHTTPProxy@^{__CFString=}$kCFNetworkProxiesHTTPSEnable@^{__CFString=}$kCFNetworkProxiesHTTPSPort@^{__CFString=}$kCFNetworkProxiesHTTPSProxy@^{__CFString=}$kCFNetworkProxiesProxyAutoConfigEnable@^{__CFString=}$kCFNetworkProxiesProxyAutoConfigJavaScript@^{__CFString=}$kCFNetworkProxiesProxyAutoConfigURLString@^{__CFString=}$kCFNetworkProxiesProxyAutoDiscoveryEnable@^{__CFString=}$kCFNetworkProxiesRTSPEnable@^{__CFString=}$kCFNetworkProxiesRTSPPort@^{__CFString=}$kCFNetworkProxiesRTSPProxy@^{__CFString=}$kCFNetworkProxiesSOCKSEnable@^{__CFString=}$kCFNetworkProxiesSOCKSPort@^{__CFString=}$kCFNetworkProxiesSOCKSProxy@^{__CFString=}$kCFProxyAutoConfigurationHTTPResponseKey@^{__CFString=}$kCFProxyAutoConfigurationJavaScriptKey@^{__CFString=}$kCFProxyAutoConfigurationURLKey@^{__CFString=}$kCFProxyHostNameKey@^{__CFString=}$kCFProxyPasswordKey@^{__CFString=}$kCFProxyPortNumberKey@^{__CFString=}$kCFProxyTypeAutoConfigurationJavaScript@^{__CFString=}$kCFProxyTypeAutoConfigurationURL@^{__CFString=}$kCFProxyTypeFTP@^{__CFString=}$kCFProxyTypeHTTP@^{__CFString=}$kCFProxyTypeHTTPS@^{__CFString=}$kCFProxyTypeKey@^{__CFString=}$kCFProxyTypeNone@^{__CFString=}$kCFProxyTypeSOCKS@^{__CFString=}$kCFProxyUsernameKey@^{__CFString=}$kCFSOCKSNegotiationMethodKey@^{__CFString=}$kCFSOCKSStatusCodeKey@^{__CFString=}$kCFSOCKSVersionKey@^{__CFString=}$kCFStreamErrorDomainSOCKS@i$kCFStreamErrorDomainSSL@i$kCFStreamNetworkServiceType@^{__CFString=}$kCFStreamNetworkServiceTypeBackground@^{__CFString=}$kCFStreamNetworkServiceTypeVideo@^{__CFString=}$kCFStreamNetworkServiceTypeVoIP@^{__CFString=}$kCFStreamNetworkServiceTypeVoice@^{__CFString=}$kCFStreamPropertyConnectionIsCellular@^{__CFString=}$kCFStreamPropertyFTPAttemptPersistentConnection@^{__CFString=}$kCFStreamPropertyFTPFetchResourceInfo@^{__CFString=}$kCFStreamPropertyFTPFileTransferOffset@^{__CFString=}$kCFStreamPropertyFTPPassword@^{__CFString=}$kCFStreamPropertyFTPProxy@^{__CFString=}$kCFStreamPropertyFTPProxyHost@^{__CFString=}$kCFStreamPropertyFTPProxyPassword@^{__CFString=}$kCFStreamPropertyFTPProxyPort@^{__CFString=}$kCFStreamPropertyFTPProxyUser@^{__CFString=}$kCFStreamPropertyFTPResourceSize@^{__CFString=}$kCFStreamPropertyFTPUsePassiveMode@^{__CFString=}$kCFStreamPropertyFTPUserName@^{__CFString=}$kCFStreamPropertyHTTPAttemptPersistentConnection@^{__CFString=}$kCFStreamPropertyHTTPFinalRequest@^{__CFString=}$kCFStreamPropertyHTTPFinalURL@^{__CFString=}$kCFStreamPropertyHTTPProxy@^{__CFString=}$kCFStreamPropertyHTTPProxyHost@^{__CFString=}$kCFStreamPropertyHTTPProxyPort@^{__CFString=}$kCFStreamPropertyHTTPRequestBytesWrittenCount@^{__CFString=}$kCFStreamPropertyHTTPResponseHeader@^{__CFString=}$kCFStreamPropertyHTTPSProxyHost@^{__CFString=}$kCFStreamPropertyHTTPSProxyPort@^{__CFString=}$kCFStreamPropertyHTTPShouldAutoredirect@^{__CFString=}$kCFStreamPropertyNoCellular@^{__CFString=}$kCFStreamPropertyProxyLocalBypass@^{__CFString=}$kCFStreamPropertySOCKSPassword@^{__CFString=}$kCFStreamPropertySOCKSProxy@^{__CFString=}$kCFStreamPropertySOCKSProxyHost@^{__CFString=}$kCFStreamPropertySOCKSProxyPort@^{__CFString=}$kCFStreamPropertySOCKSUser@^{__CFString=}$kCFStreamPropertySOCKSVersion@^{__CFString=}$kCFStreamPropertySSLContext@^{__CFString=}$kCFStreamPropertySSLPeerCertificates@^{__CFString=}$kCFStreamPropertySSLPeerTrust@^{__CFString=}$kCFStreamPropertySSLSettings@^{__CFString=}$kCFStreamPropertyShouldCloseNativeSocket@^{__CFString=}$kCFStreamPropertySocketRemoteHost@^{__CFString=}$kCFStreamPropertySocketRemoteNetService@^{__CFString=}$kCFStreamPropertySocketSecurityLevel@^{__CFString=}$kCFStreamSSLAllowsAnyRoot@^{__CFString=}$kCFStreamSSLAllowsExpiredCertificates@^{__CFString=}$kCFStreamSSLAllowsExpiredRoots@^{__CFString=}$kCFStreamSSLCertificates@^{__CFString=}$kCFStreamSSLIsServer@^{__CFString=}$kCFStreamSSLLevel@^{__CFString=}$kCFStreamSSLPeerName@^{__CFString=}$kCFStreamSSLValidatesCertificateChain@^{__CFString=}$kCFStreamSocketSOCKSVersion4@^{__CFString=}$kCFStreamSocketSOCKSVersion5@^{__CFString=}$kCFStreamSocketSecurityLevelNegotiatedSSL@^{__CFString=}$kCFStreamSocketSecurityLevelNone@^{__CFString=}$kCFStreamSocketSecurityLevelSSLv2@^{__CFString=}$kCFStreamSocketSecurityLevelSSLv3@^{__CFString=}$kCFStreamSocketSecurityLevelTLSv1@^{__CFString=}$kCFURLErrorFailingURLErrorKey@^{__CFString=}$kCFURLErrorFailingURLStringErrorKey@^{__CFString=}$''' constants = constants + '$kCFStreamErrorDomainNetServices@%s$'%(sel32or64('l', 'i'),) constants = constants + '$kCFStreamErrorDomainFTP@%s$'%(sel32or64('l', 'i'),) constants = constants + '$kCFStreamErrorDomainSystemConfiguration@%s$'%(sel32or64('l', 'i'),) constants = constants + '$kCFStreamErrorDomainWinSock@%s$'%(sel32or64('l', 'q'),) constants = constants + '$kCFStreamErrorDomainNetDB@%s$'%(sel32or64('l', 'i'),) constants = constants + '$kCFStreamErrorDomainMach@%s$'%(sel32or64('l', 'i'),) constants = constants + '$kCFStreamErrorDomainHTTP@%s$'%(sel32or64('l', 'i'),) enums = '''$kCFErrorHTTPAuthenticationTypeUnsupported@300$kCFErrorHTTPBadCredentials@301$kCFErrorHTTPBadProxyCredentials@307$kCFErrorHTTPBadURL@305$kCFErrorHTTPConnectionLost@302$kCFErrorHTTPParseFailure@303$kCFErrorHTTPProxyConnectionFailure@306$kCFErrorHTTPRedirectionLoopDetected@304$kCFErrorHTTPSProxyConnectionFailure@310$kCFErrorPACFileAuth@309$kCFErrorPACFileError@308$kCFFTPErrorUnexpectedStatusCode@200$kCFHTTPCookieCannotParseCookieFile@-4000$kCFHostAddresses@0$kCFHostErrorHostNotFound@1$kCFHostErrorUnknown@2$kCFHostNames@1$kCFHostReachability@2$kCFNetDiagnosticConnectionDown@-66557$kCFNetDiagnosticConnectionIndeterminate@-66558$kCFNetDiagnosticConnectionUp@-66559$kCFNetDiagnosticErr@-66560$kCFNetDiagnosticNoErr@0$kCFNetServiceErrorBadArgument@-72004$kCFNetServiceErrorCancel@-72005$kCFNetServiceErrorCollision@-72001$kCFNetServiceErrorDNSServiceFailure@-73000$kCFNetServiceErrorInProgress@-72003$kCFNetServiceErrorInvalid@-72006$kCFNetServiceErrorNotFound@-72002$kCFNetServiceErrorTimeout@-72007$kCFNetServiceErrorUnknown@-72000$kCFNetServiceFlagIsDefault@4$kCFNetServiceFlagIsDomain@2$kCFNetServiceFlagIsRegistrationDomain@4$kCFNetServiceFlagMoreComing@1$kCFNetServiceFlagNoAutoRename@1$kCFNetServiceFlagRemove@8$kCFNetServiceMonitorTXT@1$kCFNetServicesErrorBadArgument@-72004$kCFNetServicesErrorCancel@-72005$kCFNetServicesErrorCollision@-72001$kCFNetServicesErrorInProgress@-72003$kCFNetServicesErrorInvalid@-72006$kCFNetServicesErrorNotFound@-72002$kCFNetServicesErrorTimeout@-72007$kCFNetServicesErrorUnknown@-72000$kCFSOCKS4ErrorIdConflict@112$kCFSOCKS4ErrorIdentdFailed@111$kCFSOCKS4ErrorRequestFailed@110$kCFSOCKS4ErrorUnknownStatusCode@113$kCFSOCKS5ErrorBadCredentials@122$kCFSOCKS5ErrorBadResponseAddr@121$kCFSOCKS5ErrorBadState@120$kCFSOCKS5ErrorNoAcceptableMethod@124$kCFSOCKS5ErrorUnsupportedNegotiationMethod@123$kCFSOCKSErrorUnknownClientVersion@100$kCFSOCKSErrorUnsupportedServerVersion@101$kCFStreamErrorHTTPAuthenticationBadPassword@-1002$kCFStreamErrorHTTPAuthenticationBadUserName@-1001$kCFStreamErrorHTTPAuthenticationTypeUnsupported@-1000$kCFStreamErrorHTTPBadURL@-3$kCFStreamErrorHTTPParseFailure@-1$kCFStreamErrorHTTPRedirectionLoop@-2$kCFStreamErrorHTTPSProxyFailureUnexpectedResponseToCONNECTMethod@311$kCFStreamErrorSOCKS4IdConflict@93$kCFStreamErrorSOCKS4IdentdFailed@92$kCFStreamErrorSOCKS4RequestFailed@91$kCFStreamErrorSOCKS4SubDomainResponse@2$kCFStreamErrorSOCKS5BadResponseAddr@1$kCFStreamErrorSOCKS5BadState@2$kCFStreamErrorSOCKS5SubDomainMethod@4$kCFStreamErrorSOCKS5SubDomainResponse@5$kCFStreamErrorSOCKS5SubDomainUserPass@3$kCFStreamErrorSOCKSSubDomainNone@0$kCFStreamErrorSOCKSSubDomainVersionCode@1$kCFStreamErrorSOCKSUnknownClientVersion@3$kCFStreamSocketSecurityNone@0$kCFStreamSocketSecuritySSLv2@1$kCFStreamSocketSecuritySSLv23@3$kCFStreamSocketSecuritySSLv3@2$kCFStreamSocketSecurityTLSv1@4$kCFURLErrorBadServerResponse@-1011$kCFURLErrorBadURL@-1000$kCFURLErrorCallIsActive@-1019$kCFURLErrorCancelled@-999$kCFURLErrorCannotCloseFile@-3002$kCFURLErrorCannotConnectToHost@-1004$kCFURLErrorCannotCreateFile@-3000$kCFURLErrorCannotDecodeContentData@-1016$kCFURLErrorCannotDecodeRawData@-1015$kCFURLErrorCannotFindHost@-1003$kCFURLErrorCannotLoadFromNetwork@-2000$kCFURLErrorCannotMoveFile@-3005$kCFURLErrorCannotOpenFile@-3001$kCFURLErrorCannotParseResponse@-1017$kCFURLErrorCannotRemoveFile@-3004$kCFURLErrorCannotWriteToFile@-3003$kCFURLErrorClientCertificateRejected@-1205$kCFURLErrorClientCertificateRequired@-1206$kCFURLErrorDNSLookupFailed@-1006$kCFURLErrorDataLengthExceedsMaximum@-1103$kCFURLErrorDataNotAllowed@-1020$kCFURLErrorDownloadDecodingFailedMidStream@-3006$kCFURLErrorDownloadDecodingFailedToComplete@-3007$kCFURLErrorFileDoesNotExist@-1100$kCFURLErrorFileIsDirectory@-1101$kCFURLErrorHTTPTooManyRedirects@-1007$kCFURLErrorInternationalRoamingOff@-1018$kCFURLErrorNetworkConnectionLost@-1005$kCFURLErrorNoPermissionsToReadFile@-1102$kCFURLErrorNotConnectedToInternet@-1009$kCFURLErrorRedirectToNonExistentLocation@-1010$kCFURLErrorRequestBodyStreamExhausted@-1021$kCFURLErrorResourceUnavailable@-1008$kCFURLErrorSecureConnectionFailed@-1200$kCFURLErrorServerCertificateHasBadDate@-1201$kCFURLErrorServerCertificateHasUnknownRoot@-1203$kCFURLErrorServerCertificateNotYetValid@-1204$kCFURLErrorServerCertificateUntrusted@-1202$kCFURLErrorTimedOut@-1001$kCFURLErrorUnknown@-998$kCFURLErrorUnsupportedURL@-1002$kCFURLErrorUserAuthenticationRequired@-1013$kCFURLErrorUserCancelledAuthentication@-1012$kCFURLErrorZeroByteResource@-1014$kSOCKS5NoAcceptableMethod@255$''' misc.update({}) functions={'CFNetworkExecuteProxyAutoConfigurationURL': (sel32or64(b'^{__CFRunLoopSource=}^{__CFURL=}^{__CFURL=}^?^{_CFStreamClientContext=l^v^?^?^?}', b'^{__CFRunLoopSource=}^{__CFURL=}^{__CFURL=}^?^{_CFStreamClientContext=q^v^?^?^?}'), '', {'arguments': {2: {'callable': {'retval': {'type': b'v'}, 'arguments': {0: {'type': b'^v'}, 1: {'type': b'^{__CFArray=}'}, 2: {'type': b'^{__CFError=}'}}}}}}), 'CFHTTPAuthenticationRequiresOrderedRequests': (b'Z^{_CFHTTPAuthentication=}',), 'CFHTTPAuthenticationCreateFromResponse': (b'^{_CFHTTPAuthentication=}^{__CFAllocator=}^{__CFHTTPMessage=}', '', {'retval': {'already_cfretained': True}}), 'CFNetServiceBrowserGetTypeID': (sel32or64(b'L', b'Q'),), 'CFHostCreateWithName': (b'^{__CFHost=}^{__CFAllocator=}@', '', {'retval': {'already_cfretained': True}}), 'CFHostGetAddressing': (b'^{__CFArray=}^{__CFHost=}o^Z',), 'CFHTTPMessageSetBody': (b'v^{__CFHTTPMessage=}^{__CFData=}',), 'CFHTTPAuthenticationGetTypeID': (sel32or64(b'L', b'Q'),), 'CFNetDiagnosticCreateWithStreams': (b'^{__CFNetDiagnostic=}^{__CFAllocator=}^{__CFReadStream=}^{__CFWriteStream=}', '', {'retval': {'already_cfretained': True}}), 'CFSocketStreamSOCKSGetError': (sel32or64(b'l^{_CFStreamError=ll}', b'i^{_CFStreamError=qi}'), '', {'arguments': {0: {'type_modifier': 'o'}}}), 'CFHostCreateWithAddress': (b'^{__CFHost=}^{__CFAllocator=}^{__CFData=}', '', {'retval': {'already_cfretained': True}}), 'CFNetServiceBrowserSearchForDomains': (sel32or64(b'Z^{__CFNetServiceBrowser=}Z^{_CFStreamError=ll}', b'Z^{__CFNetServiceBrowser=}Z^{_CFStreamError=qi}'), '', {'arguments': {2: {'type_modifier': 'o'}}}), 'CFNetServiceUnscheduleFromRunLoop': (b'v^{__CFNetService=}^{__CFRunLoop=}@',), 'CFNetServiceMonitorStop': (sel32or64(b'v^{__CFNetServiceMonitor=}^{_CFStreamError=ll}', b'v^{__CFNetServiceMonitor=}^{_CFStreamError=qi}'), '', {'arguments': {1: {'type_modifier': 'o'}}}), 'CFNetworkCopySystemProxySettings': (b'^{__CFDictionary}', '', {'retval': {'already_cfretained': True}}), 'CFHostGetReachability': (b'^{__CFData=}^{__CFHost=}o^Z',), 'CFHTTPMessageIsHeaderComplete': (b'Z^{__CFHTTPMessage=}',), 'CFHTTPMessageGetTypeID': (sel32or64(b'L', b'Q'),), 'CFNetServiceMonitorGetTypeID': (sel32or64(b'L', b'Q'),), 'CFNetServiceGetPortNumber': (sel32or64(b'l^{__CFNetService=}', b'i^{__CFNetService=}'),), 'CFHTTPMessageCreateRequest': (b'^{__CFHTTPMessage=}^{__CFAllocator=}@^{__CFURL=}@', '', {'retval': {'already_cfretained': True}}), 'CFNetServiceCreateCopy': (b'^{__CFNetService=}^{__CFAllocator=}^{__CFNetService=}', '', {'retval': {'already_cfretained': True}}), 'CFNetServiceGetName': (b'@^{__CFNetService=}',), 'CFHTTPMessageCopyRequestMethod': (b'@^{__CFHTTPMessage=}', '', {'retval': {'already_cfretained': True}}), 'CFHTTPAuthenticationCopyRealm': (b'@^{_CFHTTPAuthentication=}', '', {'retval': {'already_cfretained': True}}), 'CFNetServiceMonitorInvalidate': (b'v^{__CFNetServiceMonitor=}',), 'CFNetServiceGetProtocolSpecificInformation': (b'@^{__CFNetService=}',), 'CFNetServiceCancel': (b'v^{__CFNetService=}',), 'CFNetServiceMonitorCreate': (b'^{__CFNetServiceMonitor=}^{__CFAllocator=}^{__CFNetService=}^?^{CFNetServiceClientContext=l^v^?^?^?}', '', {'retval': {'already_cfretained': True}, 'arguments': {2: {'callable': {'retval': {'type': b'v'}, 'arguments': {0: {'type': b'^{__CFNetServiceMonitor=}'}, 1: {'type': b'^{__CFNetService=}'}, 2: {'type': b'i'}, 3: {'type': b'^{__CFData=}'}, 4: {'type': b'^{CFStreamError=li}'}, 5: {'type': b'^v'}}}}}}), 'CFWriteStreamCreateWithFTPURL': (b'^{__CFWriteStream=}^{__CFAllocator=}^{__CFURL=}', '', {'retval': {'already_cfretained': True}}), 'CFNetServiceBrowserUnscheduleFromRunLoop': (b'v^{__CFNetServiceBrowser=}^{__CFRunLoop=}@',), 'CFHTTPMessageCopyRequestURL': (b'^{__CFURL=}^{__CFHTTPMessage=}', '', {'retval': {'already_cfretained': True}}), 'CFHTTPMessageCopyVersion': (b'@^{__CFHTTPMessage=}', '', {'retval': {'already_cfretained': True}}), 'CFNetServiceCreate': (sel32or64(b'^{__CFNetService=}^{__CFAllocator=}@@@l', b'^{__CFNetService=}^{__CFAllocator=}@@@i'), '', {'retval': {'already_cfretained': True}}), 'CFNetServiceMonitorUnscheduleFromRunLoop': (b'v^{__CFNetServiceMonitor=}^{__CFRunLoop=}@',), 'CFHostScheduleWithRunLoop': (b'v^{__CFHost=}^{__CFRunLoop=}@',), 'CFNetServiceMonitorStart': (sel32or64(b'Z^{__CFNetServiceMonitor=}i^{_CFStreamError=ll}', b'Z^{__CFNetServiceMonitor=}i^{_CFStreamError=qi}'), '', {'arguments': {2: {'type_modifier': 'o'}}}), 'CFHostGetNames': (b'^{__CFArray=}^{__CFHost=}o^Z',), 'CFNetDiagnosticCopyNetworkStatusPassively': (sel32or64(b'l^{__CFNetDiagnostic=}^^{__CFString}', b'q^{__CFNetDiagnostic=}^^{__CFString}'), '', {'arguments': {1: {'type_modifier': 'o'}}}), 'CFHTTPMessageCopyResponseStatusLine': (b'@^{__CFHTTPMessage=}', '', {'retval': {'already_cfretained': True}}), 'CFNetDiagnosticDiagnoseProblemInteractively': (sel32or64(b'l^{__CFNetDiagnostic=}', b'q^{__CFNetDiagnostic=}'),), 'CFHTTPMessageAddAuthentication': (b'Z^{__CFHTTPMessage=}^{__CFHTTPMessage=}@@@Z',), 'CFNetDiagnosticCreateWithURL': (b'^{__CFNetDiagnostic=}^{__CFAllocator=}^{__CFURL=}', '', {'retval': {'already_cfretained': True}}), 'CFNetServiceGetDomain': (b'@^{__CFNetService=}',), 'CFFTPCreateParsedResourceListing': (sel32or64(b'l^{__CFAllocator=}^vl^^{__CFDictionary}', b'q^{__CFAllocator=}^vq^^{__CFDictionary}'), '', {'arguments': {1: {'c_array_length_in_arg': 2, 'type_modifier': 'n'}, 3: {'type_modifier': 'o'}}}), 'CFNetServiceGetTypeID': (sel32or64(b'L', b'Q'),), 'CFHTTPMessageCreateEmpty': (b'^{__CFHTTPMessage=}^{__CFAllocator=}Z', '', {'retval': {'already_cfretained': True}}), 'CFHTTPMessageAppendBytes': (sel32or64(b'Z^{__CFHTTPMessage=}^vl', b'Z^{__CFHTTPMessage=}^vq'), '', {'arguments': {1: {'c_array_length_in_arg': 2, 'type_modifier': 'n'}}}), 'CFHostCancelInfoResolution': (b'v^{__CFHost=}i',), 'CFNetServiceBrowserSearchForServices': (sel32or64(b'Z^{__CFNetServiceBrowser=}@@^{_CFStreamError=ll}', b'Z^{__CFNetServiceBrowser=}@@^{_CFStreamError=qi}'), '', {'arguments': {3: {'type_modifier': 'o'}}}), 'CFHTTPAuthenticationIsValid': (sel32or64(b'Z^{_CFHTTPAuthentication=}^{_CFStreamError=ll}', b'Z^{_CFHTTPAuthentication=}^{_CFStreamError=qi}'), '', {'arguments': {1: {'type_modifier': 'o'}}}), 'CFHTTPAuthenticationAppliesToRequest': (b'Z^{_CFHTTPAuthentication=}^{__CFHTTPMessage=}',), 'CFNetServiceBrowserInvalidate': (b'v^{__CFNetServiceBrowser=}',), 'CFNetServiceGetAddressing': (b'^{__CFArray=}^{__CFNetService=}',), 'CFHTTPMessageSetHeaderFieldValue': (b'v^{__CFHTTPMessage=}@@',), 'CFNetServiceBrowserStopSearch': (sel32or64(b'v^{__CFNetServiceBrowser=}^{_CFStreamError=ll}', b'v^{__CFNetServiceBrowser=}^{_CFStreamError=qi}'), '', {'arguments': {1: {'type_modifier': 'o'}}}), 'CFHTTPMessageApplyCredentials': (sel32or64(b'Z^{__CFHTTPMessage=}^{_CFHTTPAuthentication=}@@^{_CFStreamError=ll}', b'Z^{__CFHTTPMessage=}^{_CFHTTPAuthentication=}@@^{_CFStreamError=qi}'), '', {'arguments': {4: {'type_modifier': 'o'}}}), 'CFHTTPReadStreamSetRedirectsAutomatically': (b'v^{__CFReadStream=}Z',), 'CFNetServiceRegisterWithOptions': (sel32or64(b'Z^{__CFNetService=}L^{_CFStreamError=ll}', b'Z^{__CFNetService=}Q^{_CFStreamError=qi}'), '', {'arguments': {2: {'type_modifier': 'o'}}}), 'CFHTTPAuthenticationCopyMethod': (b'@^{_CFHTTPAuthentication=}', '', {'retval': {'already_cfretained': True}}), 'CFNetServiceBrowserCreate': (b'^{__CFNetServiceBrowser=}^{__CFAllocator=}^?^{CFNetServiceClientContext=l^v^?^?^?}', '', {'retval': {'already_cfretained': True}, 'arguments': {1: {'callable': {'retval': {'type': b'v'}, 'arguments': {0: {'type': b'^{__CFNetServiceBrowser=}'}, 1: {'type': b'L'}, 2: {'type': b'@'}, 3: {'type': b'^{CFStreamError=li}'}, 4: {'type': b'^v'}}}}}}), 'CFNetServiceGetTargetHost': (b'@^{__CFNetService=}',), 'CFNetworkCopyProxiesForAutoConfigurationScript': (b'^{__CFArray=}@^{__CFURL=}^^{__CFError}', '', {'retval': {'already_cfretained': True}, 'arguments': {2: {'already_cfretained': True, 'type_modifier': 'o', 'null_accepted': True}}}), 'CFNetServiceCreateDictionaryWithTXTData': (b'^{__CFDictionary=}^{__CFAllocator=}^{__CFData=}', '', {'retval': {'already_cfretained': True}}), 'CFNetServiceRegister': (sel32or64(b'Z^{__CFNetService=}^{_CFStreamError=ll}', b'Z^{__CFNetService=}^{_CFStreamError=qi}'), '', {'arguments': {1: {'type_modifier': 'o'}}}), 'CFHTTPMessageCopySerializedMessage': (b'^{__CFData=}^{__CFHTTPMessage=}', '', {'retval': {'already_cfretained': True}}), 'CFHostCreateCopy': (b'^{__CFHost=}^{__CFAllocator=}^{__CFHost=}', '', {'retval': {'already_cfretained': True}}), 'CFHTTPAuthenticationRequiresAccountDomain': (b'Z^{_CFHTTPAuthentication=}',), 'CFNetServiceSetTXTData': (b'Z^{__CFNetService=}^{__CFData=}',), 'CFNetworkCopyProxiesForURL': (b'^{__CFArray=}^{__CFURL=}^{__CFDictionary=}', '', {'retval': {'already_cfretained': True}}), 'CFReadStreamCreateForStreamedHTTPRequest': (b'^{__CFReadStream=}^{__CFAllocator=}^{__CFHTTPMessage=}^{__CFReadStream=}', '', {'retval': {'already_cfretained': True}}), 'CFReadStreamCreateForHTTPRequest': (b'^{__CFReadStream=}^{__CFAllocator=}^{__CFHTTPMessage=}', '', {'retval': {'already_cfretained': True}}), 'CFHTTPMessageCreateCopy': (b'^{__CFHTTPMessage=}^{__CFAllocator=}^{__CFHTTPMessage=}', '', {'retval': {'already_cfretained': True}}), 'CFNetServiceGetType': (b'@^{__CFNetService=}',), 'CFNetServiceScheduleWithRunLoop': (b'v^{__CFNetService=}^{__CFRunLoop=}@',), 'CFHTTPMessageCopyHeaderFieldValue': (b'@^{__CFHTTPMessage=}@', '', {'retval': {'already_cfretained': True}}), 'CFNetServiceGetTXTData': (b'^{__CFData=}^{__CFNetService=}',), 'CFHostStartInfoResolution': (sel32or64(b'Z^{__CFHost=}i^{_CFStreamError=ll}', b'Z^{__CFHost=}i^{_CFStreamError=qi}'), '', {'arguments': {2: {'type_modifier': 'o'}}}), 'CFHTTPAuthenticationRequiresUserNameAndPassword': (b'Z^{_CFHTTPAuthentication=}',), 'CFNetDiagnosticSetName': (b'v^{__CFNetDiagnostic=}@',), 'CFNetServiceCreateTXTDataWithDictionary': (b'^{__CFData=}^{__CFAllocator=}^{__CFDictionary=}', '', {'retval': {'already_cfretained': True}}), 'CFReadStreamCreateWithFTPURL': (b'^{__CFReadStream=}^{__CFAllocator=}^{__CFURL=}', '', {'retval': {'already_cfretained': True}}), 'CFNetServiceSetClient': (b'Z^{__CFNetService=}^?^{CFNetServiceClientContext=l^v^?^?^?}', '', {'arguments': {1: {'callable': {'retval': {'type': b'v'}, 'arguments': {0: {'type': b'^{__CFNetService=}'}, 1: {'type': b'^{CFStreamError=li}'}, 2: {'type': b'^v'}}}}}}), 'CFNetServiceMonitorScheduleWithRunLoop': (b'v^{__CFNetServiceMonitor=}^{__CFRunLoop=}@',), 'CFHostUnscheduleFromRunLoop': (b'v^{__CFHost=}^{__CFRunLoop=}@',), 'CFHTTPMessageApplyCredentialDictionary': (sel32or64(b'Z^{__CFHTTPMessage=}^{_CFHTTPAuthentication=}^{__CFDictionary=}^{_CFStreamError=ll}', b'Z^{__CFHTTPMessage=}^{_CFHTTPAuthentication=}^{__CFDictionary=}^{_CFStreamError=qi}'), '', {'arguments': {3: {'type_modifier': 'o'}}}), 'CFHTTPMessageIsRequest': (b'Z^{__CFHTTPMessage=}',), 'CFNetServiceResolve': (sel32or64(b'Z^{__CFNetService=}^{_CFStreamError=ll}', b'Z^{__CFNetService=}^{_CFStreamError=qi}'), '', {'arguments': {1: {'type_modifier': 'o'}}}), 'CFHTTPMessageCopyBody': (b'^{__CFData=}^{__CFHTTPMessage=}', '', {'retval': {'already_cfretained': True}}), 'CFNetServiceBrowserScheduleWithRunLoop': (b'v^{__CFNetServiceBrowser=}^{__CFRunLoop=}@',), 'CFHTTPMessageCreateResponse': (sel32or64(b'^{__CFHTTPMessage=}^{__CFAllocator=}l@@', b'^{__CFHTTPMessage=}^{__CFAllocator=}q@@'), '', {'retval': {'already_cfretained': True}}), 'CFHostGetTypeID': (sel32or64(b'L', b'Q'),), 'CFHTTPMessageCopyAllHeaderFields': (b'^{__CFDictionary=}^{__CFHTTPMessage=}', '', {'retval': {'already_cfretained': True}}), 'CFHTTPMessageGetResponseStatusCode': (sel32or64(b'l^{__CFHTTPMessage=}', b'q^{__CFHTTPMessage=}'),), 'CFHTTPAuthenticationCopyDomains': (b'^{__CFArray=}^{_CFHTTPAuthentication=}', '', {'retval': {'already_cfretained': True}}), 'CFNetServiceSetProtocolSpecificInformation': (b'v^{__CFNetService=}@',), 'CFSocketStreamSOCKSGetErrorSubdomain': (sel32or64(b'l^{_CFStreamError=ll}', b'i^{_CFStreamError=qi}'), '', {'arguments': {0: {'type_modifier': 'o'}}}), 'CFStreamCreatePairWithSocketToCFHost': (sel32or64(b'v^{__CFAllocator=}^{__CFHost=}l^^{__CFReadStream}^^{__CFWriteStream}', b'v^{__CFAllocator=}^{__CFHost=}i^^{__CFReadStream}^^{__CFWriteStream}'), '', {'arguments': {3: {'already_cfretained': True, 'type_modifier': 'o'}, 4: {'already_cfretained': True, 'type_modifier': 'o'}}}), 'CFStreamCreatePairWithSocketToNetService': (b'v^{__CFAllocator=}^{__CFNetService=}^^{__CFReadStream}^^{__CFWriteStream}', '', {'arguments': {2: {'already_cfretained': True, 'type_modifier': 'o'}, 3: {'already_cfretained': True, 'type_modifier': 'o'}}}), 'CFNetServiceResolveWithTimeout': (sel32or64(b'Z^{__CFNetService=}d^{_CFStreamError=ll}', b'Z^{__CFNetService=}d^{_CFStreamError=qi}'), '', {'arguments': {2: {'type_modifier': 'o'}}}), 'CFHostSetClient': (b'Z^{__CFHost=}^?^{CFHostClientContext=l^v^?^?^?}', '', {'arguments': {1: {'callable': {'retval': {'type': b'v'}, 'arguments': {0: {'type': b'^{__CFHost=}'}, 1: {'type': b'i'}, 2: {'type': b'^{CFStreamError=li}'}, 3: {'type': b'^v'}}}}}})} cftypes=[('CFHTTPMessageRef', b'^{__CFHTTPMessage=}', 'CFHTTPMessageGetTypeID', None), ('CFHostRef', b'^{__CFHost=}', 'CFHostGetTypeID', None), ('CFNetDiagnosticRef', b'^{__CFNetDiagnostic=}', 'CFNetDiagnosticGetTypeID', None), ('CFNetServiceBrowserRef', b'^{__CFNetServiceBrowser=}', 'CFNetServiceBrowserGetTypeID', None), ('CFNetServiceMonitorRef', b'^{__CFNetServiceMonitor=}', 'CFNetServiceMonitorGetTypeID', None), ('CFNetServiceRef', b'^{__CFNetService=}', 'CFNetServiceGetTypeID', None), ('CFHTTPAuthenticationRef', b'^{_CFHTTPAuthentication}', 'CFHTTPAuthenticationGetTypeID', None)] expressions = {} # END OF FILE
# Last update: Thu Dec 31 17:12:05 2015 import objc, sys if sys.maxsize > 2 ** 32: def sel32or64(a, b): return b else: def sel32or64(a, b): return a if sys.byteorder == 'little': def littleOrBig(a, b): return a else: def littleOrBig(a, b): return b misc = { } misc.update({'SCNVector4': objc.createStructType('SCNVector4', sel32or64(b'{SCNVector4=ffff}', b'{SCNVector4=dddd}'), ['x', 'y', 'z', 'w']), 'SCNVector3': objc.createStructType('SCNVector3', sel32or64(b'{SCNVector3=fff}', b'{SCNVector3=ddd}'), ['x', 'y', 'z'])}) constants = '''$SCNConsistencyElementIDErrorKey$SCNConsistencyElementTypeErrorKey$SCNConsistencyLineNumberErrorKey$SCNDetailedErrorsKey$SCNErrorDomain$SCNGeometrySourceSemanticBoneIndices$SCNGeometrySourceSemanticBoneWeights$SCNGeometrySourceSemanticColor$SCNGeometrySourceSemanticEdgeCrease$SCNGeometrySourceSemanticNormal$SCNGeometrySourceSemanticTexcoord$SCNGeometrySourceSemanticVertex$SCNGeometrySourceSemanticVertexCrease$SCNHitTestBackFaceCullingKey$SCNHitTestBoundingBoxOnlyKey$SCNHitTestClipToZRangeKey$SCNHitTestFirstFoundOnlyKey$SCNHitTestIgnoreChildNodesKey$SCNHitTestIgnoreHiddenNodesKey$SCNHitTestRootNodeKey$SCNHitTestSortResultsKey$SCNLightAttenuationEndKey$SCNLightAttenuationFalloffExponentKey$SCNLightAttenuationStartKey$SCNLightShadowFarClippingKey$SCNLightShadowNearClippingKey$SCNLightSpotInnerAngleKey$SCNLightSpotOuterAngleKey$SCNLightTypeAmbient$SCNLightTypeDirectional$SCNLightTypeOmni$SCNLightTypeSpot$SCNLightingModelBlinn$SCNLightingModelConstant$SCNLightingModelLambert$SCNLightingModelPhong$SCNModelTransform$SCNModelViewProjectionTransform$SCNModelViewTransform$SCNNormalTransform$SCNParticlePropertyAngle$SCNParticlePropertyAngularVelocity$SCNParticlePropertyBounce$SCNParticlePropertyCharge$SCNParticlePropertyColor$SCNParticlePropertyContactNormal$SCNParticlePropertyContactPoint$SCNParticlePropertyFrame$SCNParticlePropertyFrameRate$SCNParticlePropertyFriction$SCNParticlePropertyLife$SCNParticlePropertyOpacity$SCNParticlePropertyPosition$SCNParticlePropertyRotationAxis$SCNParticlePropertySize$SCNParticlePropertyVelocity$SCNPhysicsShapeKeepAsCompoundKey$SCNPhysicsShapeScaleKey$SCNPhysicsShapeTypeBoundingBox$SCNPhysicsShapeTypeConcavePolyhedron$SCNPhysicsShapeTypeConvexHull$SCNPhysicsShapeTypeKey$SCNPhysicsTestBackfaceCullingKey$SCNPhysicsTestCollisionBitMaskKey$SCNPhysicsTestSearchModeAll$SCNPhysicsTestSearchModeAny$SCNPhysicsTestSearchModeClosest$SCNPhysicsTestSearchModeKey$SCNPreferLowPowerDeviceKey$SCNPreferredDeviceKey$SCNPreferredRenderingAPIKey$SCNProgramMappingChannelKey$SCNProjectionTransform$SCNSceneEndTimeAttributeKey$SCNSceneExportDestinationURL$SCNSceneFrameRateAttributeKey$SCNSceneSourceAnimationImportPolicyDoNotPlay$SCNSceneSourceAnimationImportPolicyKey$SCNSceneSourceAnimationImportPolicyPlay$SCNSceneSourceAnimationImportPolicyPlayRepeatedly$SCNSceneSourceAnimationImportPolicyPlayUsingSceneTimeBase$SCNSceneSourceAssetAuthorKey$SCNSceneSourceAssetAuthoringToolKey$SCNSceneSourceAssetContributorsKey$SCNSceneSourceAssetCreatedDateKey$SCNSceneSourceAssetDirectoryURLsKey$SCNSceneSourceAssetModifiedDateKey$SCNSceneSourceAssetUnitKey$SCNSceneSourceAssetUnitMeterKey$SCNSceneSourceAssetUnitNameKey$SCNSceneSourceAssetUpAxisKey$SCNSceneSourceCheckConsistencyKey$SCNSceneSourceConvertToYUpKey$SCNSceneSourceConvertUnitsToMetersKey$SCNSceneSourceCreateNormalsIfAbsentKey$SCNSceneSourceFlattenSceneKey$SCNSceneSourceOverrideAssetURLsKey$SCNSceneSourceStrictConformanceKey$SCNSceneSourceUseSafeModeKey$SCNSceneStartTimeAttributeKey$SCNSceneUpAxisAttributeKey$SCNShaderModifierEntryPointFragment$SCNShaderModifierEntryPointGeometry$SCNShaderModifierEntryPointLightingModel$SCNShaderModifierEntryPointSurface$SCNViewTransform$''' constants = constants + '$SCNMatrix4Identity@%s$'%(sel32or64('{CATransform3D=ffffffffffffffff}', '{CATransform3D=dddddddddddddddd}'),) constants = constants + '$SCNVector4Zero@%s$'%(sel32or64('{SCNVector4=ffff}', '{SCNVector4=dddd}'),) constants = constants + '$SCNVector3Zero@%s$'%(sel32or64('{SCNVector3=fff}', '{SCNVector3=ddd}'),) enums = '''$SCNActionTimingModeEaseIn@1$SCNActionTimingModeEaseInEaseOut@3$SCNActionTimingModeEaseOut@2$SCNActionTimingModeLinear@0$SCNAntialiasingModeMultisampling16X@4$SCNAntialiasingModeMultisampling2X@1$SCNAntialiasingModeMultisampling4X@2$SCNAntialiasingModeMultisampling8X@3$SCNAntialiasingModeNone@0$SCNBillboardAxisAll@7$SCNBillboardAxisX@1$SCNBillboardAxisY@2$SCNBillboardAxisZ@4$SCNBlendModeAdd@1$SCNBlendModeAlpha@0$SCNBlendModeMultiply@3$SCNBlendModeReplace@5$SCNBlendModeScreen@4$SCNBlendModeSubtract@2$SCNBufferFrequencyPerFrame@0$SCNBufferFrequencyPerNode@1$SCNBufferFrequencyPerShadable@2$SCNChamferModeBack@2$SCNChamferModeBoth@0$SCNChamferModeFront@1$SCNClamp@1$SCNClampToBorder@3$SCNConsistencyInvalidArgumentError@1002$SCNConsistencyInvalidCountError@1001$SCNConsistencyInvalidURIError@1000$SCNConsistencyMissingAttributeError@1004$SCNConsistencyMissingElementError@1003$SCNConsistencyXMLSchemaValidationError@1005$SCNCullBack@0$SCNCullFront@1$SCNDebugOptionNone@0$SCNDebugOptionShowBoundingBoxes@2$SCNDebugOptionShowLightExtents@8$SCNDebugOptionShowLightInfluences@4$SCNDebugOptionShowPhysicsFields@16$SCNDebugOptionShowPhysicsShapes@1$SCNDebugOptionShowWireframe@32$SCNFilterModeLinear@2$SCNFilterModeNearest@1$SCNFilterModeNone@0$SCNGeometryPrimitiveTypeLine@2$SCNGeometryPrimitiveTypePoint@3$SCNGeometryPrimitiveTypeTriangleStrip@1$SCNGeometryPrimitiveTypeTriangles@0$SCNLinearFiltering@2$SCNMirror@4$SCNMorpherCalculationModeAdditive@1$SCNMorpherCalculationModeNormalized@0$SCNNearestFiltering@1$SCNNoFiltering@0$SCNParticleBirthDirectionConstant@0$SCNParticleBirthDirectionRandom@2$SCNParticleBirthDirectionSurfaceNormal@1$SCNParticleBirthLocationSurface@0$SCNParticleBirthLocationVertex@2$SCNParticleBirthLocationVolume@1$SCNParticleBlendModeAdditive@0$SCNParticleBlendModeAlpha@4$SCNParticleBlendModeMultiply@2$SCNParticleBlendModeReplace@5$SCNParticleBlendModeScreen@3$SCNParticleBlendModeSubtract@1$SCNParticleEventBirth@0$SCNParticleEventCollision@2$SCNParticleEventDeath@1$SCNParticleImageSequenceAnimationModeAutoReverse@2$SCNParticleImageSequenceAnimationModeClamp@1$SCNParticleImageSequenceAnimationModeRepeat@0$SCNParticleInputModeOverDistance@1$SCNParticleInputModeOverLife@0$SCNParticleInputModeOverOtherProperty@2$SCNParticleModifierStagePostCollision@3$SCNParticleModifierStagePostDynamics@1$SCNParticleModifierStagePreCollision@2$SCNParticleModifierStagePreDynamics@0$SCNParticleOrientationModeBillboardScreenAligned@0$SCNParticleOrientationModeBillboardViewAligned@1$SCNParticleOrientationModeBillboardYAligned@3$SCNParticleOrientationModeFree@2$SCNParticleSortingModeDistance@2$SCNParticleSortingModeNone@0$SCNParticleSortingModeOldestFirst@3$SCNParticleSortingModeProjectedDepth@1$SCNParticleSortingModeYoungestFirst@4$SCNPhysicsBodyTypeDynamic@1$SCNPhysicsBodyTypeKinematic@2$SCNPhysicsBodyTypeStatic@0$SCNPhysicsCollisionCategoryDefault@1$SCNPhysicsCollisionCategoryStatic@2$SCNPhysicsFieldScopeInsideExtent@0$SCNPhysicsFieldScopeOutsideExtent@1$SCNProgramCompilationError@1$SCNReferenceLoadingPolicyImmediate@0$SCNReferenceLoadingPolicyOnDemand@1$SCNRenderingAPIMetal@0$SCNRenderingAPIOpenGLCore32@2$SCNRenderingAPIOpenGLCore41@3$SCNRenderingAPIOpenGLLegacy@1$SCNRepeat@2$SCNSceneSourceStatusComplete@16$SCNSceneSourceStatusError@-1$SCNSceneSourceStatusParsing@4$SCNSceneSourceStatusProcessing@12$SCNSceneSourceStatusValidating@8$SCNShadowModeDeferred@1$SCNShadowModeForward@0$SCNShadowModeModulated@2$SCNTransparencyModeAOne@0$SCNTransparencyModeRGBZero@1$SCNWrapModeClamp@1$SCNWrapModeClampToBorder@3$SCNWrapModeMirror@4$SCNWrapModeRepeat@2$''' misc.update({'SCNPhysicsCollisionCategoryAll': sel32or64(4294967295, 18446744073709551615)}) misc.update({}) functions={'SCNMatrix4IsIdentity': (sel32or64(b'B{CATransform3D=ffffffffffffffff}', b'B{CATransform3D=dddddddddddddddd}'),), 'SCNVector4Make': (sel32or64(b'{SCNVector4=ffff}ffff', b'{SCNVector4=dddd}dddd'),), 'SCNMatrix4EqualToMatrix4': (sel32or64(b'B{CATransform3D=ffffffffffffffff}{CATransform3D=ffffffffffffffff}', b'B{CATransform3D=dddddddddddddddd}{CATransform3D=dddddddddddddddd}'),), 'SCNMatrix4MakeTranslation': (sel32or64(b'{CATransform3D=ffffffffffffffff}fff', b'{CATransform3D=dddddddddddddddd}ddd'),), 'SCNMatrix4FromMat4': (sel32or64(b'{CATransform3D=ffffffffffffffff}{_matrix_float4x4=[4$]}', b'{CATransform3D=dddddddddddddddd}{_matrix_float4x4=[4$]}'),), 'SCNMatrix4Scale': (sel32or64(b'{CATransform3D=ffffffffffffffff}{CATransform3D=ffffffffffffffff}fff', b'{CATransform3D=dddddddddddddddd}{CATransform3D=dddddddddddddddd}ddd'),), 'SCNMatrix4MakeRotation': (sel32or64(b'{CATransform3D=ffffffffffffffff}ffff', b'{CATransform3D=dddddddddddddddd}dddd'),), 'SCNVector4FromGLKVector4': (sel32or64(b'{SCNVector4=ffff}(_GLKVector4={=ffff}{=ffff}{=ffff}[4f])', b'{SCNVector4=dddd}(_GLKVector4={=ffff}{=ffff}{=ffff}[4f])'),), 'SCNExportJavaScriptModule': (b'v@',), 'SCNVector4ToFloat4': (sel32or64(b'${SCNVector4=ffff}', b'${SCNVector4=dddd}'),), 'SCNVector3EqualToVector3': (sel32or64(b'B{SCNVector3=fff}{SCNVector3=fff}', b'B{SCNVector3=ddd}{SCNVector3=ddd}'),), 'SCNMatrix4ToGLKMatrix4': (sel32or64(b'(_GLKMatrix4={=ffffffffffffffff}[16f]){CATransform3D=ffffffffffffffff}', b'(_GLKMatrix4={=ffffffffffffffff}[16f]){CATransform3D=dddddddddddddddd}'),), 'SCNMatrix4ToMat4': (sel32or64(b'{_matrix_float4x4=[4$]}{CATransform3D=ffffffffffffffff}', b'{_matrix_float4x4=[4$]}{CATransform3D=dddddddddddddddd}'),), 'SCNVector4EqualToVector4': (sel32or64(b'B{SCNVector4=ffff}{SCNVector4=ffff}', b'B{SCNVector4=dddd}{SCNVector4=dddd}'),), 'SCNMatrix4MakeScale': (sel32or64(b'{CATransform3D=ffffffffffffffff}fff', b'{CATransform3D=dddddddddddddddd}ddd'),), 'SCNMatrix4FromGLKMatrix4': (sel32or64(b'{CATransform3D=ffffffffffffffff}(_GLKMatrix4={=ffffffffffffffff}[16f])', b'{CATransform3D=dddddddddddddddd}(_GLKMatrix4={=ffffffffffffffff}[16f])'),), 'SCNMatrix4Invert': (sel32or64(b'{CATransform3D=ffffffffffffffff}{CATransform3D=ffffffffffffffff}', b'{CATransform3D=dddddddddddddddd}{CATransform3D=dddddddddddddddd}'),), 'SCNVector4ToGLKVector4': (sel32or64(b'(_GLKVector4={=ffff}{=ffff}{=ffff}[4f]){SCNVector4=ffff}', b'(_GLKVector4={=ffff}{=ffff}{=ffff}[4f]){SCNVector4=dddd}'),), 'SCNMatrix4Rotate': (sel32or64(b'{CATransform3D=ffffffffffffffff}{CATransform3D=ffffffffffffffff}ffff', b'{CATransform3D=dddddddddddddddd}{CATransform3D=dddddddddddddddd}dddd'),), 'SCNVector3ToGLKVector3': (sel32or64(b'(_GLKVector3={=fff}{=fff}{=fff}[3f]){SCNVector3=fff}', b'(_GLKVector3={=fff}{=fff}{=fff}[3f]){SCNVector3=ddd}'),), 'SCNVector3Make': (sel32or64(b'{SCNVector3=fff}fff', b'{SCNVector3=ddd}ddd'),), 'SCNVector4FromFloat4': (sel32or64(b'{SCNVector4=ffff}$', b'{SCNVector4=dddd}$'),), 'SCNVector3FromGLKVector3': (sel32or64(b'{SCNVector3=fff}(_GLKVector3={=fff}{=fff}{=fff}[3f])', b'{SCNVector3=ddd}(_GLKVector3={=fff}{=fff}{=fff}[3f])'),), 'SCNMatrix4Mult': (sel32or64(b'{CATransform3D=ffffffffffffffff}{CATransform3D=ffffffffffffffff}{CATransform3D=ffffffffffffffff}', b'{CATransform3D=dddddddddddddddd}{CATransform3D=dddddddddddddddd}{CATransform3D=dddddddddddddddd}'),), 'SCNMatrix4Translate': (sel32or64(b'{CATransform3D=ffffffffffffffff}{CATransform3D=ffffffffffffffff}fff', b'{CATransform3D=dddddddddddddddd}{CATransform3D=dddddddddddddddd}ddd'),)} aliases = {'SCNClampToBorder': 'SCNWrapModeClampToBorder', 'SCNNearestFiltering': 'SCNFilterModeNearest', 'SCNRepeat': 'SCNWrapModeRepeat', 'SCNClamp': 'SCNWrapModeClamp', 'SCNLinearFiltering': 'SCNFilterModeLinear', 'SCNNoFiltering': 'SCNFilterModeNone', 'SCNQuaternion': 'SCNVector4', 'SCNMatrix4': 'CATransform3D', 'SCNMirror': 'SCNWrapModeMirror', 'SCN_EXTERN': 'FOUNDATION_EXTERN'} r = objc.registerMetaDataForSelector objc._updatingMetadata(True) try: r(b'CAAnimation', b'setUsesSceneTimeBase:', {'arguments': {2: {'type': b'Z'}}}) r(b'CAAnimation', b'usesSceneTimeBase', {'retval': {'type': b'Z'}}) r(b'NSObject', b'actionForKey:', {'required': True, 'retval': {'type': b'@'}, 'arguments': {2: {'type': b'@'}}})
def littleOrBig(a, b): return a else: def littleOrBig(a, b): return b misc = {} misc.update( { "CFHostClientContext": objc.createStructType( "CFHostClientContext", sel32or64(b"{CFHostClientContext=l^v^?^?^?}", b"{CFHostClientContext=q^v^?^?^?}"), [] ), "CFNetServiceClientContext": objc.createStructType( "CFNetServiceClientContext", sel32or64(b"{CFNetServiceClientContext=l^v^?^?^?}", b"{CFNetServiceClientContext=q^v^?^?^?}"), [], ), } ) constants = """$kCFDNSServiceFailureKey@^{__CFString=}$kCFErrorDomainCFNetwork@^{__CFString=}$kCFErrorDomainWinSock@^{__CFString=}$kCFFTPResourceGroup@^{__CFString=}$kCFFTPResourceLink@^{__CFString=}$kCFFTPResourceModDate@^{__CFString=}$kCFFTPResourceMode@^{__CFString=}$kCFFTPResourceName@^{__CFString=}$kCFFTPResourceOwner@^{__CFString=}$kCFFTPResourceSize@^{__CFString=}$kCFFTPResourceType@^{__CFString=}$kCFFTPStatusCodeKey@^{__CFString=}$kCFGetAddrInfoFailureKey@^{__CFString=}$kCFHTTPAuthenticationAccountDomain@^{__CFString=}$kCFHTTPAuthenticationPassword@^{__CFString=}$kCFHTTPAuthenticationSchemeBasic@^{__CFString=}$kCFHTTPAuthenticationSchemeDigest@^{__CFString=}$kCFHTTPAuthenticationSchemeKerberos@^{__CFString=}$kCFHTTPAuthenticationSchemeNTLM@^{__CFString=}$kCFHTTPAuthenticationSchemeNegotiate@^{__CFString=}$kCFHTTPAuthenticationSchemeNegotiate2@^{__CFString=}$kCFHTTPAuthenticationSchemeXMobileMeAuthToken@^{__CFString=}$kCFHTTPAuthenticationUsername@^{__CFString=}$kCFHTTPVersion1_0@^{__CFString=}$kCFHTTPVersion1_1@^{__CFString=}$kCFNetworkProxiesExceptionsList@^{__CFString=}$kCFNetworkProxiesExcludeSimpleHostnames@^{__CFString=}$kCFNetworkProxiesFTPEnable@^{__CFString=}$kCFNetworkProxiesFTPPassive@^{__CFString=}$kCFNetworkProxiesFTPPort@^{__CFString=}$kCFNetworkProxiesFTPProxy@^{__CFString=}$kCFNetworkProxiesGopherEnable@^{__CFString=}$kCFNetworkProxiesGopherPort@^{__CFString=}$kCFNetworkProxiesGopherProxy@^{__CFString=}$kCFNetworkProxiesHTTPEnable@^{__CFString=}$kCFNetworkProxiesHTTPPort@^{__CFString=}$kCFNetworkProxiesHTTPProxy@^{__CFString=}$kCFNetworkProxiesHTTPSEnable@^{__CFString=}$kCFNetworkProxiesHTTPSPort@^{__CFString=}$kCFNetworkProxiesHTTPSProxy@^{__CFString=}$kCFNetworkProxiesProxyAutoConfigEnable@^{__CFString=}$kCFNetworkProxiesProxyAutoConfigJavaScript@^{__CFString=}$kCFNetworkProxiesProxyAutoConfigURLString@^{__CFString=}$kCFNetworkProxiesProxyAutoDiscoveryEnable@^{__CFString=}$kCFNetworkProxiesRTSPEnable@^{__CFString=}$kCFNetworkProxiesRTSPPort@^{__CFString=}$kCFNetworkProxiesRTSPProxy@^{__CFString=}$kCFNetworkProxiesSOCKSEnable@^{__CFString=}$kCFNetworkProxiesSOCKSPort@^{__CFString=}$kCFNetworkProxiesSOCKSProxy@^{__CFString=}$kCFProxyAutoConfigurationHTTPResponseKey@^{__CFString=}$kCFProxyAutoConfigurationJavaScriptKey@^{__CFString=}$kCFProxyAutoConfigurationURLKey@^{__CFString=}$kCFProxyHostNameKey@^{__CFString=}$kCFProxyPasswordKey@^{__CFString=}$kCFProxyPortNumberKey@^{__CFString=}$kCFProxyTypeAutoConfigurationJavaScript@^{__CFString=}$kCFProxyTypeAutoConfigurationURL@^{__CFString=}$kCFProxyTypeFTP@^{__CFString=}$kCFProxyTypeHTTP@^{__CFString=}$kCFProxyTypeHTTPS@^{__CFString=}$kCFProxyTypeKey@^{__CFString=}$kCFProxyTypeNone@^{__CFString=}$kCFProxyTypeSOCKS@^{__CFString=}$kCFProxyUsernameKey@^{__CFString=}$kCFSOCKSNegotiationMethodKey@^{__CFString=}$kCFSOCKSStatusCodeKey@^{__CFString=}$kCFSOCKSVersionKey@^{__CFString=}$kCFStreamErrorDomainSOCKS@i$kCFStreamErrorDomainSSL@i$kCFStreamNetworkServiceType@^{__CFString=}$kCFStreamNetworkServiceTypeBackground@^{__CFString=}$kCFStreamNetworkServiceTypeVideo@^{__CFString=}$kCFStreamNetworkServiceTypeVoIP@^{__CFString=}$kCFStreamNetworkServiceTypeVoice@^{__CFString=}$kCFStreamPropertyConnectionIsCellular@^{__CFString=}$kCFStreamPropertyFTPAttemptPersistentConnection@^{__CFString=}$kCFStreamPropertyFTPFetchResourceInfo@^{__CFString=}$kCFStreamPropertyFTPFileTransferOffset@^{__CFString=}$kCFStreamPropertyFTPPassword@^{__CFString=}$kCFStreamPropertyFTPProxy@^{__CFString=}$kCFStreamPropertyFTPProxyHost@^{__CFString=}$kCFStreamPropertyFTPProxyPassword@^{__CFString=}$kCFStreamPropertyFTPProxyPort@^{__CFString=}$kCFStreamPropertyFTPProxyUser@^{__CFString=}$kCFStreamPropertyFTPResourceSize@^{__CFString=}$kCFStreamPropertyFTPUsePassiveMode@^{__CFString=}$kCFStreamPropertyFTPUserName@^{__CFString=}$kCFStreamPropertyHTTPAttemptPersistentConnection@^{__CFString=}$kCFStreamPropertyHTTPFinalRequest@^{__CFString=}$kCFStreamPropertyHTTPFinalURL@^{__CFString=}$kCFStreamPropertyHTTPProxy@^{__CFString=}$kCFStreamPropertyHTTPProxyHost@^{__CFString=}$kCFStreamPropertyHTTPProxyPort@^{__CFString=}$kCFStreamPropertyHTTPRequestBytesWrittenCount@^{__CFString=}$kCFStreamPropertyHTTPResponseHeader@^{__CFString=}$kCFStreamPropertyHTTPSProxyHost@^{__CFString=}$kCFStreamPropertyHTTPSProxyPort@^{__CFString=}$kCFStreamPropertyHTTPShouldAutoredirect@^{__CFString=}$kCFStreamPropertyNoCellular@^{__CFString=}$kCFStreamPropertyProxyLocalBypass@^{__CFString=}$kCFStreamPropertySOCKSPassword@^{__CFString=}$kCFStreamPropertySOCKSProxy@^{__CFString=}$kCFStreamPropertySOCKSProxyHost@^{__CFString=}$kCFStreamPropertySOCKSProxyPort@^{__CFString=}$kCFStreamPropertySOCKSUser@^{__CFString=}$kCFStreamPropertySOCKSVersion@^{__CFString=}$kCFStreamPropertySSLContext@^{__CFString=}$kCFStreamPropertySSLPeerCertificates@^{__CFString=}$kCFStreamPropertySSLPeerTrust@^{__CFString=}$kCFStreamPropertySSLSettings@^{__CFString=}$kCFStreamPropertyShouldCloseNativeSocket@^{__CFString=}$kCFStreamPropertySocketRemoteHost@^{__CFString=}$kCFStreamPropertySocketRemoteNetService@^{__CFString=}$kCFStreamPropertySocketSecurityLevel@^{__CFString=}$kCFStreamSSLAllowsAnyRoot@^{__CFString=}$kCFStreamSSLAllowsExpiredCertificates@^{__CFString=}$kCFStreamSSLAllowsExpiredRoots@^{__CFString=}$kCFStreamSSLCertificates@^{__CFString=}$kCFStreamSSLIsServer@^{__CFString=}$kCFStreamSSLLevel@^{__CFString=}$kCFStreamSSLPeerName@^{__CFString=}$kCFStreamSSLValidatesCertificateChain@^{__CFString=}$kCFStreamSocketSOCKSVersion4@^{__CFString=}$kCFStreamSocketSOCKSVersion5@^{__CFString=}$kCFStreamSocketSecurityLevelNegotiatedSSL@^{__CFString=}$kCFStreamSocketSecurityLevelNone@^{__CFString=}$kCFStreamSocketSecurityLevelSSLv2@^{__CFString=}$kCFStreamSocketSecurityLevelSSLv3@^{__CFString=}$kCFStreamSocketSecurityLevelTLSv1@^{__CFString=}$kCFURLErrorFailingURLErrorKey@^{__CFString=}$kCFURLErrorFailingURLStringErrorKey@^{__CFString=}$""" constants = constants + "$kCFStreamErrorDomainNetServices@%s$" % (sel32or64("l", "i"),) constants = constants + "$kCFStreamErrorDomainFTP@%s$" % (sel32or64("l", "i"),) constants = constants + "$kCFStreamErrorDomainSystemConfiguration@%s$" % (sel32or64("l", "i"),) constants = constants + "$kCFStreamErrorDomainWinSock@%s$" % (sel32or64("l", "q"),) constants = constants + "$kCFStreamErrorDomainNetDB@%s$" % (sel32or64("l", "i"),) constants = constants + "$kCFStreamErrorDomainMach@%s$" % (sel32or64("l", "i"),)
# This file is generated by objective.metadata # # Last update: Sun Sep 17 14:39:54 2017 import objc, sys if sys.maxsize > 2 ** 32: def sel32or64(a, b): return b else: def sel32or64(a, b): return a if sys.byteorder == 'little': def littleOrBig(a, b): return a else: def littleOrBig(a, b): return b misc= {'CGPoint': objc.createStructType('CGPoint', sel32or64(b'{_CGPoint=ff}', b'{CGPoint=dd}'), ['x', 'y']), 'CGEventTapInformation': objc.createStructType('CGEventTapInformation', b'{__CGEventTapInformation=IIIQiiBfff}', ['eventTapID', 'tapPoint', 'options', 'eventsOfInterest', 'tappingProcess', 'processBeingTapped', 'enabled', 'minUsecLatency', 'avgUsecLatency', 'maxUsecLatency']), 'CGDataProviderSequentialCallbacks': objc.createStructType('CGDataProviderSequentialCallbacks', b'{CGDataProviderSequentialCallbacks=I^?^?^?^?}', []), 'CGVector': objc.createStructType('CGVector', sel32or64(b'{CGVector=ff}', b'{CGVector=dd}'), ['dx', 'dy']), 'CGPatternCallbacks': objc.createStructType('CGPatternCallbacks', b'{CGPatternCallbacks=I^?^?}', []), 'CGSize': objc.createStructType('CGSize', sel32or64(b'{_CGSize=ff}', b'{CGSize=dd}'), ['width', 'height']), 'CGDeviceColor': objc.createStructType('CGDeviceColor', b'{CGDeviceColor=fff}', ['red', 'green', 'blue']), 'CGAffineTransform': objc.createStructType('CGAffineTransform', sel32or64(b'{CGAffineTransform=ffffff}', b'{CGAffineTransform=dddddd}'), ['a', 'b', 'c', 'd', 'tx', 'ty']), 'CGDataConsumerCallbacks': objc.createStructType('CGDataConsumerCallbacks', b'{CGDataConsumerCallbacks=^?^?}', []), 'CGDataProviderDirectAccessCallbacks': objc.createStructType('CGDataProviderDirectAccessCallbacks', b'{CGDataProviderDirectAccessCallbacks=^?^?^?^?}', []), 'CGPathElement': objc.createStructType('CGPathElement', sel32or64(b'{CGPathElement=I^{CGPoint=ff}}', b'{CGPathElement=I^{CGPoint=dd}}'), ['type', 'points']), 'CGScreenUpdateMoveDelta': objc.createStructType('CGScreenUpdateMoveDelta', b'{CGScreenUpdateMoveDelta=ii}', ['dX', 'dY']), 'CGDataProviderCallbacks': objc.createStructType('CGDataProviderCallbacks', b'{CGDataProviderCallbacks=^?^?^?^?}', []), 'CGPSConverterCallbacks': objc.createStructType('CGPSConverterCallbacks', b'{CGPSConverterCallbacks=I^?^?^?^?^?^?^?}', []), 'CGRect': objc.createStructType('CGRect', sel32or64(b'{_CGRect={_CGPoint=ff}{_CGSize=ff}}', b'{CGRect={CGPoint=dd}{CGSize=dd}}'), ['origin', 'size'])} constants = '''$$''' constants = constants + '$CGRectZero@%s$'%(sel32or64('{CGRect={CGPoint=ff}{CGSize=ff}}', '{CGRect={CGPoint=dd}{CGSize=dd}}'),) constants = constants + '$CGAffineTransformIdentity@%s$'%(sel32or64('{CGAffineTransform=ffffff}', '{CGAffineTransform=dddddd}'),) constants = constants + '$CGRectNull@%s$'%(sel32or64('{CGRect={CGPoint=ff}{CGSize=ff}}', '{CGRect={CGPoint=dd}{CGSize=dd}}'),) constants = constants + '$CGPointZero@%s$'%(sel32or64('{CGPoint=ff}', '{CGPoint=dd}'),) constants = constants + '$CGRectInfinite@%s$'%(sel32or64('{CGRect={CGPoint=ff}{CGSize=ff}}', '{CGRect={CGPoint=dd}{CGSize=dd}}'),) constants = constants + '$CGSizeZero@%s$'%(sel32or64('{CGSize=ff}', '{CGSize=dd}'),) enums = '''$$''' functions={'CGRectGetMidX': (sel32or64(b'f{CGRect={CGPoint=ff}{CGSize=ff}}', b'd{CGRect={CGPoint=dd}{CGSize=dd}}'),), 'CGRectGetMidY': (sel32or64(b'f{CGRect={CGPoint=ff}{CGSize=ff}}', b'd{CGRect={CGPoint=dd}{CGSize=dd}}'),), 'CGVectorMake': (sel32or64(b'{CGVector=ff}ff', b'{CGVector=dd}dd'),), 'CGPointMake': (sel32or64(b'{CGPoint=ff}ff', b'{CGPoint=dd}dd'),), 'CGSizeMake': (sel32or64(b'{CGSize=ff}ff', b'{CGSize=dd}dd'),), 'CGAffineTransformMakeScale': (sel32or64(b'{CGAffineTransform=ffffff}ff', b'{CGAffineTransform=dddddd}dd'),), 'CGRectMake': (sel32or64(b'{CGRect={CGPoint=ff}{CGSize=ff}}ffff', b'{CGRect={CGPoint=dd}{CGSize=dd}}dddd'),), 'CGPDFDocumentGetVersion': (b'v^{CGPDFDocument=}^i^i', '', {'arguments': {1: {'type_modifier': 'o'}, 2: {'type_modifier': 'o'}}}), 'CGContextAddArcToPoint': (sel32or64(b'v^{CGContext=}fffff', b'v^{CGContext=}ddddd'),), 'CGRectIntersection': (sel32or64(b'{CGRect={CGPoint=ff}{CGSize=ff}}{CGRect={CGPoint=ff}{CGSize=ff}}{CGRect={CGPoint=ff}{CGSize=ff}}', b'{CGRect={CGPoint=dd}{CGSize=dd}}{CGRect={CGPoint=dd}{CGSize=dd}}{CGRect={CGPoint=dd}{CGSize=dd}}'),), 'CGDataConsumerRetain': (b'^{CGDataConsumer=}^{CGDataConsumer=}',)} aliases = {} cftypes=[('CGEventRef', b'^{__CGEvent=}', 'CGEventGetTypeID', None)] expressions = {} # END OF FILE
if sys.maxsize > 2**32: def sel32or64(a, b): return b else: def sel32or64(a, b): return a misc = {} misc.update({ "InstallerSection_Private": objc.createStructType("InstallerSection_Private", b"{InstallerSection_Private=}", []), "InstallerState_Private": objc.createStructType("InstallerState_Private", b"{InstallerState_Private=}", []), "InstallerPane_Private": objc.createStructType("InstallerPane_Private", b"{InstallerPane_Private=}", []), }) constants = """$InstallerState_Choice_CustomLocation$InstallerState_Choice_Identifier$InstallerState_Choice_Installed$""" enums = """$InstallerDirectionBackward@1$InstallerDirectionForward@0$InstallerDirectionUndefined@2$""" misc.update({}) r = objc.registerMetaDataForSelector objc._updatingMetadata(True) try: r(b"InstallerPane", b"gotoNextPane", {"retval": {"type": "Z"}}) r(b"InstallerPane", b"gotoPreviousPane", {"retval": {"type": "Z"}})
def littleOrBig(a, b): return a else: def littleOrBig(a, b): return b misc = {} misc.update({ 'LSItemInfoRecord': objc.createStructType( 'LSItemInfoRecord', sel32or64(b'{LSItemInfoRecord=LLL^{__CFString=}^{__CFString=}L}', b'{LSItemInfoRecord=III^{__CFString=}}'), sel32or64([ 'flags', 'filetype', 'creator', 'extension', 'iconFileName', 'kindID' ], ['flags', 'filetype', 'creator', 'extension']), None, 2), 'LSLaunchFSRefSpec': objc.createStructType( 'LSLaunchFSRefSpec', sel32or64( b'{LSLaunchFSRefSpec=^{FSRef=[80C]}L^{FSRef=[80C]}^{AEDesc=L^^{OpaqueAEDataStorageType=}}L^v}', b'{LSLaunchFSRefSpec=^{FSRef=[80C]}Q^{FSRef=[80C]}^{AEDesc=I^^{OpaqueAEDataStorageType=}}I^v}' ), [ 'appRef', 'numDocs', 'itemRefs', 'passThruParams', 'launchFlags', 'asyncRefCon' ], None, 2), 'LSApplicationParameters': objc.createStructType(
# This file is generated by objective.metadata # # Last update: Fri Sep 21 15:02:14 2012 import objc, sys if sys.maxsize > 2 ** 32: def sel32or64(a, b): return b else: def sel32or64(a, b): return a if sys.byteorder == 'little': def littleOrBig(a, b): return a else: def littleOrBig(a, b): return b misc = { } misc.update({'FSEventStreamContext': objc.createStructType('FSEventStreamContext', b'{FSEventStreamContext=l^v^?^?^?}', [])}) constants = '''$$''' enums = '''$kFSEventStreamCreateFlagFileEvents@16$kFSEventStreamCreateFlagIgnoreSelf@8$kFSEventStreamCreateFlagNoDefer@2$kFSEventStreamCreateFlagNone@0$kFSEventStreamCreateFlagUseCFTypes@1$kFSEventStreamCreateFlagWatchRoot@4$kFSEventStreamEventFlagEventIdsWrapped@8$kFSEventStreamEventFlagHistoryDone@16$kFSEventStreamEventFlagItemChangeOwner@16384$kFSEventStreamEventFlagItemCreated@256$kFSEventStreamEventFlagItemFinderInfoMod@8192$kFSEventStreamEventFlagItemInodeMetaMod@1024$kFSEventStreamEventFlagItemIsDir@131072$kFSEventStreamEventFlagItemIsFile@65536$kFSEventStreamEventFlagItemIsSymlink@262144$kFSEventStreamEventFlagItemModified@4096$kFSEventStreamEventFlagItemRemoved@512$kFSEventStreamEventFlagItemRenamed@2048$kFSEventStreamEventFlagItemXattrMod@32768$kFSEventStreamEventFlagKernelDropped@4$kFSEventStreamEventFlagMount@64$kFSEventStreamEventFlagMustScanSubDirs@1$kFSEventStreamEventFlagNone@0$kFSEventStreamEventFlagRootChanged@32$kFSEventStreamEventFlagUnmount@128$kFSEventStreamEventFlagUserDropped@2$kFSEventStreamEventIdSinceNow@18446744073709551615$''' misc.update({}) functions={'FSEventStreamGetDeviceBeingWatched': (b'i^{__FSEventStream=}',), 'FSEventStreamGetLatestEventId': (b'Q^{__FSEventStream=}',), 'FSEventStreamRetain': (b'v^{__FSEventStream=}',), 'FSEventStreamCreateRelativeToDevice': (sel32or64(b'^{__FSEventStream=}^{__CFAllocator=}^?^{FSEventStreamContext=i^v^?^?^?}i^{__CFArray=}QdL', b'^{__FSEventStream=}^{__CFAllocator=}^?^{FSEventStreamContext=q^v^?^?^?}i^{__CFArray=}QdI'), '', {'retval': {'already_retained': True}, 'arguments': {1: {'callable': {'retval': {'type': b'v'}, 'arguments': {0: {'type': b'^{__FSEventStream=}'}, 1: {'type': b'^v'}, 2: {'type': b'L'}, 3: {'type': b'^v'}, 4: {'type': b'^I'}, 5: {'type': b'^Q'}}}}}}), 'FSEventsCopyUUIDForDevice': (b'^{__CFUUID=}i', '', {'retval': {'already_retained': True}}), 'FSEventStreamShow': (b'v^{__FSEventStream=}',), 'FSEventStreamScheduleWithRunLoop': (b'v^{__FSEventStream=}^{__CFRunLoop=}^{__CFString=}',), 'FSEventStreamInvalidate': (b'v^{__FSEventStream=}',), 'FSEventsGetCurrentEventId': (b'Q',), 'FSEventStreamStop': (b'v^{__FSEventStream=}',), 'FSEventsPurgeEventsForDeviceUpToEventId': (b'ZiQ',), 'FSEventStreamCreate': (sel32or64(b'^{__FSEventStream=}^{__CFAllocator=}^?^{FSEventStreamContext=i^v^?^?^?}^{__CFArray=}QdL', b'^{__FSEventStream=}^{__CFAllocator=}^?^{FSEventStreamContext=q^v^?^?^?}^{__CFArray=}QdI'), '', {'retval': {'already_retained': True}, 'arguments': {1: {'callable': {'retval': {'type': b'v'}, 'arguments': {0: {'type': b'^{__FSEventStream=}'}, 1: {'type': b'^v'}, 2: {'type': b'L'}, 3: {'type': b'^v'}, 4: {'type': b'^I'}, 5: {'type': b'^Q'}}}}}}), 'FSEventStreamCopyDescription': (b'^{__CFString=}^{__FSEventStream=}', '', {'retval': {'already_retained': True}}), 'FSEventStreamCopyPathsBeingWatched': (b'^{__CFArray=}^{__FSEventStream=}', '', {'retval': {'already_cfretained': True}}), 'FSEventStreamUnscheduleFromRunLoop': (b'v^{__FSEventStream=}^{__CFRunLoop=}^{__CFString=}',), 'FSEventStreamRelease': (b'v^{__FSEventStream=}',), 'FSEventStreamStart': (b'Z^{__FSEventStream=}',), 'FSEventStreamFlushSync': (b'v^{__FSEventStream=}',), 'FSEventsGetLastEventIdForDeviceBeforeTime': (b'Qid',), 'FSEventStreamFlushAsync': (b'Q^{__FSEventStream=}',), 'FSEventStreamSetDispatchQueue': (b'v^{__FSEventStream=}^{dispatch_queue_s=}',)} misc.update({'FSEventStreamRef': objc.createOpaquePointerType('FSEventStreamRef', b'^{__FSEventStream=}')}) expressions = {} # END OF FILE
else: def sel32or64(a, b): return a misc = {} misc.update({ "MDQueryBatchingParams": objc.createStructType( "MDQueryBatchingParams", b"{_MDQueryBatchingParams=QQQQQQ}", [ "first_max_num", "first_max_ms", "progress_max_num", "progress_max_ms", "update_max_num", "update_max_ms", ], ) }) constants = """$kMDAttributeAllValues@^{__CFString=}$kMDAttributeDisplayValues@^{__CFString=}$kMDAttributeMultiValued@^{__CFString=}$kMDAttributeName@^{__CFString=}$kMDAttributeReadOnlyValues@^{__CFString=}$kMDAttributeType@^{__CFString=}$kMDExporterAvaliable@^{__CFString=}$kMDItemAcquisitionMake@^{__CFString=}$kMDItemAcquisitionModel@^{__CFString=}$kMDItemAlbum@^{__CFString=}$kMDItemAltitude@^{__CFString=}$kMDItemAperture@^{__CFString=}$kMDItemAppleLoopDescriptors@^{__CFString=}$kMDItemAppleLoopsKeyFilterType@^{__CFString=}$kMDItemAppleLoopsLoopMode@^{__CFString=}$kMDItemAppleLoopsRootKey@^{__CFString=}$kMDItemApplicationCategories@^{__CFString=}$kMDItemAttributeChangeDate@^{__CFString=}$kMDItemAudiences@^{__CFString=}$kMDItemAudioBitRate@^{__CFString=}$kMDItemAudioChannelCount@^{__CFString=}$kMDItemAudioEncodingApplication@^{__CFString=}$kMDItemAudioSampleRate@^{__CFString=}$kMDItemAudioTrackNumber@^{__CFString=}$kMDItemAuthorAddresses@^{__CFString=}$kMDItemAuthorEmailAddresses@^{__CFString=}$kMDItemAuthors@^{__CFString=}$kMDItemBitsPerSample@^{__CFString=}$kMDItemCFBundleIdentifier@^{__CFString=}$kMDItemCameraOwner@^{__CFString=}$kMDItemCity@^{__CFString=}$kMDItemCodecs@^{__CFString=}$kMDItemColorSpace@^{__CFString=}$kMDItemComment@^{__CFString=}$kMDItemComposer@^{__CFString=}$kMDItemContactKeywords@^{__CFString=}$kMDItemContentCreationDate@^{__CFString=}$kMDItemContentModificationDate@^{__CFString=}$kMDItemContentType@^{__CFString=}$kMDItemContentTypeTree@^{__CFString=}$kMDItemContributors@^{__CFString=}$kMDItemCopyright@^{__CFString=}$kMDItemCountry@^{__CFString=}$kMDItemCoverage@^{__CFString=}$kMDItemCreator@^{__CFString=}$kMDItemDateAdded@^{__CFString=}$kMDItemDeliveryType@^{__CFString=}$kMDItemDescription@^{__CFString=}$kMDItemDirector@^{__CFString=}$kMDItemDisplayName@^{__CFString=}$kMDItemDownloadedDate@^{__CFString=}$kMDItemDueDate@^{__CFString=}$kMDItemDurationSeconds@^{__CFString=}$kMDItemEXIFGPSVersion@^{__CFString=}$kMDItemEXIFVersion@^{__CFString=}$kMDItemEditors@^{__CFString=}$kMDItemEmailAddresses@^{__CFString=}$kMDItemEncodingApplications@^{__CFString=}$kMDItemExecutableArchitectures@^{__CFString=}$kMDItemExecutablePlatform@^{__CFString=}$kMDItemExposureMode@^{__CFString=}$kMDItemExposureProgram@^{__CFString=}$kMDItemExposureTimeSeconds@^{__CFString=}$kMDItemExposureTimeString@^{__CFString=}$kMDItemFNumber@^{__CFString=}$kMDItemFSContentChangeDate@^{__CFString=}$kMDItemFSCreationDate@^{__CFString=}$kMDItemFSExists@^{__CFString=}$kMDItemFSHasCustomIcon@^{__CFString=}$kMDItemFSInvisible@^{__CFString=}$kMDItemFSIsExtensionHidden@^{__CFString=}$kMDItemFSIsReadable@^{__CFString=}$kMDItemFSIsStationery@^{__CFString=}$kMDItemFSIsWriteable@^{__CFString=}$kMDItemFSLabel@^{__CFString=}$kMDItemFSName@^{__CFString=}$kMDItemFSNodeCount@^{__CFString=}$kMDItemFSOwnerGroupID@^{__CFString=}$kMDItemFSOwnerUserID@^{__CFString=}$kMDItemFSSize@^{__CFString=}$kMDItemFinderComment@^{__CFString=}$kMDItemFlashOnOff@^{__CFString=}$kMDItemFocalLength@^{__CFString=}$kMDItemFocalLength35mm@^{__CFString=}$kMDItemFonts@^{__CFString=}$kMDItemGPSAreaInformation@^{__CFString=}$kMDItemGPSDOP@^{__CFString=}$kMDItemGPSDateStamp@^{__CFString=}$kMDItemGPSDestBearing@^{__CFString=}$kMDItemGPSDestDistance@^{__CFString=}$kMDItemGPSDestLatitude@^{__CFString=}$kMDItemGPSDestLongitude@^{__CFString=}$kMDItemGPSDifferental@^{__CFString=}$kMDItemGPSMapDatum@^{__CFString=}$kMDItemGPSMeasureMode@^{__CFString=}$kMDItemGPSProcessingMethod@^{__CFString=}$kMDItemGPSStatus@^{__CFString=}$kMDItemGPSTrack@^{__CFString=}$kMDItemGenre@^{__CFString=}$kMDItemHTMLContent@^{__CFString=}$kMDItemHasAlphaChannel@^{__CFString=}$kMDItemHeadline@^{__CFString=}$kMDItemISOSpeed@^{__CFString=}$kMDItemIdentifier@^{__CFString=}$kMDItemImageDirection@^{__CFString=}$kMDItemInformation@^{__CFString=}$kMDItemInstantMessageAddresses@^{__CFString=}$kMDItemInstructions@^{__CFString=}$kMDItemIsApplicationManaged@^{__CFString=}$kMDItemIsGeneralMIDISequence@^{__CFString=}$kMDItemIsLikelyJunk@^{__CFString=}$kMDItemKeySignature@^{__CFString=}$kMDItemKeywords@^{__CFString=}$kMDItemKind@^{__CFString=}$kMDItemLabelID@^{__CFString=}$kMDItemLabelIcon@^{__CFString=}$kMDItemLabelKind@^{__CFString=}$kMDItemLabelUUID@^{__CFString=}$kMDItemLanguages@^{__CFString=}$kMDItemLastUsedDate@^{__CFString=}$kMDItemLatitude@^{__CFString=}$kMDItemLayerNames@^{__CFString=}$kMDItemLensModel@^{__CFString=}$kMDItemLongitude@^{__CFString=}$kMDItemLyricist@^{__CFString=}$kMDItemMaxAperture@^{__CFString=}$kMDItemMediaTypes@^{__CFString=}$kMDItemMeteringMode@^{__CFString=}$kMDItemMusicalGenre@^{__CFString=}$kMDItemMusicalInstrumentCategory@^{__CFString=}$kMDItemMusicalInstrumentName@^{__CFString=}$kMDItemNamedLocation@^{__CFString=}$kMDItemNumberOfPages@^{__CFString=}$kMDItemOrganizations@^{__CFString=}$kMDItemOrientation@^{__CFString=}$kMDItemOriginalFormat@^{__CFString=}$kMDItemOriginalSource@^{__CFString=}$kMDItemPageHeight@^{__CFString=}$kMDItemPageWidth@^{__CFString=}$kMDItemParticipants@^{__CFString=}$kMDItemPath@^{__CFString=}$kMDItemPerformers@^{__CFString=}$kMDItemPhoneNumbers@^{__CFString=}$kMDItemPixelCount@^{__CFString=}$kMDItemPixelHeight@^{__CFString=}$kMDItemPixelWidth@^{__CFString=}$kMDItemProducer@^{__CFString=}$kMDItemProfileName@^{__CFString=}$kMDItemProjects@^{__CFString=}$kMDItemPublishers@^{__CFString=}$kMDItemRecipientAddresses@^{__CFString=}$kMDItemRecipientEmailAddresses@^{__CFString=}$kMDItemRecipients@^{__CFString=}$kMDItemRecordingDate@^{__CFString=}$kMDItemRecordingYear@^{__CFString=}$kMDItemRedEyeOnOff@^{__CFString=}$kMDItemResolutionHeightDPI@^{__CFString=}$kMDItemResolutionWidthDPI@^{__CFString=}$kMDItemRights@^{__CFString=}$kMDItemSecurityMethod@^{__CFString=}$kMDItemSpeed@^{__CFString=}$kMDItemStarRating@^{__CFString=}$kMDItemStateOrProvince@^{__CFString=}$kMDItemStreamable@^{__CFString=}$kMDItemSubject@^{__CFString=}$kMDItemSupportFileType@^{__CFString=}$kMDItemTempo@^{__CFString=}$kMDItemTextContent@^{__CFString=}$kMDItemTheme@^{__CFString=}$kMDItemTimeSignature@^{__CFString=}$kMDItemTimestamp@^{__CFString=}$kMDItemTitle@^{__CFString=}$kMDItemTotalBitRate@^{__CFString=}$kMDItemURL@^{__CFString=}$kMDItemVersion@^{__CFString=}$kMDItemVideoBitRate@^{__CFString=}$kMDItemWhereFroms@^{__CFString=}$kMDItemWhiteBalance@^{__CFString=}$kMDLabelAddedNotification@^{__CFString=}$kMDLabelBundleURL@^{__CFString=}$kMDLabelChangedNotification@^{__CFString=}$kMDLabelContentChangeDate@^{__CFString=}$kMDLabelDisplayName@^{__CFString=}$kMDLabelIconData@^{__CFString=}$kMDLabelIconUUID@^{__CFString=}$kMDLabelIsMutuallyExclusiveSetMember@^{__CFString=}$kMDLabelKind@^{__CFString=}$kMDLabelKindIsMutuallyExclusiveSetKey@^{__CFString=}$kMDLabelKindVisibilityKey@^{__CFString=}$kMDLabelRemovedNotification@^{__CFString=}$kMDLabelSetsFinderColor@^{__CFString=}$kMDLabelUUID@^{__CFString=}$kMDLabelVisibility@^{__CFString=}$kMDPrivateVisibility@^{__CFString=}$kMDPublicVisibility@^{__CFString=}$kMDQueryDidFinishNotification@^{__CFString=}$kMDQueryDidUpdateNotification@^{__CFString=}$kMDQueryProgressNotification@^{__CFString=}$kMDQueryResultContentRelevance@^{__CFString=}$kMDQueryScopeAllIndexed@^{__CFString=}$kMDQueryScopeComputer@^{__CFString=}$kMDQueryScopeComputerIndexed@^{__CFString=}$kMDQueryScopeHome@^{__CFString=}$kMDQueryScopeNetwork@^{__CFString=}$kMDQueryScopeNetworkIndexed@^{__CFString=}$kMDQueryUpdateAddedItems@^{__CFString=}$kMDQueryUpdateChangedItems@^{__CFString=}$kMDQueryUpdateRemovedItems@^{__CFString=}$""" enums = """$kMDLabelLocalDomain@1$kMDLabelUserDomain@0$kMDQueryAllowFSTranslation@8$kMDQueryReverseSortOrderFlag@1$kMDQuerySynchronous@1$kMDQueryWantsUpdates@4$""" misc.update({}) functions = { "MDQueryCreate": ( b"^{__MDQuery=}^{__CFAllocator=}^{__CFString=}^{__CFArray=}^{__CFArray=}", "", { "retval": {