Lines Matching refs:bundleURL

194 static CFBundleRef _CFBundleCreate(CFAllocatorRef allocator, CFURLRef bundleURL, Boolean alreadyLocked, Boolean doFinalProcessing);
272 static void _CFBundleRemoveFromTables(CFBundleRef bundle, CFURLRef bundleURL, CFStringRef bundleID) {
281 if (bundleURL && _bundlesByURL) {
282 CFBundleRef bundleForURL = (CFBundleRef)CFDictionaryGetValue(_bundlesByURL, bundleURL);
283 if (bundleForURL == bundle) CFDictionaryRemoveValue(_bundlesByURL, bundleURL);
428 static void _CFBundleRemoveFromTables(CFBundleRef bundle, CFURLRef bundleURL, CFStringRef bundleID) {
434 if (bundleURL) {
435 _removeFromBundlesByURL(bundleURL);
682 CFURLRef bundleURL = _CFBundleCopyBundleURLForExecutableURL(url), resolvedURL = _CFBundleCopyResolvedURLForExecutableURL(url);
683 if (bundleURL && resolvedURL) {
684 bundle = _CFBundleCreateIfLooksLikeBundle(allocator, bundleURL);
695 if (bundleURL) CFRelease(bundleURL);
740 CFURLRef bundleURL = _CFBundleCopyBundleURLForExecutableURL(url), resolvedURL = _CFBundleCopyResolvedURLForExecutableURL(url);
741 if (bundleURL && resolvedURL) {
742 bundle = _CFBundleCreateIfMightBeBundle(allocator, bundleURL);
753 if (bundleURL) CFRelease(bundleURL);
878 CFURLRef executableURL = NULL, bundleURL = NULL;
885 if (executableURL) bundleURL = _CFBundleCopyBundleURLForExecutableURL(executableURL);
886 if (bundleURL) {
890 _mainBundle = _CFBundleCreate(kCFAllocatorSystemDefault, bundleURL, true, false);
930 if (bundleURL) CFRelease(bundleURL);
1028 CFURLRef bundleURL;
1032 bundleURL = bundle->_url;
1035 _CFBundleRemoveFromTables(bundle, bundleURL, bundleID);
1038 if (bundleURL) {
1039 CFRelease(bundleURL);
1086 CFBundleRef _CFBundleGetExistingBundleWithBundleURL(CFURLRef bundleURL) {
1091 if (!CFURLGetFileSystemRepresentation(bundleURL, true, (uint8_t *)buff, CFMaxPathSize)) return NULL;
1094 if (!newURL) newURL = (CFURLRef)CFRetain(bundleURL);
1101 static CFBundleRef _CFBundleCreate(CFAllocatorRef allocator, CFURLRef bundleURL, Boolean alreadyLocked, Boolean doFinalProcessing) {
1110 if (!CFURLGetFileSystemRepresentation(bundleURL, true, (uint8_t *)buff, CFMaxPathSize)) return NULL;
1113 if (!newURL) newURL = (CFURLRef)CFRetain(bundleURL);
1238 CFBundleRef CFBundleCreate(CFAllocatorRef allocator, CFURLRef bundleURL) {
1239 return _CFBundleCreate(allocator, bundleURL, false, true);
1541 CF_PRIVATE CFURLRef _CFBundleCopySupportFilesDirectoryURLInDirectory(CFURLRef bundleURL, uint8_t version) {
1543 if (bundleURL) {
1545 result = CFURLCreateWithString(kCFAllocatorSystemDefault, _CFBundleSupportFilesURLFromBase1, bundleURL);
1547 result = CFURLCreateWithString(kCFAllocatorSystemDefault, _CFBundleSupportFilesURLFromBase2, bundleURL);
1549 result = (CFURLRef)CFRetain(bundleURL);
1559 CF_PRIVATE CFURLRef _CFBundleCopyResourcesDirectoryURLInDirectory(CFURLRef bundleURL, uint8_t version) {
1561 if (bundleURL) {
1563 result = CFURLCreateWithString(kCFAllocatorSystemDefault, _CFBundleResourcesURLFromBase0, bundleURL);
1565 result = CFURLCreateWithString(kCFAllocatorSystemDefault, _CFBundleResourcesURLFromBase1, bundleURL);
1567 result = CFURLCreateWithString(kCFAllocatorSystemDefault, _CFBundleResourcesURLFromBase2, bundleURL);
1569 result = (CFURLRef)CFRetain(bundleURL);
1579 CF_PRIVATE CFURLRef _CFBundleCopyAppStoreReceiptURLInDirectory(CFURLRef bundleURL, uint8_t version) {
1581 if (bundleURL) {
1583 result = CFURLCreateWithString(kCFAllocatorSystemDefault, _CFBundleAppStoreReceiptURLFromBase0, bundleURL);
1585 result = CFURLCreateWithString(kCFAllocatorSystemDefault, _CFBundleAppStoreReceiptURLFromBase1, bundleURL);
1587 result = CFURLCreateWithString(kCFAllocatorSystemDefault, _CFBundleAppStoreReceiptURLFromBase2, bundleURL);
2844 CFURLRef bundleURL = CFBundleCopyBundleURL(bundle);
2845 if (!bundleURL) {
2848 CFStringRef str = CFURLCopyFileSystemPath(bundleURL, kCFURLPOSIXPathStyle);
2852 CFRelease(bundleURL);
2863 CFURLRef bundleURL = CFBundleCopyBundleURL(bundle), absoluteURL = CFURLCopyAbsoluteURL(bundleURL), executableURL = CFBundleCopyExecutableURL(bundle);
2932 if (bundleURL) CFRelease(bundleURL);
3461 CFURLRef bundleURL = NULL;
3481 bundleURL = CFURLCreateWithFileSystemPath(kCFAllocatorSystemDefault, cheapStr, PLATFORM_PATH_STYLE, true);
3482 if (!_CFBundleCouldBeBundle(bundleURL)) {
3483 CFRelease(bundleURL);
3484 bundleURL = NULL;
3488 if (!bundleURL) {
3492 bundleURL = CFURLCreateWithFileSystemPath(kCFAllocatorSystemDefault, cheapStr, PLATFORM_PATH_STYLE, true);
3493 if (!_CFBundleCouldBeBundle(bundleURL)) {
3494 CFRelease(bundleURL);
3495 bundleURL = NULL;
3501 if (!bundleURL) {
3521 bundleURL = CFURLCreateWithFileSystemPath(kCFAllocatorSystemDefault, cheapStr, PLATFORM_PATH_STYLE, true);
3522 if (!_CFBundleCouldBeBundle(bundleURL)) {
3523 CFRelease(bundleURL);
3524 bundleURL = NULL;
3530 bundleURL = CFURLCreateWithFileSystemPath(kCFAllocatorSystemDefault, cheapStr, PLATFORM_PATH_STYLE, true);
3531 if (!_CFBundleCouldBeBundle(bundleURL)) {
3532 CFRelease(bundleURL);
3533 bundleURL = NULL;
3544 return bundleURL;