summaryrefslogtreecommitdiff
path: root/sys/xvboimage/drm-xvimage.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/xvboimage/drm-xvimage.h')
-rw-r--r--sys/xvboimage/drm-xvimage.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/sys/xvboimage/drm-xvimage.h b/sys/xvboimage/drm-xvimage.h
new file mode 100644
index 00000000..6fa34201
--- /dev/null
+++ b/sys/xvboimage/drm-xvimage.h
@@ -0,0 +1,17 @@
+#ifndef DRM_XVIMAGE_H
+#define DRM_XVIMAGE_H
+
+#include <stdint.h>
+#include <xf86drm.h>
+#include <X11/Xlib.h>
+
+struct drm {
+ int fd;
+};
+
+struct drm *drm_get_and_auth(Display *dpy);
+void drm_close(struct drm *);
+int drm_handle_flink(struct drm *drm, uint32_t handle, uint32_t *name);
+void drm_handle_close(struct drm *drm, uint32_t handle);
+
+#endif