summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@bitplanet.net>2010-11-16 07:54:52 -0500
committerKristian Høgsberg <krh@bitplanet.net>2012-03-27 09:31:54 -0400
commit39aa291a00bfcb440abc78b813b8674c009b91c4 (patch)
tree843bb4452582df04003b9009aaf1e1b40bdcbe4a
parentc8936a7044192ef20a168b150986a62818329df2 (diff)
Add missing hosted.h
-rw-r--r--hw/xfree86/hosted/hosted.h61
1 files changed, 61 insertions, 0 deletions
diff --git a/hw/xfree86/hosted/hosted.h b/hw/xfree86/hosted/hosted.h
new file mode 100644
index 000000000..f53bd8f8e
--- /dev/null
+++ b/hw/xfree86/hosted/hosted.h
@@ -0,0 +1,61 @@
+/*
+ * Copyright © 2008 Kristian Høgsberg
+ *
+ * Permission to use, copy, modify, distribute, and sell this software
+ * and its documentation for any purpose is hereby granted without
+ * fee, provided that the above copyright notice appear in all copies
+ * and that both that copyright notice and this permission notice
+ * appear in supporting documentation, and that the name of the
+ * copyright holders not be used in advertising or publicity
+ * pertaining to distribution of the software without specific,
+ * written prior permission. The copyright holders make no
+ * representations about the suitability of this software for any
+ * purpose. It is provided "as is" without express or implied
+ * warranty.
+ *
+ * THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS
+ * SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS, IN NO EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY
+ * SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN
+ * AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
+ * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
+ * SOFTWARE.
+ */
+
+#ifndef _HOSTED_H_
+#define _HOSTED_H_
+
+#define HOSTED_VERSION 1
+
+struct hosted_driver {
+ int version;
+ int (*name_pixmap)(PixmapPtr pixmap, uint32_t *name);
+};
+
+#define HOSTED_FLAGS_ROOTLESS 0x01
+
+extern _X_EXPORT int
+hosted_version(void);
+
+extern _X_EXPORT struct hosted_screen *
+hosted_screen_pre_init(ScrnInfoPtr scrninfo,
+ uint32_t flags, struct hosted_driver *driver);
+
+extern _X_EXPORT int
+hosted_screen_init(struct hosted_screen *hosted_screen, ScreenPtr screen);
+
+extern _X_EXPORT int
+hosted_screen_get_drm_fd(struct hosted_screen *hosted_screen);
+
+extern _X_EXPORT void
+hosted_screen_destroy(struct hosted_screen *hosted_screen);
+
+extern _X_EXPORT void
+hosted_screen_post_damage(struct hosted_screen *hosted_screen);
+
+extern _X_EXPORT int
+hosted_screen_authenticate(struct hosted_screen *hosted_screen,
+ uint32_t magic);
+
+#endif /* _HOSTED_H_ */