]> git.saurik.com Git - iphone-api.git/blob - IOMobileFramebuffer/IOMobileFramebuffer.h
Adding PhotoLibrary.
[iphone-api.git] / IOMobileFramebuffer / IOMobileFramebuffer.h
1 #ifndef IOMOBILEFRAMEBUFFER_H_
2 #define IOMOBILEFRAMEBUFFER_H_
3
4 #include <mach/mach_types.h>
5 #include <IOKit/IOTypes.h>
6 #include <CoreSurface/CoreSurface.h>
7
8 #ifdef __cplusplus
9 extern "C" {
10 #endif
11
12 typedef void *IOMobileFramebufferRef;
13
14 kern_return_t IOMobileFramebufferSwapSetLayer(
15 IOMobileFramebufferRef fb,
16 int layer,
17 CoreSurfaceBufferRef buffer,
18 CGRect bounds,
19 CGRect frame,
20 int flags
21 );
22
23 kern_return_t IOMobileFramebufferGetLayerDefaultSurface(IOMobileFramebufferRef connect, int zero, CoreSurfaceBufferRef *surface);
24 kern_return_t IOMobileFramebufferOpen(io_service_t service, task_port_t task, uint32_t type, IOMobileFramebufferRef *connect);
25
26 #ifdef __cplusplus
27 }
28 #endif
29
30 #endif//IOMOBILEFRAMEBUFFER_H_