IOMobileFramebuffer Headers

Discussion in 'iOS Development' started by Tyr0, May 14, 2009.

  1. Tyr0

    Tyr0 New Member

    Joined:
    Dec 17, 2007
    Messages:
    533
    Likes Received:
    6
    Device:
    iPhone 3GS (White)
    Okay, so i've been trying to compile veency for a while now, ive installed the toolchain on my linux distro, and now i need to get the IOMobileFramebuffer headers. I've tried class-dump AND class-dump-x on BOTH my Leopard laptop and on my iphone. Both of them keep giving me CDStructure.h, and its really starting to get annoying. If anybody could *point* me in the right direction, it would be very helpful.
    Thanks
    -Tyr0

    Please Register or Log in to view images

  2. gojohnnyboi

    gojohnnyboi Well-Known Member

    Joined:
    Jan 25, 2008
    Messages:
    3,339
    Likes Received:
    55
  3. Tyr0

    Tyr0 New Member

    Joined:
    Dec 17, 2007
    Messages:
    533
    Likes Received:
    6
    Device:
    iPhone 3GS (White)
    thxx, i did search google, but not iomobileframebuffer.h, i tried that, and first link. Thanks.
  4. pursuesunhk

    pursuesunhk New Member

    Joined:
    May 4, 2010
    Messages:
    5
    Likes Received:
    0
    did you succeed compile veency?

    Hello,did you succeed compile veency? How to compile?
    Now I compile the veency on the mac osx10.5.1 toolchain,
    when execute the make command,will occur more error.

    example:Tweak.mm:65: error: 'CoreSurfaceBufferRef'was not declared in this scope
    Tweak.mm:73:error CoreSurfaceAcceleratorRef'does not name a type
    Tweak.mm:144:expected initializer before '*'token
    etc.

    please help me ,Thanks!
  5. pursuesunhk

    pursuesunhk New Member

    Joined:
    May 4, 2010
    Messages:
    5
    Likes Received:
    0
  6. pursuesunhk

    pursuesunhk New Member

    Joined:
    May 4, 2010
    Messages:
    5
    Likes Received:
    0
    This head file No IOMobileFramebufferSwapSetLayer Difine

    In Tweak.mm of http://svn.saurik.com/repos/menes/trunk/veency/, the code :IOMobileFramebufferSwapSetLayer how to difine?

    Please see following code.


    MSHook(kern_return_t, IOMobileFramebufferSwapSetLayer,
    IOMobileFramebufferRef fb,
    int layer,
    CoreSurfaceBufferRef buffer,
    CGRect bounds,
    CGRect frame,
    int flags
    ) {
    if (_unlikely(width_ == 0 || height_ == 0)) {
    CGSize size;
    IOMobileFramebufferGetDisplaySize(fb, &size);

    width_ = size.width;
    height_ = size.height;

    NSThread *thread([NSThread alloc]);

    [thread
    initWithTarget:[VNCBridge class]
    selector

    Please Register or Log in to view images

    selector(performSetup

    Please Register or Log in to view images


    object:thread
    ];

    [thread start];
    } else if (_unlikely(clients_ != 0)) {
    if (buffer == NULL) {
    //CoreSurfaceBufferLock(buffer_, 3);
    memset(screen_->frameBuffer, 0, sizeof(rfbPixel) * width_ * height_);
    //CoreSurfaceBufferUnlock(buffer_);
    } else {
    //CoreSurfaceBufferLock(buffer_, 3);
    //CoreSurfaceBufferLock(buffer, 2);

    //rfbPixel *data(reinterpret_cast<rfbPixel *>(CoreSurfaceBufferGetBaseAddress(buffer)));

    /*rfbPixel corner(data[0]);
    data[0] = 0;
    data[0] = corner;*/

    CoreSurfaceAcceleratorTransferSurface(accelerator_, buffer, buffer_, options_);

    //CoreSurfaceBufferUnlock(buffer);
    //CoreSurfaceBufferUnlock(buffer_);
    }

    //CoreSurfaceBufferFlushProcessorCaches(buffer);
    rfbMarkRectAsModified(screen_, 0, 0, width_, height_);
    }

    return _IOMobileFramebufferSwapSetLayer(fb, layer, buffer, bounds, frame, flags);
    }

Share This Page