aboutsummaryrefslogtreecommitdiffstats
path: root/android/display-core.h
diff options
context:
space:
mode:
authorVladimir Chtchetkine <vchtchetkine@google.com>2010-12-14 09:24:02 -0800
committerVladimir Chtchetkine <vchtchetkine@google.com>2010-12-14 09:24:02 -0800
commit72d83df9865cf8f5393a41fc3f6e283ab6aaa81b (patch)
treec54836b9d2bfd7eb97b1dd4970ae6c50983b1e7f /android/display-core.h
parent5c01a94e9233796c7e8c370d348c945390a36068 (diff)
downloadexternal_qemu-72d83df9865cf8f5393a41fc3f6e283ab6aaa81b.zip
external_qemu-72d83df9865cf8f5393a41fc3f6e283ab6aaa81b.tar.gz
external_qemu-72d83df9865cf8f5393a41fc3f6e283ab6aaa81b.tar.bz2
Implement core display deriving it from android display
Core display is a framebuffer client that receives framebuffer updates and dispatches them to the UI attached to the core. Change-Id: Iff1e0609cbe66240031e3670934a6796a9ae3b15
Diffstat (limited to 'android/display-core.h')
-rw-r--r--android/display-core.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/android/display-core.h b/android/display-core.h
new file mode 100644
index 0000000..9a44f9a
--- /dev/null
+++ b/android/display-core.h
@@ -0,0 +1,34 @@
+/* Copyright (C) 2010 The Android Open Source Project
+**
+** This software is licensed under the terms of the GNU General Public
+** License version 2, as published by the Free Software Foundation, and
+** may be copied, distributed, and modified under those terms.
+**
+** This program is distributed in the hope that it will be useful,
+** but WITHOUT ANY WARRANTY; without even the implied warranty of
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+** GNU General Public License for more details.
+*/
+
+/*
+ * Contains extension to android display (see android/display.h|c) that is used
+ * by the core to communicate display changes to the attached UI
+ */
+
+#ifndef _ANDROID_DISPLAY_CORE_H
+#define _ANDROID_DISPLAY_CORE_H
+
+#include "android/display.h"
+#include "framebuffer.h"
+
+/* Descriptor for a core display instance */
+typedef struct CoreDisplay CoreDisplay;
+
+/*
+ * Initializes one and only one instance of a core display.
+ * Param:
+ * ds - Display state to use for the core display.
+ */
+extern void core_display_init(DisplayState* ds);
+
+#endif /* _ANDROID_DISPLAY_CORE_H */