static rfbClientPtr client_;
+static void VNCSetup();
+static void VNCEnabled();
+
@interface VNCBridge : NSObject {
}
[[$SBStatusBarController sharedStatusBarController] addStatusBarItem:@"Veency"];
}
++ (void) performSetup {
+ NSAutoreleasePool *pool([[NSAutoreleasePool alloc] init]);
+ VNCSetup();
+ VNCEnabled();
+ [pool release];
+}
+
@end
MSInstanceMessage2(void, VNCAlertItem, alertSheet,buttonClicked, id, sheet, int, button) {
CGRect frame,
int flags
) {
- if (_unlikely(screen_ == NULL)) {
+ if (_unlikely(width_ == 0 || height_ == 0)) {
CGSize size;
IOMobileFramebufferGetDisplaySize(fb, &size);
width_ = size.width;
height_ = size.height;
- NSAutoreleasePool *pool([[NSAutoreleasePool alloc] init]);
- VNCSetup();
- VNCEnabled();
- [pool release];
+ NSThread *thread([[[NSThread alloc]
+ initWithTarget:[VNCBridge class]
+ selector:@selector(performSetup)
+ object:nil
+ ] autorelease]);
+
+ [thread start];
} else if (_unlikely(clients_ != 0)) {
if (buffer == NULL) {
//CoreSurfaceBufferLock(buffer_, 3);
Section: Networking
Maintainer: Jay Freeman (saurik) <saurik@saurik.com>
Architecture: iphoneos-arm
-Version: 0.9.3189-1
+Version: 0.9.3192-1
Description: a VNC /server/ for the iPhone
Name: Veency
Depends: mobilesubstrate (>= 0.9.2966-1), libvncserver, com.saurik.iphone.ske, preferenceloader, jp.ashikase.mousesupport | firmware (<< 3.0)