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:
@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 {
running_ = true;
rfbRunEventLoop(screen_, -1, true);
+ NSLog(@"rfbRunEventLoop().");
return NULL;
running_ = false;
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