mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2026-05-08 02:18:06 +02:00
drm: Introduce a drmSetClientCap() wrapper
That wraps around the new DRM_SET_CLIENT_CAP ioctl. v2: SET_CAP -> SET_CLIENT_CAP renaming Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
This commit is contained in:
parent
2dd7054781
commit
ddbbdb13d8
2 changed files with 9 additions and 0 deletions
|
|
@ -823,6 +823,13 @@ int drmGetCap(int fd, uint64_t capability, uint64_t *value)
|
|||
return 0;
|
||||
}
|
||||
|
||||
int drmSetClientCap(int fd, uint64_t capability, uint64_t value)
|
||||
{
|
||||
struct drm_set_client_cap cap = { capability, value };
|
||||
|
||||
return drmIoctl(fd, DRM_IOCTL_SET_CLIENT_CAP, &cap);
|
||||
}
|
||||
|
||||
/**
|
||||
* Free the bus ID information.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -609,6 +609,8 @@ extern int drmUpdateDrawableInfo(int fd, drm_drawable_t handle,
|
|||
unsigned int num, void *data);
|
||||
extern int drmCtlInstHandler(int fd, int irq);
|
||||
extern int drmCtlUninstHandler(int fd);
|
||||
extern int drmSetClientCap(int fd, uint64_t capability,
|
||||
uint64_t value);
|
||||
|
||||
/* General user-level programmer's API: authenticated client and/or X */
|
||||
extern int drmMap(int fd,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue