From f54f5891be24eea2af2d1c9864a3f74c1e7648fc Mon Sep 17 00:00:00 2001 From: Kristian Høgsberg Date: Fri, 28 Mar 2014 00:33:54 -0700 Subject: gbm: Add gbm_bo_get_fd() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add gbm function to get a DMA-BUF file descriptor for a gbm bo. Signed-off-by: Kristian Høgsberg --- src/gbm/main/gbmint.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/gbm/main/gbmint.h') 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, -- cgit v1.2.3