Export drmDevicesEqual
authorAdam Jackson <ajax@redhat.com>
Thu, 4 May 2017 14:48:56 +0000 (10:48 -0400)
committerAdam Jackson <ajax@redhat.com>
Thu, 4 May 2017 18:36:25 +0000 (14:36 -0400)
commit7c27cd7c5da0b87cea0dacd454307e2613d3b415
tree27f1e68b8c4746f6e3c93f56c36041d75a0bd99e
parent00aa2c18810efb896afd9ff0acbadd4aa9540fe6
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>
xf86drm.c
xf86drm.h