]> git.saurik.com Git - veency.git/commitdiff
Checkpointing old code.
authorJay Freeman (saurik) <saurik@saurik.com>
Sun, 12 Jul 2009 08:59:58 +0000 (08:59 +0000)
committerJay Freeman (saurik) <saurik@saurik.com>
Sun, 12 Jul 2009 08:59:58 +0000 (08:59 +0000)
Tweak.mm
control

index f1f7b83bc4e695e31339afe8e0ecc9c0fbc88d79..f405c4f2e57b255d105b0f7a06ee69879e22d131 100644 (file)
--- 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 b818cf5e5e3f94669a97d40a245d168982b2b634..2205a75c22ec2be13dcd1fe594fae65fcb1fbb26 100644 (file)
--- a/control
+++ b/control
@@ -5,7 +5,7 @@ Priority: optional
 Section: Networking
 Maintainer: Jay Freeman (saurik) <saurik@saurik.com>
 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