|
|
|
|
|
|
|
|
// respring function |
|
|
// respring function |
|
|
@interface FBSystemService : NSObject |
|
|
|
|
|
|
|
|
/*@interface FBSystemService : NSObject |
|
|
+(id)sharedInstance; |
|
|
+(id)sharedInstance; |
|
|
-(void)exitAndRelaunch:(bool)arg1; |
|
|
-(void)exitAndRelaunch:(bool)arg1; |
|
|
@end |
|
|
@end |
|
|
|
|
|
|
|
|
static void RespringDevice() { |
|
|
static void RespringDevice() { |
|
|
[[%c(FBSystemService) sharedInstance] exitAndRelaunch:YES]; |
|
|
[[%c(FBSystemService) sharedInstance] exitAndRelaunch:YES]; |
|
|
} |
|
|
|
|
|
|
|
|
}*/ |
|
|
|
|
|
|
|
|
// headers |
|
|
// headers |
|
|
@interface SBUILegibilityLabel : UIView |
|
|
@interface SBUILegibilityLabel : UIView |
|
|
|
|
|
|
|
|
CFNotificationCenterAddObserver(CFNotificationCenterGetDarwinNotifyCenter(), NULL, notificationCallback, (CFStringRef)nsNotificationString, NULL, CFNotificationSuspensionBehaviorCoalesce); |
|
|
CFNotificationCenterAddObserver(CFNotificationCenterGetDarwinNotifyCenter(), NULL, notificationCallback, (CFStringRef)nsNotificationString, NULL, CFNotificationSuspensionBehaviorCoalesce); |
|
|
|
|
|
|
|
|
// respring notification listener |
|
|
// respring notification listener |
|
|
CFNotificationCenterAddObserver(CFNotificationCenterGetDarwinNotifyCenter(), NULL, (CFNotificationCallback)RespringDevice, CFSTR("com.yaypixxo.cnon/respring"), NULL, CFNotificationSuspensionBehaviorDeliverImmediately); |
|
|
|
|
|
|
|
|
//CFNotificationCenterAddObserver(CFNotificationCenterGetDarwinNotifyCenter(), NULL, (CFNotificationCallback)RespringDevice, CFSTR("com.yaypixxo.cnon/respring"), NULL, CFNotificationSuspensionBehaviorDeliverImmediately); |
|
|
} |
|
|
} |