summaryrefslogtreecommitdiff
path: root/src/gbm/main/gbmint.h
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@bitplanet.net>2014-03-28 00:33:54 -0700
committerKristian Høgsberg <krh@bitplanet.net>2014-04-01 12:27:13 -0700
commitf54f5891be24eea2af2d1c9864a3f74c1e7648fc (patch)
treece4d2e4b2f463f51a6f96265f6018c15a34b2234 /src/gbm/main/gbmint.h
parent7c379ebe173b43e6ee76bc37a122aa4642bdf43e (diff)
gbm: Add gbm_bo_get_fd()
Add gbm function to get a DMA-BUF file descriptor for a gbm bo. Signed-off-by: Kristian Høgsberg <krh@bitplanet.net>
Diffstat (limited to 'src/gbm/main/gbmint.h')
-rw-r--r--src/gbm/main/gbmint.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gbm/main/gbmint.h b/src/gbm/main/gbmint.h
index 4baf8e3d3d1..31345e6f6de 100644
--- a/src/gbm/main/gbmint.h
+++ b/src/gbm/main/gbmint.h
@@ -69,6 +69,7 @@ struct gbm_device {
struct gbm_bo *(*bo_import)(struct gbm_device *gbm, uint32_t type,
void *buffer, uint32_t usage);
int (*bo_write)(struct gbm_bo *bo, const void *buf, size_t data);
+ int (*bo_get_fd)(struct gbm_bo *bo);
void (*bo_destroy)(struct gbm_bo *bo);
struct gbm_surface *(*surface_create)(struct gbm_device *gbm,