diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2018-07-13 15:09:06 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2018-08-27 10:51:44 +0200 |
commit | b1d380372f31672da9318431e84e79bccd8ef3bf (patch) | |
tree | fa250a5b7e2dd57c9a5c8a18e650d5e8344de8cd /include | |
parent | 242d01336d6e706a26f5370464902a3f8ceba222 (diff) | |
download | qemu-b1d380372f31672da9318431e84e79bccd8ef3bf.zip qemu-b1d380372f31672da9318431e84e79bccd8ef3bf.tar.gz qemu-b1d380372f31672da9318431e84e79bccd8ef3bf.tar.bz2 |
util: promote qemu_egl_rendernode_open() to libqemuutil
vhost-user-gpu will share the same code to open a DRM node.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20180713130916.4153-20-marcandre.lureau@redhat.com>
[ kraxel: buildfix: util/drm.o must be CONFIG_OPENGL not CONFIG_LINUX ]
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/qemu/drm.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/qemu/drm.h b/include/qemu/drm.h new file mode 100644 index 0000000..4c3e622 --- /dev/null +++ b/include/qemu/drm.h @@ -0,0 +1,6 @@ +#ifndef QEMU_DRM_H_ +#define QEMU_DRM_H_ + +int qemu_drm_rendernode_open(const char *rendernode); + +#endif |