From: Jay Freeman (saurik) Date: Sun, 12 Jul 2009 08:59:58 +0000 (+0000) Subject: Checkpointing old code. X-Git-Tag: v0.9.2972~3 X-Git-Url: https://git.saurik.com/veency.git/commitdiff_plain/6086b875a3364ba03e7c4e4fe8833b4ed554af49 Checkpointing old code. --- diff --git a/Tweak.mm b/Tweak.mm index f1f7b83..f405c4f 100644 --- a/Tweak.mm +++ b/Tweak.mm @@ -85,14 +85,18 @@ static NSCondition *condition_; static rfbClientPtr client_; +static void VNCAccept() { + action_ = RFB_CLIENT_ACCEPT; + ++clients_; + [[$SBStatusBarController sharedStatusBarController] addStatusBarItem:@"Veency"]; +} + void VNCAlertItem$alertSheet$buttonClicked$(id self, SEL sel, id sheet, int button) { [condition_ lock]; switch (button) { case 1: - action_ = RFB_CLIENT_ACCEPT; - ++clients_; - [[$SBStatusBarController sharedStatusBarController] addStatusBarItem:@"Veency"]; + VNCAccept(); break; case 2: @@ -129,8 +133,15 @@ void VNCAlertItem$performUnlockAction(id self, SEL sel) { @implementation VNCBridge + (void) askForConnection { - id item = [[[$VNCAlertItem alloc] init] autorelease]; - [[$SBAlertItemsController sharedInstance] activateAlertItem:item]; + if (false) { + [condition_ lock]; + VNCAccept(); + [condition_ signal]; + [condition_ unlock]; + } else { + id item = [[[$VNCAlertItem alloc] init] autorelease]; + [[$SBAlertItemsController sharedInstance] activateAlertItem:item]; + } } + (void) removeStatusBarItem { @@ -354,6 +365,7 @@ static void *VNCServer(IOMobileFramebufferRef fb) { running_ = true; rfbRunEventLoop(screen_, -1, true); + NSLog(@"rfbRunEventLoop()."); return NULL; running_ = false; diff --git a/control b/control index b818cf5..2205a75 100644 --- a/control +++ b/control @@ -5,7 +5,7 @@ Priority: optional Section: Networking Maintainer: Jay Freeman (saurik) Architecture: iphoneos-arm -Version: 0.9.2591-1 +Version: 0.9.2765-1 Description: a VNC /server/ for the iPhone Name: Veency Depends: mobilesubstrate (>= 0.9.2587-1), libvncserver