aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmil Velikov2015-09-09 10:02:18 -0500
committerEmil Velikov2015-09-21 11:43:08 -0500
commitccedf66b65f6ab245aa6028d7fe9eb603a121b43 (patch)
treedf5b1c292ee43db94d9f75464dc443b8a246ccf8 /xf86drm.h
parentfae59d7234caf4827bf5ca74c1b706cbfb70a460 (diff)
downloadexternal-libdrm-ccedf66b65f6ab245aa6028d7fe9eb603a121b43.tar.gz
external-libdrm-ccedf66b65f6ab245aa6028d7fe9eb603a121b43.tar.xz
external-libdrm-ccedf66b65f6ab245aa6028d7fe9eb603a121b43.zip
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 {
790 } deviceinfo; 790 } deviceinfo;
791} drmDevice, *drmDevicePtr; 791} drmDevice, *drmDevicePtr;
792 792
793extern int drmGetDevice(int fd, drmDevicePtr *device);
794extern void drmFreeDevice(drmDevicePtr *device);
795
793extern int drmGetDevices(drmDevicePtr devices[], int max_devices); 796extern int drmGetDevices(drmDevicePtr devices[], int max_devices);
794extern void drmFreeDevices(drmDevicePtr devices[], int count); 797extern void drmFreeDevices(drmDevicePtr devices[], int count);
795 798