diff options
author | Damien Lespiau <damien.lespiau@intel.com> | 2013-09-03 15:34:41 +0100 |
---|---|---|
committer | Damien Lespiau <damien.lespiau@intel.com> | 2013-09-30 13:35:49 +0100 |
commit | ddbbdb13d80ea7f60e6f71356a444995b905366b (patch) | |
tree | 04182c9a710f73d88d1f435e9236d221d00f7da2 /xf86drm.c | |
parent | 2dd7054781876a0d5423c7755a7690815f3c2f5f (diff) |
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>
Diffstat (limited to 'xf86drm.c')
-rw-r--r-- | xf86drm.c | 7 |
1 files changed, 7 insertions, 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. * |