]> git.saurik.com Git - cycript.git/blob - Bridge.def
Finished JS Bison/Flex parser.
[cycript.git] / Bridge.def
1 C YES true
2 C NO false
3 C nil null
4
5 l objc
6
7 F class_addIvar B#*LC*
8 F class_addMethod B#:^?*
9 F class_addProtocol B#@
10 F class_conformsToProtocol B#@
11 F class_copyIvarList ^^{objc_ivar=}#^I
12 F class_copyMethodList ^^{objc_method=}#^I
13 F class_copyPropertyList ^^{objc_property=}#^I
14 F class_copyProtocolList ^@#^I
15 F class_createInstance @#L
16 F class_getClassMethod ^{objc_method=}#:
17 F class_getClassVariable ^{objc_ivar=}#*
18 F class_getInstanceMethod ^{objc_method=}#:
19 F class_getInstanceSize L#
20 F class_getInstanceVariable ^{objc_ivar=}#*
21 F class_getIvarLayout *#
22 F class_getMethodImplementation ^?#:
23 F class_getMethodImplementation_stret ^?#:
24 F class_getName *#
25 F class_getProperty ^{objc_property=}#*
26 F class_getSuperclass ##
27 F class_getVersion i#
28 F class_getWeakIvarLayout *#
29 F class_isMetaClass B#
30 F class_replaceMethod ^?#:^?*
31 F class_respondsToSelector B#:
32 F class_setIvarLayout v#*
33 F class_setSuperclass ###
34 F class_setVersion v#i
35 F class_setWeakIvarLayout v#*
36
37 F ivar_getName *^{objc_ivar=}
38 F ivar_getOffset i^{objc_ivar=}
39 F ivar_getTypeEncoding *^{objc_ivar=}
40
41 F method_copyArgumentType ^c^{objc_method=}I
42 F method_copyReturnType ^c^{objc_method=}
43 F method_exchangeImplementations v^{objc_method=}^{objc_method=}
44 F method_getArgumentType v^{objc_method=}I^cL
45 F method_getImplementation ^?^{objc_method=}
46 F method_getName :^{objc_method=}
47 F method_getNumberOfArguments I^{objc_method=}
48 F method_getReturnType v^{objc_method=}^cL
49 F method_getTypeEncoding *^{objc_method=}
50 F method_setImplementation ^?^{objc_method=}^?
51
52 F objc_allocateClassPair ##*L
53 F objc_copyProtocolList ^@^I
54 F objc_duplicateClass ##*L
55 F objc_getClass #*
56 F objc_getClassList i^#i
57 F objc_getFutureClass #*
58 F objc_getMetaClass @*
59 F objc_getProtocol @*
60 F objc_getRequiredClass @*
61 F objc_lookUpClass @*
62 F objc_registerClassPair v#
63 F objc_setFutureClass v#*
64
65 F object_copy @@L
66 F object_dispose @@
67 F object_getClass #@
68 F object_getClassName *@
69 F object_getIndexedIvars ^v@
70 F object_getInstanceVariable ^{objc_ivar=}@*^^v
71 F object_getIvar @@^{objc_ivar=}
72 F object_setClass #@#
73 F object_setInstanceVariable ^{objc_ivar=}@*^v
74 F object_setIvar v@^{objc_ivar=}@
75
76 F property_getAttributes *^{objc_property=}
77 F property_getName *^{objc_property=}
78
79 F protocol_conformsToProtocol B@@
80 F protocol_copyMethodDescriptionList ^{objc_method_description=:*}@BB^I
81 F protocol_copyPropertyList ^{objc_property=}@^I
82 F protocol_copyProtocolList ^@@^I
83 F protocol_getMethodDescription {objc_method_description=:*}@:BB
84 F protocol_getName *@
85 F protocol_getProperty ^{objc_property=}@*BB
86 F protocol_isEqual B@@
87
88 F sel_getName *:
89 F sel_getUid :*
90 F sel_isEqual B::
91 F sel_registerName :*
92
93 f UIKit
94
95 F UIApplicationUseLegacyEvents vB
96
97 F UIAccessibilityPostNotification vI@
98 F UIApplicationMain ii^^c@@
99 F UIGraphicsEndImageContext v
100 F UIGraphicsGetCurrentContext @
101 F UIGraphicsGetImageFromCurrentImageContext @
102 F UIGraphicsPopContext v
103 F UIGraphicsPushContext v@
104 F UIImageJPEGRepresentation @@
105 F UIImagePNGRepresentation @@
106 F UIImageWriteToSavedPhotosAlbum v@@:^v
107
108 F UIKeyboardDisableAutomaticAppearance v
109 F UIKeyboardEnableAutomaticAppearance v
110 F UIKeyboardInputModeUsesKBStar B@
111
112 F _UIImageWithName @@
113
114 F UIFormattedPhoneNumberFromString @@
115 F UIUnformattedPhoneNumberFromString @@
116
117 V UIApp @
118
119 V kUIButtonBarButtonAction @
120 V kUIButtonBarButtonInfo @
121 V kUIButtonBarButtonInfoOffset @
122 V kUIButtonBarButtonSelectedInfo @
123 V kUIButtonBarButtonSizeToFit @
124 V kUIButtonBarButtonStyle @
125 V kUIButtonBarButtonTag @
126 V kUIButtonBarButtonTarget @
127 V kUIButtonBarButtonTitle @
128 V kUIButtonBarButtonTitleVerticalHeight @
129 V kUIButtonBarButtonTitleWidth @
130 V kUIButtonBarButtonType @
131
132 V UIKeyboardAnimationCurveUserInfoKey @
133 V UIKeyboardAnimationDurationUserInfoKey @
134 V UIKeyboardBoundsUserInfoKey @
135 V UIKeyboardCenterBeginUserInfoKey @
136 V UIKeyboardCenterEndUserInfoKey @
137 V UIKeyboardRequiresInternationalKey @
138
139 V UIKeyboardCandidateCorrectionDidChangeNotification @
140 V UIKeyboardCurrentInputModeDidChangeNotification @
141 V UIKeyboardDefaultsDidChangeNotification @
142 V UIKeyboardDidHideNotification @
143 V UIKeyboardDidShowNotification @
144 V UIKeyboardEmptyDelegateNotification @
145 V UIKeyboardWillHideNotification @
146 V UIKeyboardWillShowNotification @
147
148 V UIWebViewDidReceiveMessageNotification @
149 V UIWebViewDidClearMessagesNotification @
150 V UIWebViewGrowsAndShrinksToFitHeight f
151 V UIWebViewGrowsAndShrinksToFitWidth f
152 V UIWebViewScalesToFitScale f
153
154 f AddressBook
155
156 F ABAddressBookAddRecord B@@^@
157 F ABAddressBookCopyArrayOfAllGroups @@
158 F ABAddressBookCopyArrayOfAllPeople @@
159 F ABAddressBookCopyLocalizedLabel @@
160 F ABAddressBookCreate @
161 F ABAddressBookGetGroupCount l@
162 F ABAddressBookGetPersonCount l@
163 F ABAddressBookHasUnsavedChanges B@
164 F ABAddressBookRegisterExternalChangeCallback v@^?^v
165 F ABAddressBookRemoveRecord B@@^@
166 F ABAddressBookRevert v@
167 F ABAddressBookSave B@^@
168 F ABAddressBookUnregisterExternalChangeCallback v@^?^v
169
170 V ABAddressBookErrorDomain @
171 C kABOperationNotPermittedByStoreError 0
172
173 F ABMultiValueCopyArrayOfAllValues @@
174 F ABMultiValueCopyLabelAtIndex @@l
175 F ABMultiValueCopyValueAtIndex @@l
176 F ABMultiValueGetCount l@
177 F ABMultiValueGetFirstIndexOfValue l@@
178 F ABMultiValueGetIdentifierAtIndex i@l
179 F ABMultiValueGetIndexForIdentifier l@i
180 F ABMultiValueGetPropertyType S@
181
182 C kABMultiValueInvalidIdentifier -1
183
184 F ABMultiValueAddValueAndLabel @@@^i
185 F ABMultiValueCreateMutable @S
186 F ABMultiValueCreateMutableCopy @@
187 F ABMultiValueInsertValueAndLabelAtIndex B@@@l^i
188 F ABMultiValueRemoveValueAndLabelAtIndex B@l
189 F ABMultiValueReplaceLabelAtIndex B@@l
190 F ABMultiValueReplaceValueAtIndex B@@l
191
192 F ABRecordCopyCompositeName @@
193 F ABRecordCopyValue @@i
194 F ABRecordGetRecordID i@
195 F ABRecordGetRecordType I@
196 F ABRecordRemoveValue B@i^@
197 F ABRecordSetValue B@i@^@
198
199 C kABPersonType 0
200 C kABGroupType 1
201
202 # this was (1<<8)
203 C kABMultiValueMask 0x100
204
205 C kABInvalidPropertyType 0x0
206 C kABStringPropertyType 0x1
207 C kABIntegerPropertyType 0x2
208 C kABRealPropertyType 0x3
209 C kABDateTimePropertyType 0x4
210 C kABDictionaryPropertyType 0x5
211 C kABMultiStringPropertyType 0x101
212 C kABMultiIntegerPropertyType 0x102
213 C kABMultiRealPropertyType 0x103
214 C kABMultiDateTimePropertyType 0x104
215 C kABMultiDictionaryPropertyType 0x105
216
217 C kABRecordInvalidID -1
218 C kABPropertyInvalidID -1
219
220 F ABAddressBookGetGroupWithRecordID @@i
221 F ABGroupAddMember B@@^@
222 F ABGroupCopyArrayOfAllMembers @@
223 F ABGroupCopyArrayOfAllMembersWithSortOrdering @@I
224 F ABGroupCreate @
225 F ABGroupRemoveMember B@@^@
226
227 V kABGroupNameProperty i
228
229 F ABAddressBookCopyPeopleWithName @@@
230 F ABAddressBookGetPersonWithRecordID @@i
231 F ABPersonComparePeopleByName i@@I
232 F ABPersonCopyImageData @@
233 F ABPersonCopyLocalizedPropertyName @i
234 F ABPersonCreate @
235 F ABPersonGetCompositeNameFormat I
236 F ABPersonGetSortOrdering I
237 F ABPersonGetTypeOfProperty SI
238 F ABPersonHasImageData B@
239 F ABPersonRemoveImageData B@^@
240 F ABPersonSetImageData B@@^@
241
242 C kABPersonSortByFirstName 0
243 C kABPersonSortByLastName 1
244
245 C kABPersonCompositeNameFormatFirstNameFirst 0
246 C kABPersonCompositeNameFormatLastNameFirst 1
247
248 V kABPersonFirstNameProperty i
249 V kABPersonLastNameProperty i
250 V kABPersonMiddleNameProperty i
251 V kABPersonPrefixProperty i
252 V kABPersonSuffixProperty i
253 V kABPersonNicknameProperty i
254 V kABPersonFirstNamePhoneticProperty i
255 V kABPersonLastNamePhoneticProperty i
256 V kABPersonMiddleNamePhoneticProperty i
257 V kABPersonOrganizationProperty i
258 V kABPersonJobTitleProperty i
259 V kABPersonDepartmentProperty i
260 V kABPersonEmailProperty i
261 V kABPersonBirthdayProperty i
262 V kABPersonNoteProperty i
263 V kABPersonCreationDateProperty i
264 V kABPersonModificationDateProperty i
265
266 V kABPersonAddressProperty i
267 V kABPersonAddressStreetKey @
268 V kABPersonAddressCityKey @
269 V kABPersonAddressStateKey @
270 V kABPersonAddressZIPKey @
271 V kABPersonAddressCountryKey @
272 V kABPersonAddressCountryCodeKey @
273
274 V kABPersonDateProperty i
275 V kABPersonAnniversaryLabel @
276
277 V kABPersonKindProperty i
278 V kABPersonKindPerson @
279 V kABPersonKindOrganization @
280
281 V kABPersonPhoneProperty i
282 V kABPersonPhoneMobileLabel @
283 V kABPersonPhoneIPhoneLabel @
284 V kABPersonPhoneMainLabel @
285 V kABPersonPhoneHomeFAXLabel @
286 V kABPersonPhoneWorkFAXLabel @
287 V kABPersonPhonePagerLabel @
288
289 V kABPersonInstantMessageProperty i
290 V kABPersonInstantMessageServiceKey @
291 V kABPersonInstantMessageServiceYahoo @
292 V kABPersonInstantMessageServiceJabber @
293 V kABPersonInstantMessageServiceMSN @
294 V kABPersonInstantMessageServiceICQ @
295 V kABPersonInstantMessageServiceAIM @
296 V kABPersonInstantMessageUsernameKey @
297
298 V kABPersonURLProperty i
299 V kABPersonHomePageLabel @
300
301 V kABPersonRelatedNamesProperty i
302 V kABPersonMotherLabel @
303 V kABPersonFatherLabel @
304 V kABPersonParentLabel @
305 V kABPersonSisterLabel @
306 V kABPersonBrotherLabel @
307 V kABPersonChildLabel @
308 V kABPersonFriendLabel @
309 V kABPersonSpouseLabel @
310 V kABPersonPartnerLabel @
311 V kABPersonManagerLabel @
312 V kABPersonAssistantLabel @
313
314 V kABWorkLabel @
315 V kABHomeLabel @
316 V kABOtherLabel @
317
318 f CoreLocation
319
320 V kCLLocationAccuracyBest d
321 V kCLLocationAccuracyNearestTenMeters d
322 V kCLLocationAccuracyHundredMeters d
323 V kCLLocationAccuracyKilometer d
324 V kCLLocationAccuracyThreeKilometers d
325
326 V kCLDistanceFilterNone d
327 V kCLHeadingFilterNone d
328
329 C kCLErrorLocationUnknown 0
330 C kCLErrorDenied 1
331 C kCLErrorNetwork 2
332 C kCLErrorHeadingFailure 3
333
334 V kCLErrorDomain @
335
336 f CoreData
337
338 C NSUndefinedAttributeType 0
339 C NSInteger16AttributeType 100
340 C NSInteger32AttributeType 200
341 C NSInteger64AttributeType 300
342 C NSDecimalAttributeType 400
343 C NSDoubleAttributeType 500
344 C NSFloatAttributeType 600
345 C NSStringAttributeType 700
346 C NSBooleanAttributeType 800
347 C NSDateAttributeType 900
348 C NSBinaryDataAttributeType 1000
349 C NSTransformableAttributeType 1800
350 C NSObjectIDAttributeType 2000
351
352 C NSUndefinedEntityMappingType 0x00
353 C NSCustomEntityMappingType 0x01
354 C NSAddEntityMappingType 0x02
355 C NSRemoveEntityMappingType 0x03
356 C NSCopyEntityMappingType 0x04
357 C NSTransformEntityMappingType 0x05
358
359 V NSMigrationManagerKey @
360 V NSMigrationSourceObjectKey @
361 V NSMigrationDestinationObjectKey @
362 V NSMigrationEntityMappingKey @
363 V NSMigrationPropertyMappingKey @
364 V NSMigrationPropertyMappingKey @
365
366 C NSManagedObjectResultType 0x00
367 C NSManagedObjectIDResultType 0x01
368 C NSDictionaryResultType 0x02
369
370 C NSFetchRequestExpressionType 50
371
372 C NSSnapshotEventUndoInsertion 1<<1
373 C NSSnapshotEventUndoDeletion 1<<2
374 C NSSnapshotEventUndoUpdate 1<<3
375 C NSSnapshotEventRollback 1<<4
376 C NSSnapshotEventRefresh 1<<5
377 C NSSnapshotEventMergePolicy 1<<6
378
379 V NSInsertedObjectsKey @
380 V NSUpdatedObjectsKey @
381 V NSDeletedObjectsKey @
382 V NSRefreshedObjectsKey @
383 V NSInvalidatedObjectsKey @
384 V NSInvalidatedAllObjectsKey @
385
386 V NSErrorMergePolicy @
387 V NSMergeByPropertyStoreTrumpMergePolicy @
388 V NSMergeByPropertyObjectTrumpMergePolicy @
389 V NSOverwriteMergePolicy @
390 V NSRollbackMergePolicy @
391
392 V NSSQLiteStoreType @
393 V NSBinaryStoreType @
394 V NSInMemoryStoreType @
395
396 V NSStoreTypeKey @
397 V NSStoreUUIDKey @
398
399 V NSAddedPersistentStoresKey @
400 V NSRemovedPersistentStoresKey @
401 V NSUUIDChangedPersistentStoresKey @
402
403 V NSReadOnlyPersistentStoreOption @
404 V NSPersistentStoreTimeoutOption @
405 V NSSQLitePragmasOption @
406 V NSSQLiteAnalyzeOption @
407 V NSSQLiteManualVacuumOption @
408
409 V NSIgnorePersistentStoreVersioningOption @
410 V NSMigratePersistentStoresAutomaticallyOption @
411 V NSInferMappingModelAutomaticallyOption @
412
413 V NSStoreModelVersionHashesKey @
414 V NSStoreModelVersionIdentifiersKey @
415 V NSPersistentStoreOSCompatibility @
416
417 C NSNoActionDeleteRule 0
418 C NSNullifyDeleteRule 1
419 C NSCascadeDeleteRule 2
420 C NSDenyDeleteRule 3
421
422 C NSFetchedResultsChangeInsert 1
423 C NSFetchedResultsChangeDelete 2
424 C NSFetchedResultsChangeMove 3
425 C NSFetchedResultsChangeUpdate 4
426
427 V NSDetailedErrorsKey @
428 V NSValidationObjectErrorKey @
429 V NSValidationKeyErrorKey @
430 V NSValidationPredicateErrorKey @
431 V NSValidationValueErrorKey @
432 V NSAffectedStoresErrorKey @
433 V NSAffectedObjectsErrorKey @
434
435 V NSSQLiteErrorDomain @
436
437 C NSManagedObjectValidationError 1550
438 C NSValidationMultipleErrorsError 1560
439 C NSValidationMissingMandatoryPropertyError 1570
440 C NSValidationRelationshipLacksMinimumCountError 1580
441 C NSValidationRelationshipExceedsMaximumCountError 1590
442 C NSValidationRelationshipDeniedDeleteError 1600
443 C NSValidationNumberTooLargeError 1610
444 C NSValidationNumberTooSmallError 1620
445 C NSValidationDateTooLateError 1630
446 C NSValidationDateTooSoonError 1640
447 C NSValidationInvalidDateError 1650
448 C NSValidationStringTooLongError 1660
449 C NSValidationStringTooShortError 1670
450 C NSValidationStringPatternMatchingError 1680
451
452 C NSManagedObjectContextLockingError 132000
453 C NSPersistentStoreCoordinatorLockingError 132010
454 C NSManagedObjectReferentialIntegrityError 133000
455 C NSManagedObjectExternalRelationshipError 133010
456 C NSManagedObjectMergeError 133020
457
458 C NSPersistentStoreInvalidTypeError 134000
459 C NSPersistentStoreTypeMismatchError 134010
460 C NSPersistentStoreIncompatibleSchemaError 134020
461 C NSPersistentStoreSaveError 134030
462 C NSPersistentStoreIncompleteSaveError 134040
463 C NSPersistentStoreOperationError 134070
464 C NSPersistentStoreOpenError 134080
465 C NSPersistentStoreTimeoutError 134090
466 C NSPersistentStoreIncompatibleVersionHashError 134100
467
468 C NSMigrationError 134110
469 C NSMigrationCancelledError 134120
470 C NSMigrationMissingSourceModelError 134130
471 C NSMigrationMissingMappingModelError 134140
472 C NSMigrationManagerSourceStoreError 134150
473 C NSMigrationManagerDestinationStoreError 134160
474 C NSEntityMigrationPolicyError 134170
475 C NSInferredMappingModelError 134190
476 C NSExternalRecordImportError 134200
477
478 C NSCoreDataError 134060
479 C NSSQLiteError 134180
480
481 V NSCoreDataVersionNumber d
482
483 C NSCoreDataVersionNumber10_4 46.0
484 C NSCoreDataVersionNumber10_4_3 77.0
485 C NSCoreDataVersionNumber10_5 185.0
486 C NSCoreDataVersionNumber10_5_3 186.0
487
488 f MapKit
489
490 C MKMapTypeStandard 0
491 C MKMapTypeSatellite 1
492 C MKMapTypeHybrid 2
493
494 V MKErrorDomain @
495
496 C MKErrorUnknown 1
497 C MKErrorServerFailure 2
498 C MKErrorLoadingThrottled 3
499 C MKErrorPlacemarkNotFound 4
500
501 C MKPinAnnotationColorRed 0
502 C MKPinAnnotationColorGreen 1
503 C MKPinAnnotationColorPurple 2
504
505 # MKCoordinateRegionMake
506 # MKCoordinateRegionMakeWithDistance
507 # MKCoordinateSpanMake