diff options
author | Damien Lespiau | 2014-11-15 00:09:24 -0600 |
---|---|---|
committer | srinivas pulukuru | 2015-01-30 16:04:01 -0600 |
commit | c0eab7399e0e903d23ef1130e4094f7cabbd5b67 (patch) | |
tree | f61eb1d5207c6bd5e1dee4f7cb36dfd9de582628 /xf86drm.c | |
parent | 5f5fbf49b6baef5996f2cc4ce85175c091083e60 (diff) | |
download | libdrm-c0eab7399e0e903d23ef1130e4094f7cabbd5b67.tar.gz libdrm-c0eab7399e0e903d23ef1130e4094f7cabbd5b67.tar.xz libdrm-c0eab7399e0e903d23ef1130e4094f7cabbd5b67.zip |
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>
Signed-off-by: srinivas pulukuru <srinivas.pulukuru@ti.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) | |||
823 | return 0; | 823 | return 0; |
824 | } | 824 | } |
825 | 825 | ||
826 | int drmSetClientCap(int fd, uint64_t capability, uint64_t value) | ||
827 | { | ||
828 | struct drm_set_client_cap cap = { capability, value }; | ||
829 | |||
830 | return drmIoctl(fd, DRM_IOCTL_SET_CLIENT_CAP, &cap); | ||
831 | } | ||
832 | |||
826 | /** | 833 | /** |
827 | * Free the bus ID information. | 834 | * Free the bus ID information. |
828 | * | 835 | * |