]> git.saurik.com Git - iphone-api.git/commitdiff
Adding IOMobileFrameBuffer, which I forgot.
authorJay Freeman (saurik) <saurik@saurik.com>
Sat, 27 Dec 2008 00:54:36 +0000 (00:54 +0000)
committerJay Freeman (saurik) <saurik@saurik.com>
Sat, 27 Dec 2008 00:54:36 +0000 (00:54 +0000)
IOMobileFramebuffer/IOMobileFramebuffer.h [new file with mode: 0644]

diff --git a/IOMobileFramebuffer/IOMobileFramebuffer.h b/IOMobileFramebuffer/IOMobileFramebuffer.h
new file mode 100644 (file)
index 0000000..2e0523d
--- /dev/null
@@ -0,0 +1,30 @@
+#ifndef IOMOBILEFRAMEBUFFER_H_
+#define IOMOBILEFRAMEBUFFER_H_
+
+#include <mach/mach_types.h>
+#include <IOKit/IOTypes.h>
+#include <CoreSurface/CoreSurface.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+typedef void *IOMobileFramebufferRef;
+
+kern_return_t IOMobileFramebufferSwapSetLayer(
+    IOMobileFramebufferRef fb,
+    int layer,
+    CoreSurfaceBufferRef buffer,
+    CGRect bounds,
+    CGRect frame,
+    int flags
+);
+
+kern_return_t IOMobileFramebufferGetLayerDefaultSurface(IOMobileFramebufferRef connect, int zero, CoreSurfaceBufferRef *surface);
+kern_return_t IOMobileFramebufferOpen(io_service_t service, task_port_t task, uint32_t type, IOMobileFramebufferRef *connect);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif//IOMOBILEFRAMEBUFFER_H_