diff options
author | Jerome Glisse <glisse@freedesktop.org> | 2008-03-20 17:44:32 +0100 |
---|---|---|
committer | John Doe <glisse@freedesktop.org> | 2008-03-20 17:44:32 +0100 |
commit | 71b66b00435a10e762a4bb7abedb263196942da4 (patch) | |
tree | 99bbf149f64f14fdc2cd389ec53188c7ce4e040f /libdrm/xf86drm.c | |
parent | 6ef119abf5d19c85fe039fd19d12e9bd64fd44df (diff) | |
parent | 607964ed9e5f6d86a0960bef2341e7f5de9c71da (diff) |
Merge branch 'modesetting-101' of ssh://git.freedesktop.org/git/mesa/drm into modesetting-101
Diffstat (limited to 'libdrm/xf86drm.c')
-rw-r--r-- | libdrm/xf86drm.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/libdrm/xf86drm.c b/libdrm/xf86drm.c index bcf562d5..53275f52 100644 --- a/libdrm/xf86drm.c +++ b/libdrm/xf86drm.c @@ -2977,3 +2977,20 @@ void drmCloseOnce(int fd) } } } + +int drmSetMaster(int fd) +{ + int ret; + + fprintf(stderr,"Setting master \n"); + ret = ioctl(fd, DRM_IOCTL_SET_MASTER, 0); + return ret; +} + +int drmDropMaster(int fd) +{ + int ret; + fprintf(stderr,"Dropping master \n"); + ret = ioctl(fd, DRM_IOCTL_DROP_MASTER, 0); + return ret; +} |