aboutsummaryrefslogtreecommitdiffstats
path: root/android/display-core.h
diff options
context:
space:
mode:
authorVladimir Chtchetkine <vchtchetkine@google.com>2010-12-20 08:28:03 -0800
committerVladimir Chtchetkine <vchtchetkine@google.com>2010-12-20 08:28:03 -0800
commite95660aadc669784406d5f5a867988b8ecc2ed0d (patch)
tree480b3feaa14f6d392ceed62dba9cd0334dcba48d /android/display-core.h
parentaec5741a217d98db6007219c4e28dc24d3ecdb03 (diff)
downloadexternal_qemu-e95660aadc669784406d5f5a867988b8ecc2ed0d.zip
external_qemu-e95660aadc669784406d5f5a867988b8ecc2ed0d.tar.gz
external_qemu-e95660aadc669784406d5f5a867988b8ecc2ed0d.tar.bz2
Resubmit framebuffer service implementation
Change-Id: I184e27a1e8d88835bc9f0502eccfa3f64a7aaf9e
Diffstat (limited to 'android/display-core.h')
-rw-r--r--android/display-core.h22
1 files changed, 20 insertions, 2 deletions
diff --git a/android/display-core.h b/android/display-core.h
index 9a44f9a..02301c5 100644
--- a/android/display-core.h
+++ b/android/display-core.h
@@ -18,8 +18,9 @@
#ifndef _ANDROID_DISPLAY_CORE_H
#define _ANDROID_DISPLAY_CORE_H
-#include "android/display.h"
#include "framebuffer.h"
+#include "android/display.h"
+#include "android/framebuffer-core.h"
/* Descriptor for a core display instance */
typedef struct CoreDisplay CoreDisplay;
@@ -29,6 +30,23 @@ typedef struct CoreDisplay CoreDisplay;
* Param:
* ds - Display state to use for the core display.
*/
-extern void core_display_init(DisplayState* ds);
+extern void coredisplay_init(DisplayState* ds);
+
+/*
+ * Attaches framebuffer service to the core display.
+ * Param:
+ * core_fb - Framebuffer service descriptor to attach.
+ * Return:
+ * 0 on success, or -1 on failure.
+ */
+extern int coredisplay_attach_fb_service(CoreFramebuffer* core_fb);
+
+/*
+ * Detaches framebuffer service previously attached to the core display.
+ * Return:
+ * Framebuffer service descriptor attached to the core display, or NULL if
+ * the core display didn't have framebuffer service attached to it.
+ */
+extern CoreFramebuffer* coredisplay_detach_fb_service(void);
#endif /* _ANDROID_DISPLAY_CORE_H */