From ccedf66b65f6ab245aa6028d7fe9eb603a121b43 Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Wed, 9 Sep 2015 16:02:18 +0100 Subject: xf86drm: add drm{Get,Free}Device Similar interface to the *Devices() ones but they obtain/free the information of the opened device (as given by its fd). Note there is a fair bit of duplication between the two Get functions, and anyone interested is more than welcome to consolidate it. Signed-off-by: Emil Velikov Acked-by: Alex Deucher --- xf86drm.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'xf86drm.h') diff --git a/xf86drm.h b/xf86drm.h index e82ca844..481d882a 100644 --- a/xf86drm.h +++ b/xf86drm.h @@ -790,6 +790,9 @@ typedef struct _drmDevice { } deviceinfo; } drmDevice, *drmDevicePtr; +extern int drmGetDevice(int fd, drmDevicePtr *device); +extern void drmFreeDevice(drmDevicePtr *device); + extern int drmGetDevices(drmDevicePtr devices[], int max_devices); extern void drmFreeDevices(drmDevicePtr devices[], int count); -- cgit v1.2.3