Skip to content

Commit b977887

Browse files
committedJun 8, 2010
Further fixes for compilability.
1 parent ed098ad commit b977887

13 files changed

+76
-57
lines changed
 

‎PhotoLibrary/CLLocationManagerDelegate.h

+1-9
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,4 @@
77

88
#import "NSObject.h"
99

10-
11-
@protocol CLLocationManagerDelegate <NSObject>
12-
@optional
13-
-(void)locationManager:(id)manager didUpdateToLocation:(id)location fromLocation:(id)location3;
14-
-(void)locationManager:(id)manager didUpdateHeading:(id)heading;
15-
-(BOOL)locationManagerShouldDisplayHeadingCalibration:(id)locationManager;
16-
-(void)locationManager:(id)manager didFailWithError:(id)error;
17-
@end
18-
10+
#import <CoreLocation/CLLocationManagerDelegate.h>

‎PhotoLibrary/MLPhotoBakedThumbnailsDelegate.h

+1-7
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,4 @@
55
* Source: /System/Library/PrivateFrameworks/PhotoLibrary.framework/PhotoLibrary
66
*/
77

8-
#import "PhotoLibrary-Structs.h"
9-
10-
11-
@protocol MLPhotoBakedThumbnailsDelegate
12-
-(void)decorateThumbnail:(id)thumbnail inContext:(CGContextRef)context;
13-
@end
14-
8+
#import <MusicLibrary/MLPhotoBakedThumbnailsDelegate.h>

‎PhotoLibrary/PLDataArrayInputStream.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*/
77

88
#import "PhotoLibrary-Structs.h"
9-
#import <Foundation/NSInputStream.h>
9+
#import <Foundation/NSStream.h>
1010

1111
@class NSArray, NSMutableData;
1212
@protocol PLDataArrayInputStreamProgressDelegate;

‎PhotoLibrary/PLImageView.h

+52
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,57 @@
55
* Source: /System/Library/PrivateFrameworks/PhotoLibrary.framework/PhotoLibrary
66
*/
77

8+
#import <Availability2.h>
9+
10+
#if __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_3_2
11+
12+
// me being lazy here. no diff.
13+
14+
#import <UIKit/UIImageView.h>
15+
@class PLVideoView, UILabel, NSString;
16+
17+
@interface PLImageView : UIImageView {
18+
NSString* _name;
19+
UIView* _borderView;
20+
PLVideoView* _videoView;
21+
UILabel* _textBadge;
22+
unsigned _shadowEnabled : 1;
23+
unsigned _suppressShadowDrawing : 1;
24+
unsigned _borderIsVisible : 1;
25+
float _aspectRatio;
26+
double _lastBorderAlphaTime;
27+
double _lastShadowAlphaTime;
28+
float _transitionProgress;
29+
BOOL _edgeAntialiasingEnabled;
30+
}
31+
@property(copy, nonatomic) NSString* name;
32+
@property(assign, nonatomic) float transitionProgress;
33+
@property(retain, nonatomic) PLVideoView* videoView;
34+
@property(assign, nonatomic) float borderAlpha;
35+
@property(assign, nonatomic, getter=isBorderVisible) BOOL borderVisible;
36+
@property(assign, nonatomic, getter=isDimmed) BOOL dimmed;
37+
@property(assign, nonatomic, getter=isShadowEnabled) BOOL shadowEnabled;
38+
+(void)initialize;
39+
+(BOOL)shouldDrawShadows;
40+
+(id)textBadgeForString:(id)string photoSize:(CGSize)size;
41+
-(id)textBadgeString;
42+
-(void)setTextBadgeString:(id)string;
43+
-(id)initWithFrame:(CGRect)frame;
44+
-(void)dealloc;
45+
-(CGSize)sizeThatFits:(CGSize)fits allowRounding:(BOOL)rounding;
46+
-(CGSize)sizeThatFits:(CGSize)fits;
47+
-(void)renderSnapshotInContext:(CGContextRef)context;
48+
-(void)layoutSubviews;
49+
-(void)_updateShadowPath;
50+
-(void)setImage:(id)image;
51+
-(void)parentDidLayout;
52+
-(void)setBorderAlpha:(float)alpha forced:(BOOL)forced;
53+
-(void)setBorderWidthScale:(float)scale heightScale:(float)scale2;
54+
-(void)setEdgeAntialiasingEnabled:(BOOL)enabled;
55+
@end
56+
57+
#else
58+
859
#import "PhotoLibrary-Structs.h"
960
#import <UIKit/UITiledView.h>
1061
#import "PLItemView.h"
@@ -92,3 +143,4 @@
92143
-(void)zoomToWindowPoint:(CGPoint)windowPoint scale:(float)scale duration:(float)duration constrainScrollPoint:(BOOL)point event:(GSEventRef)event;
93144
@end
94145

146+
#endif

‎PhotoLibrary/PLImageViewTile.h

+6
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
* Source: /System/Library/PrivateFrameworks/PhotoLibrary.framework/PhotoLibrary
66
*/
77

8+
#import <Availability2.h>
9+
10+
#if __IPHONE_OS_VERSION_MAX_ALLOWED < __IPHONE_3_2
11+
812
#import "PhotoLibrary-Structs.h"
913
#import <UIKit/UITile.h>
1014

@@ -17,3 +21,5 @@
1721
-(void)setFrame:(CGRect)frame;
1822
@end
1923

24+
#endif
25+

‎PhotoLibrary/PLTVOutImageTileView.h

+5
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
* Source: /System/Library/PrivateFrameworks/PhotoLibrary.framework/PhotoLibrary
66
*/
77

8+
#import <Availability2.h>
9+
10+
#if __IPHONE_OS_VERSION_MAX_ALLOWED < __IPHONE_3_2
11+
812
#import "PhotoLibrary-Structs.h"
913
#import "PLImageTileView.h"
1014

@@ -17,3 +21,4 @@
1721
// inherited: -(CGSize)imageSize;
1822
@end
1923

24+
#endif

‎PhotoLibrary/UIImagePickerControllerDelegate.h

+1-10
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,4 @@
55
* Source: /System/Library/PrivateFrameworks/PhotoLibrary.framework/PhotoLibrary
66
*/
77

8-
#import "NSObject.h"
9-
10-
11-
@protocol UIImagePickerControllerDelegate <NSObject>
12-
@optional
13-
-(void)imagePickerController:(id)controller didFinishPickingImage:(id)image editingInfo:(id)info;
14-
-(void)imagePickerController:(id)controller didFinishPickingMediaWithInfo:(id)info;
15-
-(void)imagePickerControllerDidCancel:(id)imagePickerController;
16-
@end
17-
8+
#import <UIKit/UIImagePickerController.h>

‎Preferences/PSTableCell.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*/
77

88
#import "Preferences-Structs.h"
9-
#import "PSTableCell.h"
9+
#import "PSSpecifier.h"
1010
#import <UIKit/UIPreferencesTableCell.h>
1111

1212

‎SpringBoard/APSConnectionDelegate.h

+1-7
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,5 @@
55
* Source: (null)
66
*/
77

8-
#import "NSObject.h"
9-
10-
11-
@protocol APSConnectionDelegate <NSObject>
12-
-(void)connection:(id)connection didReceivePublicToken:(id)token;
13-
-(void)connection:(id)connection didReceiveMessageForTopic:(id)topic userInfo:(id)info;
14-
@end
8+
#import <Message/APSConnectionDelegate.h>
159

‎SpringBoard/SpringBoard-Structs.h

+1-11
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
#import <AppSupport/AppSupport.h>
1313
#import <ChatKit/ChatKit.h>
1414
#import <QuartzCore/QuartzCore2.h>
15+
#import <DataAccess/DataAccess.h>
1516

1617
typedef struct __CTCall* CTCallRef;
1718

@@ -41,21 +42,10 @@ typedef struct {
4142
long long voicemailID;
4243
} XXStruct_EX3dgA;
4344

44-
typedef struct {
45-
int _field1;
46-
BOOL _field2;
47-
BOOL _field3;
48-
BOOL _field4;
49-
BOOL _field5;
50-
double _field6;
51-
} XXStruct_fhKmAA;
52-
5345
typedef struct CalEventExpirationMonitor CalEventExpirationMonitor;
5446

5547
typedef struct CalAlarmEngine CalAlarmEngine;
5648

57-
typedef struct CalDatabase CalDatabase;
58-
5949
typedef struct {
6050
double _field1;
6151
double _field2;

‎SpringBoardServices/SpringBoardServices.h

+1-3
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,7 @@ extern "C" {
7373
void SBReloadApplication(mach_port_t port) __OSX_AVAILABLE_STARTING(__MAC_NA, __IPHONE_3_0);
7474
*/
7575

76-
77-
#endif
78-
76+
7977
#if __cplusplus
8078
}
8179
#endif

‎TelephonyUI/TelephonyUI-Structs.h

+1-6
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,6 @@
66
*/
77

88
#import <GraphicsServices/GraphicsServices.h>
9-
10-
typedef struct {
11-
CGRect _field1;
12-
CGRect _field2;
13-
CGRect _field3;
14-
} XXStruct_SIyEID;
9+
#import <PhotoLibrary/PhotoLibrary.h>
1510

1611

‎test-compiler.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#
1919

2020
from os import listdir, fdopen, system, remove, close
21-
from os.path import isdir
21+
from os.path import isdir, exists, join
2222
from subprocess import Popen, PIPE, STDOUT
2323
import sys
2424

@@ -32,7 +32,9 @@
3232
content = []
3333
for dirname in listdir('.'):
3434
if dirname[0].isupper() and isdir(dirname):
35-
content.append('#import <{0}/{0}.h>'.format(dirname))
35+
mainname = join(dirname, dirname + '.h')
36+
if exists(mainname):
37+
content.append('#import <{0}>'.format(mainname))
3638
elif dirname[-2:] == '.h':
3739
content.append('#import <{0}>'.format(dirname))
3840
content_string = "\n".join(content).encode()

0 commit comments

Comments
 (0)
Please sign in to comment.