summaryrefslogtreecommitdiff
path: root/xf86drm.h
diff options
context:
space:
mode:
authorEmil Velikov <emil.l.velikov@gmail.com>2015-09-09 16:02:18 +0100
committerEmil Velikov <emil.l.velikov@gmail.com>2015-09-21 17:43:08 +0100
commitccedf66b65f6ab245aa6028d7fe9eb603a121b43 (patch)
treedf5b1c292ee43db94d9f75464dc443b8a246ccf8 /xf86drm.h
parentfae59d7234caf4827bf5ca74c1b706cbfb70a460 (diff)
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 <emil.l.velikov@gmail.com> Acked-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'xf86drm.h')
-rw-r--r--xf86drm.h3
1 files changed, 3 insertions, 0 deletions
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);