diff options
author | Emil Velikov <emil.l.velikov@gmail.com> | 2015-09-09 16:02:18 +0100 |
---|---|---|
committer | Emil Velikov <emil.l.velikov@gmail.com> | 2015-09-21 17:43:08 +0100 |
commit | ccedf66b65f6ab245aa6028d7fe9eb603a121b43 (patch) | |
tree | df5b1c292ee43db94d9f75464dc443b8a246ccf8 /xf86drm.h | |
parent | fae59d7234caf4827bf5ca74c1b706cbfb70a460 (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.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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); |