summaryrefslogtreecommitdiff
path: root/drmsetup.h
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@gnugeneration.com>2016-12-13 07:27:36 -0800
committerVito Caputo <vcaputo@gnugeneration.com>2016-12-13 07:27:36 -0800
commita93ac6aec7f059b41c67513604ac0a6aabf9f008 (patch)
treed9422126ee453d2334d316192d88da63d9f5a3e2 /drmsetup.h
parent349ae02d9201dffcca98cdba270091d6dfe2d114 (diff)
drmsetup: introduce drm_setup()
quick and dirty stdio-based drm card and connector selection
Diffstat (limited to 'drmsetup.h')
-rw-r--r--drmsetup.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/drmsetup.h b/drmsetup.h
new file mode 100644
index 0000000..61af2d5
--- /dev/null
+++ b/drmsetup.h
@@ -0,0 +1,10 @@
+#ifndef _DRM_SETUP_H
+#define _DRM_SETUP_H
+
+#include <stddef.h> /* xf86drmMode.h uses size_t without including stddef.h, sigh */
+#include <stdint.h>
+#include <xf86drmMode.h>
+
+void drm_setup(int *res_drm_fd, uint32_t *res_crtc_id, uint32_t *res_connector_id, drmModeModeInfoPtr *res_mode);
+
+#endif
© All Rights Reserved