MobileGestaltSPI.h [plain text]
#ifndef MobileGestaltSPI_h
#define MobileGestaltSPI_h
#import <wtf/Platform.h>
#if PLATFORM(IOS)
#include <CoreFoundation/CoreFoundation.h>
#if USE(APPLE_INTERNAL_SDK)
#include <MobileGestalt.h>
#else
static const CFStringRef kMGQAppleInternalInstallCapability = CFSTR("apple-internal-install");
static const CFStringRef kMGQMainScreenPitch = CFSTR("main-screen-pitch");
static const CFStringRef kMGQMainScreenScale = CFSTR("main-screen-scale");
static const CFStringRef kMGQiPadCapability = CFSTR("ipad");
static const CFStringRef kMGQDeviceName = CFSTR("DeviceName");
static const CFStringRef kMGQDeviceClassNumber = CFSTR("DeviceClassNumber");
static const CFStringRef kMGQHasExtendedColorDisplay = CFSTR("HasExtendedColorDisplay");
typedef enum {
MGDeviceClassInvalid = -1,
MGDeviceClassiPhone = 1,
MGDeviceClassiPod = 2,
MGDeviceClassiPad = 3,
MGDeviceClassAppleTV = 4,
MGDeviceClassWatch = 6,
} MGDeviceClass;
#endif
EXTERN_C CFTypeRef MGCopyAnswer(CFStringRef question, CFDictionaryRef options);
#ifndef MGGetBoolAnswer
EXTERN_C bool MGGetBoolAnswer(CFStringRef question);
#endif
#ifndef MGGetSInt32Answer
EXTERN_C SInt32 MGGetSInt32Answer(CFStringRef question, SInt32 defaultValue);
#endif
#ifndef MGGetFloat32Answer
EXTERN_C Float32 MGGetFloat32Answer(CFStringRef question, Float32 defaultValue);
#endif
#endif
#endif // MobileGestaltSPI_h