]>
Commit | Line | Data |
---|---|---|
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 | void IOMobileFramebufferGetDisplaySize(IOMobileFramebufferRef connect, CGSize *size); | |
27 | void IOMobileFramebufferIsMainDisplay(IOMobileFramebufferRef connect, int *main); | |
28 | ||
29 | #ifdef __cplusplus | |
30 | } | |
31 | #endif | |
32 | ||
33 | #endif//IOMOBILEFRAMEBUFFER_H_ |