aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrank Binns2015-02-13 04:51:15 -0600
committerEmil Velikov2015-02-23 03:29:19 -0600
commit1f73578df32f895a678a41758f6c563f49484347 (patch)
tree4370fb5ecf5b2446045c62e6353d91ad77a0abdd /xf86drm.h
parent5c1c09e0d28cde4341777b966c21568fd9b51516 (diff)
downloadexternal-libdrm-1f73578df32f895a678a41758f6c563f49484347.tar.gz
external-libdrm-1f73578df32f895a678a41758f6c563f49484347.tar.xz
external-libdrm-1f73578df32f895a678a41758f6c563f49484347.zip
Add new drmGetNodeTypeFromFd function
Add a helper function that returns the type of device node from an fd. Signed-off-by: Frank Binns <frank.binns@imgtec.com> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Diffstat (limited to 'xf86drm.h')
-rw-r--r--xf86drm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/xf86drm.h b/xf86drm.h
index 77937eb9..afd38a10 100644
--- a/xf86drm.h
+++ b/xf86drm.h
@@ -744,6 +744,7 @@ typedef struct _drmEventContext {
744extern int drmHandleEvent(int fd, drmEventContextPtr evctx); 744extern int drmHandleEvent(int fd, drmEventContextPtr evctx);
745 745
746extern char *drmGetDeviceNameFromFd(int fd); 746extern char *drmGetDeviceNameFromFd(int fd);
747extern int drmGetNodeTypeFromFd(int fd);
747 748
748extern int drmPrimeHandleToFD(int fd, uint32_t handle, uint32_t flags, int *prime_fd); 749extern int drmPrimeHandleToFD(int fd, uint32_t handle, uint32_t flags, int *prime_fd);
749extern int drmPrimeFDToHandle(int fd, int prime_fd, uint32_t *handle); 750extern int drmPrimeFDToHandle(int fd, int prime_fd, uint32_t *handle);