27#ifndef __COREFOUNDATION_CFBUNDLE__
28#define __COREFOUNDATION_CFBUNDLE__ 1
30#include <CoreFoundation/CFBase.h>
31#include <CoreFoundation/CFURL.h>
32#include <CoreFoundation/CFDictionary.h>
33#include <CoreFoundation/CFError.h>
37typedef const struct __CFBundle *CFBundleRef;
39CFTypeID CFBundleGetTypeID (
void);
41CFBundleRef CFBundleCreate(
CFAllocatorRef allocator, CFURLRef bundleURL);
43void* CFBundleGetFunctionPointerForName(CFBundleRef bundle,
44 CFStringRef functionName);
46void* CFBundleGetDataPointerForName(CFBundleRef bundle,
47 CFStringRef functionName);
49CFBundleRef CFBundleGetMainBundle(
void);
50CFBundleRef CFBundleGetBundleWithIdentifier(CFStringRef bundleID);
52Boolean CFBundleLoadExecutable(CFBundleRef bundle);
53Boolean CFBundleLoadExecutableAndReturnError(CFBundleRef bundle, CFErrorRef *error);
54Boolean CFBundlePreflightExecutable(CFBundleRef bundle, CFErrorRef *error);
55void CFBundleUnloadExecutable(CFBundleRef bundle);
57CFStringRef CFBundleGetIdentifier(CFBundleRef bundle);
59CFURLRef CFBundleCopyExecutableURL(CFBundleRef bundle);
61CFURLRef CFBundleCopyBuiltInPlugInsURL(CFBundleRef bundle);
63CFURLRef CFBundleCopyBundleURL(CFBundleRef bundle);
65CFURLRef CFBundleCopyResourcesDirectoryURL(CFBundleRef bundle);
67CFURLRef CFBundleCopyResourceURL(CFBundleRef bundle, CFStringRef resourceName,
68 CFStringRef resourceType,
69 CFStringRef subDirName);
71CFURLRef CFBundleCopyPrivateFrameworksURL(CFBundleRef bundle);
73CFURLRef CFBundleCopyAuxiliaryExecutableURL(CFBundleRef bundle,
74 CFStringRef executableName);
76CFURLRef CFBundleCopyResourceURLForLocalization(CFBundleRef bundle,
77 CFStringRef resourceName, CFStringRef resourceType,
78 CFStringRef subDirName, CFStringRef localizationName);
80CFDictionaryRef CFBundleGetInfoDictionary(CFBundleRef bundle);
81CFDictionaryRef CFBundleGetLocalInfoDictionary(CFBundleRef bundle);
83CFTypeRef CFBundleGetValueForInfoDictionaryKey(CFBundleRef bundle,
86CF_EXPORT
const CFStringRef kCFBundleInfoDictionaryVersionKey;
87CF_EXPORT
const CFStringRef kCFBundleExecutableKey;
88CF_EXPORT
const CFStringRef kCFBundleIdentifierKey;
89CF_EXPORT
const CFStringRef kCFBundleVersionKey;
90CF_EXPORT
const CFStringRef kCFBundleNameKey;
91CF_EXPORT
const CFStringRef kCFBundleLocalizationsKey;
const struct __CFAllocator * CFAllocatorRef
A reference to a CFAllocator object.
Definition CFBase.h:301