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>
This commit is contained in:
Marc-André Lureau 2018-07-13 15:09:06 +02:00 committed by Gerd Hoffmann
parent 242d01336d
commit b1d380372f
5 changed files with 76 additions and 49 deletions

6
include/qemu/drm.h Normal file
View file

@ -0,0 +1,6 @@
#ifndef QEMU_DRM_H_
#define QEMU_DRM_H_
int qemu_drm_rendernode_open(const char *rendernode);
#endif