From ddbbdb13d80ea7f60e6f71356a444995b905366b Mon Sep 17 00:00:00 2001 From: Damien Lespiau Date: Tue, 3 Sep 2013 15:34:41 +0100 Subject: 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 --- xf86drm.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'xf86drm.c') diff --git a/xf86drm.c b/xf86drm.c index 4791a053..720952ff 100644 --- a/xf86drm.c +++ b/xf86drm.c @@ -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. * -- cgit v1.2.3