From dfbdd7ed222a04d23e54f0f4a776c0bc9866e382 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Fri, 12 Sep 2008 12:20:20 -0700 Subject: [PATCH] Supporting the latest builds of Cycorder. --- GraphicsServices/GSWindow.h | 4 +- GraphicsServices/GraphicsServices.h | 3 +- MediaPlayer/MPMoviePlayerController.h | 2 +- MediaPlayer/MediaPlayer.h | 27 ++++++++ MediaPlayer/UIEventObservableWindow.h | 2 +- MediaPlayer/UIMoviePlayerController.h | 2 +- QuartzCore/CAAnimation.h | 2 +- QuartzCore/CALayer.h | 14 +++- QuartzCore/CAMediaTiming-Protocol.h | 4 +- QuartzCore/CAMediaTimingFunction.h | 2 +- QuartzCore/CATransaction.h | 2 +- QuartzCore/CDStructures.h | 12 ---- UIKit/NSIndexPath-UITableView.h | 2 +- UIKit/UIActionSheet.h | 39 ----------- UIKit/UIAlertView.h | 2 +- UIKit/UIKit.h | 99 ++++++++++++++++++++++----- 16 files changed, 136 insertions(+), 82 deletions(-) create mode 100644 MediaPlayer/MediaPlayer.h diff --git a/GraphicsServices/GSWindow.h b/GraphicsServices/GSWindow.h index 3faf98c..d5a10ea 100644 --- a/GraphicsServices/GSWindow.h +++ b/GraphicsServices/GSWindow.h @@ -38,13 +38,13 @@ #ifndef GRAPHICSSERVICS_GSWINDOW_H_ #define GRAPHICSSERVICS_GSWINDOW_H_ -#ifndef __plusplus +#ifdef __plusplus extern "C" { #endif typedef struct __GSWindow *GSWindowRef; -#ifndef __plusplus +#ifdef __plusplus } #endif diff --git a/GraphicsServices/GraphicsServices.h b/GraphicsServices/GraphicsServices.h index 64dda1b..f880b0a 100644 --- a/GraphicsServices/GraphicsServices.h +++ b/GraphicsServices/GraphicsServices.h @@ -40,6 +40,7 @@ #include #include +#include #ifdef __cplusplus extern "C" { @@ -157,7 +158,7 @@ mach_port_name_t GSGetPurpleNamedPort(CFStringRef name); uint64_t GSCurrentEventTimestamp(void); void GSSendSystemEvent(struct GSEventRecord *record); void GSSendEvent(struct GSEventRecord *record, mach_port_name_t port); -GSPathInfo GSEventGetPathInfoAtIndex(GSEventRef event, unsigned index); +struct GSPathInfo GSEventGetPathInfoAtIndex(GSEventRef event, unsigned index); #ifdef __cplusplus } diff --git a/MediaPlayer/MPMoviePlayerController.h b/MediaPlayer/MPMoviePlayerController.h index 6577464..e2102b7 100644 --- a/MediaPlayer/MPMoviePlayerController.h +++ b/MediaPlayer/MPMoviePlayerController.h @@ -4,7 +4,7 @@ * class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2007 by Steve Nygard. */ -#import "NSObject.h" +#import @class NSError, NSURL, UIColor, UIWindow; diff --git a/MediaPlayer/MediaPlayer.h b/MediaPlayer/MediaPlayer.h new file mode 100644 index 0000000..e61140f --- /dev/null +++ b/MediaPlayer/MediaPlayer.h @@ -0,0 +1,27 @@ +#ifndef MEDIAPLAYER_MEDIAPLAYER_H_ +#define MEDIAPLAYER_MEDIAPLAYER_H_ + +typedef enum { + MPMovieScalingModeNone, + MPMovieScalingModeAspectFit, + MPMovieScalingModeAspectFill, + MPMovieScalingModeFill, +} MPMovieScalingMode; + +#import +#import + +#import +#import + +#ifdef __cplusplus +extern "C" { +#endif + +extern NSString * const MPMoviePlayerPlaybackDidFinishNotification; + +#ifdef __cplusplus +} +#endif + +#endif/*MEDIAPLAYER_MEDIAPLAYER_H_*/ diff --git a/MediaPlayer/UIEventObservableWindow.h b/MediaPlayer/UIEventObservableWindow.h index 14466fe..d0ee711 100644 --- a/MediaPlayer/UIEventObservableWindow.h +++ b/MediaPlayer/UIEventObservableWindow.h @@ -4,7 +4,7 @@ * class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2007 by Steve Nygard. */ -#import "UIWindow.h" +#import @class NSMutableArray; diff --git a/MediaPlayer/UIMoviePlayerController.h b/MediaPlayer/UIMoviePlayerController.h index 142023d..a551261 100644 --- a/MediaPlayer/UIMoviePlayerController.h +++ b/MediaPlayer/UIMoviePlayerController.h @@ -4,7 +4,7 @@ * class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2007 by Steve Nygard. */ -#import "NSObject.h" +#import @class MPItem, MPVideoViewController; diff --git a/QuartzCore/CAAnimation.h b/QuartzCore/CAAnimation.h index 193f0b6..219c66c 100644 --- a/QuartzCore/CAAnimation.h +++ b/QuartzCore/CAAnimation.h @@ -4,7 +4,7 @@ * class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2007 by Steve Nygard. */ -#import "NSObject.h" +#import #import "CAAction-Protocol.h" #import "CAMediaTiming-Protocol.h" diff --git a/QuartzCore/CALayer.h b/QuartzCore/CALayer.h index e23c7d6..8b0e285 100644 --- a/QuartzCore/CALayer.h +++ b/QuartzCore/CALayer.h @@ -4,13 +4,23 @@ * class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2007 by Steve Nygard. */ -#import "NSObject.h" +#import #import "CAMediaTiming-Protocol.h" @interface CALayer : NSObject { - struct _CALayerIvars _attr; + struct _CALayerIvars { + int refcount; + unsigned int flags; + unsigned int parent; + void *sublayers; + CALayer *mask; + struct _CALayerState *state; + struct _CALayerState *previous_state; + struct _CALayerAnimation *animations; + unsigned int slots[3]; + } _attr; } + (id)defaultValueForKey:(id)fp8; diff --git a/QuartzCore/CAMediaTiming-Protocol.h b/QuartzCore/CAMediaTiming-Protocol.h index c36a93c..aa1ac35 100644 --- a/QuartzCore/CAMediaTiming-Protocol.h +++ b/QuartzCore/CAMediaTiming-Protocol.h @@ -5,8 +5,8 @@ */ @protocol CAMediaTiming -- (id)fillMode; -- (void)setFillMode:(id)fp8; +- (NSString *)fillMode; +- (void)setFillMode:(NSString *)fp8; - (BOOL)autoreverses; - (void)setAutoreverses:(BOOL)fp8; - (double)repeatDuration; diff --git a/QuartzCore/CAMediaTimingFunction.h b/QuartzCore/CAMediaTimingFunction.h index ec53074..2a85981 100644 --- a/QuartzCore/CAMediaTimingFunction.h +++ b/QuartzCore/CAMediaTimingFunction.h @@ -4,7 +4,7 @@ * class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2007 by Steve Nygard. */ -#import "NSObject.h" +#import @interface CAMediaTimingFunction : NSObject { diff --git a/QuartzCore/CATransaction.h b/QuartzCore/CATransaction.h index 4cac6a6..f0a15ee 100644 --- a/QuartzCore/CATransaction.h +++ b/QuartzCore/CATransaction.h @@ -4,7 +4,7 @@ * class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2007 by Steve Nygard. */ -#import "NSObject.h" +#import @interface CATransaction : NSObject { diff --git a/QuartzCore/CDStructures.h b/QuartzCore/CDStructures.h index 5e23a12..4509c5f 100644 --- a/QuartzCore/CDStructures.h +++ b/QuartzCore/CDStructures.h @@ -139,18 +139,6 @@ struct _CALayerArrayIvars { char retained; }; -struct _CALayerIvars { - int refcount; - unsigned int flags; - unsigned int parent; - void *sublayers; - CALayer *mask; - struct _CALayerState *state; - struct _CALayerState *previous_state; - struct _CALayerAnimation *animations; - unsigned int slots[3]; -}; - struct _CALayerState; struct _CARenderAnimation { diff --git a/UIKit/NSIndexPath-UITableView.h b/UIKit/NSIndexPath-UITableView.h index 7814bee..fc6cdb6 100644 --- a/UIKit/NSIndexPath-UITableView.h +++ b/UIKit/NSIndexPath-UITableView.h @@ -4,7 +4,7 @@ * class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2007 by Steve Nygard. */ -#import "NSIndexPath.h" +#import @interface NSIndexPath (UITableView) + (id)indexPathForRow:(unsigned int)fp8 inSection:(unsigned int)fp12; diff --git a/UIKit/UIActionSheet.h b/UIKit/UIActionSheet.h index 6639a06..6a85051 100644 --- a/UIKit/UIActionSheet.h +++ b/UIKit/UIActionSheet.h @@ -8,45 +8,6 @@ @class NSMutableArray, UILabel, UIToolbar, UIWindow; -/*XXX:*/typedef struct { - unsigned int numberOfRows:7; - unsigned int delegateAlertSheetButtonClicked:1; - unsigned int delegateDidPresentAlertSheet:1; - unsigned int delegateDidDismissAlertSheet:1; - unsigned int hideButtonBar:1; - unsigned int alertStyle:3; - unsigned int dontDimBackground:1; - unsigned int dismissSuspended:1; - unsigned int dontBlockInteraction:1; - unsigned int sheetWasPoppedUp:1; - unsigned int animating:1; - unsigned int hideWhenDoneAnimating:1; - unsigned int layoutWhenDoneAnimating:1; - unsigned int titleMaxLineCount:2; - unsigned int bodyTextMaxLineCount:3; - unsigned int runsModal:1; - unsigned int runningModal:1; - unsigned int addedTextView:1; - unsigned int addedTableShadows:1; - unsigned int showOverSBAlerts:1; - unsigned int showMinTableContent:1; - unsigned int bodyTextTruncated:1; - unsigned int orientation:3; - unsigned int delegateBodyTextAlignment:1; - unsigned int delegateClickedButtonAtIndex:1; - unsigned int delegateClickedButtonAtIndex2:1; - unsigned int delegateCancel:1; - unsigned int delegateCancel2:1; - unsigned int delegateWillPresent:1; - unsigned int delegateWillPresent2:1; - unsigned int delegateDidPresent:1; - unsigned int delegateDidPresent2:1; - unsigned int delegateWillDismiss:1; - unsigned int delegateWillDismiss2:1; - unsigned int delegateDidDismiss:1; - unsigned int delegateDidDismiss2:1; -} CDAnonymousStruct7; - @interface UIActionSheet : UIView { id /*XXX:*/ _delegate; diff --git a/UIKit/UIAlertView.h b/UIKit/UIAlertView.h index 4dfad5a..7586b01 100644 --- a/UIKit/UIAlertView.h +++ b/UIKit/UIAlertView.h @@ -10,7 +10,7 @@ @interface UIAlertView : UIView { - id _delegate; + id /*XXX:*/ _delegate; UILabel *_titleLabel; UILabel *_subtitleLabel; UILabel *_bodyTextLabel; diff --git a/UIKit/UIKit.h b/UIKit/UIKit.h index 35cfe08..e611db9 100644 --- a/UIKit/UIKit.h +++ b/UIKit/UIKit.h @@ -4,7 +4,7 @@ @class NSString; #import -#import +#import /*XXX:*/typedef struct { float top; @@ -13,6 +13,45 @@ float right; } CDAnonymousStruct2; +/*XXX:*/typedef struct { + unsigned int numberOfRows:7; + unsigned int delegateAlertSheetButtonClicked:1; + unsigned int delegateDidPresentAlertSheet:1; + unsigned int delegateDidDismissAlertSheet:1; + unsigned int hideButtonBar:1; + unsigned int alertStyle:3; + unsigned int dontDimBackground:1; + unsigned int dismissSuspended:1; + unsigned int dontBlockInteraction:1; + unsigned int sheetWasPoppedUp:1; + unsigned int animating:1; + unsigned int hideWhenDoneAnimating:1; + unsigned int layoutWhenDoneAnimating:1; + unsigned int titleMaxLineCount:2; + unsigned int bodyTextMaxLineCount:3; + unsigned int runsModal:1; + unsigned int runningModal:1; + unsigned int addedTextView:1; + unsigned int addedTableShadows:1; + unsigned int showOverSBAlerts:1; + unsigned int showMinTableContent:1; + unsigned int bodyTextTruncated:1; + unsigned int orientation:3; + unsigned int delegateBodyTextAlignment:1; + unsigned int delegateClickedButtonAtIndex:1; + unsigned int delegateClickedButtonAtIndex2:1; + unsigned int delegateCancel:1; + unsigned int delegateCancel2:1; + unsigned int delegateWillPresent:1; + unsigned int delegateWillPresent2:1; + unsigned int delegateDidPresent:1; + unsigned int delegateDidPresent2:1; + unsigned int delegateWillDismiss:1; + unsigned int delegateWillDismiss2:1; + unsigned int delegateDidDismiss:1; + unsigned int delegateDidDismiss2:1; +} CDAnonymousStruct7; + typedef enum { UIBarButtonItemStylePlain, UIBarButtonItemStyleBordered, @@ -91,23 +130,38 @@ typedef enum { UINavigationButtonStyleDestructive } UINavigationButtonStyle; -enum { - UIViewAutoresizingNone = 0, - UIViewAutoresizingFlexibleLeftMargin = 1 << 0, - UIViewAutoresizingFlexibleWidth = 1 << 1, - UIViewAutoresizingFlexibleRightMargin = 1 << 2, - UIViewAutoresizingFlexibleTopMargin = 1 << 3, - UIViewAutoresizingFlexibleHeight = 1 << 4, - UIViewAutoresizingFlexibleBottomMargin = 1 << 5, -}; typedef NSUInteger UIViewAutoresizing; +typedef enum { + UITableViewCellEditingStyleNone, + UITableViewCellEditingStyleDelete, + UITableViewCellEditingStyleInsert +} UITableViewCellEditingStyle; + +typedef enum { + UITableViewCellSeparatorStyleNone, + UITableViewCellSeparatorStyleSingleLine +} UITableViewCellSeparatorStyle; typedef enum { - UITransitionNone, - UITransitionPushFromRight, - UITransitionPushFromLeft, - UITransitionPushFromBottom, - UITransitionFade = 6, - UITransitionPushFromTop, + UITableViewRowAnimationFade, + UITableViewRowAnimationRight, + UITableViewRowAnimationLeft, + UITableViewRowAnimationTop, + UITableViewRowAnimationBottom, +} UITableViewRowAnimation; + +typedef enum { + UITextAlignmentLeft = 0, + UITextAlignmentCenter = 1, + UITextAlignmentRight = 2, +} UITextAlignment; + +typedef enum { + UITransitionNone = 0, + UITransitionPushFromRight = 1, + UITransitionPushFromLeft = 2, + UITransitionPushFromBottom = 3, + UITransitionFade = 6, + UITransitionPushFromTop = 7, } UITransition; typedef enum { @@ -117,6 +171,17 @@ typedef enum { UIViewAnimationCurveLinear, } UIViewAnimationCurve; +enum { + UIViewAutoresizingNone = 0, + UIViewAutoresizingFlexibleLeftMargin = 1 << 0, + UIViewAutoresizingFlexibleWidth = 1 << 1, + UIViewAutoresizingFlexibleRightMargin = 1 << 2, + UIViewAutoresizingFlexibleTopMargin = 1 << 3, + UIViewAutoresizingFlexibleHeight = 1 << 4, + UIViewAutoresizingFlexibleBottomMargin = 1 << 5, +}; typedef NSUInteger UIViewAutoresizing; + +#import #import #import #import @@ -125,6 +190,7 @@ typedef enum { #import #import #import +#import #import #import #import @@ -178,6 +244,7 @@ typedef enum { #import #import +#import #import #import -- 2.45.2