aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Jackson2017-05-04 09:48:56 -0500
committerAdam Jackson2017-05-04 13:36:25 -0500
commit7c27cd7c5da0b87cea0dacd454307e2613d3b415 (patch)
tree27f1e68b8c4746f6e3c93f56c36041d75a0bd99e /xf86drm.h
parent00aa2c18810efb896afd9ff0acbadd4aa9540fe6 (diff)
downloadexternal-libdrm-7c27cd7c5da0b87cea0dacd454307e2613d3b415.tar.gz
external-libdrm-7c27cd7c5da0b87cea0dacd454307e2613d3b415.tar.xz
external-libdrm-7c27cd7c5da0b87cea0dacd454307e2613d3b415.zip
Export drmDevicesEqual
drmCompareBusInfo was almost this already, but it wasn't exported, its name didn't match its functionality, and while it almost looks like it was usable for sorting due to memcmp it wouldn't work if you had multiple bus types. I don't really want to think about defining a sensible sort order for bus types, so let's at least make it less of a trap for the caller. Invert its boolean sense to be 'true if equal', rename it to describe the types it actually operates on, and export. Reviewed-by: Eric Anholt <eric@anholt.net> Reviewed-by: Emil Velikov <emil.velilkov@collabora.com> Signed-off-by: Adam Jackson <ajax@redhat.com>
Diffstat (limited to 'xf86drm.h')
-rw-r--r--xf86drm.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/xf86drm.h b/xf86drm.h
index d75ca8ce..74f54f17 100644
--- a/xf86drm.h
+++ b/xf86drm.h
@@ -851,6 +851,8 @@ extern void drmFreeDevices(drmDevicePtr devices[], int count);
851extern int drmGetDevice2(int fd, uint32_t flags, drmDevicePtr *device); 851extern int drmGetDevice2(int fd, uint32_t flags, drmDevicePtr *device);
852extern int drmGetDevices2(uint32_t flags, drmDevicePtr devices[], int max_devices); 852extern int drmGetDevices2(uint32_t flags, drmDevicePtr devices[], int max_devices);
853 853
854extern int drmDevicesEqual(drmDevicePtr a, drmDevicePtr b);
855
854#if defined(__cplusplus) 856#if defined(__cplusplus)
855} 857}
856#endif 858#endif