xf86drm: document drmDevicesEqual()

I always need to double-check what the return value means when
using that function (since it's not a bool).

Signed-off-by: Simon Ser <contact@emersion.fr>
main
Simon Ser 2024-04-11 12:11:30 +02:00
parent 1179edb49a
commit 362b5b0a88
1 changed files with 5 additions and 0 deletions

View File

@ -926,6 +926,11 @@ extern int drmGetDeviceFromDevId(dev_t dev_id, uint32_t flags, drmDevicePtr *dev
*/ */
extern int drmGetNodeTypeFromDevId(dev_t devid); extern int drmGetNodeTypeFromDevId(dev_t devid);
/**
* Check if two drmDevice pointers represent the same DRM device.
*
* Returns 1 if the devices are equal, 0 otherwise.
*/
extern int drmDevicesEqual(drmDevicePtr a, drmDevicePtr b); extern int drmDevicesEqual(drmDevicePtr a, drmDevicePtr b);
extern int drmSyncobjCreate(int fd, uint32_t flags, uint32_t *handle); extern int drmSyncobjCreate(int fd, uint32_t flags, uint32_t *handle);