diff options
author | Ander Conselvan de Oliveira <[email protected]> | 2012-04-30 13:27:53 +0300 |
---|---|---|
committer | Kristian Høgsberg <[email protected]> | 2012-04-30 13:09:39 -0400 |
commit | 6c84f2992fee8b866b9f7434c8c26613b67dc2d4 (patch) | |
tree | e6399775c5579e58c120cc6fa6d7d498cfd70a4c /src/gbm/main/gbm.c | |
parent | 55aab92495692f453c04f5b99e67bcb77cd27e14 (diff) |
gbm: add gbm_bo_get_device() function
Diffstat (limited to 'src/gbm/main/gbm.c')
-rw-r--r-- | src/gbm/main/gbm.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/gbm/main/gbm.c b/src/gbm/main/gbm.c index 0b5b9ff0b70..987e96500f8 100644 --- a/src/gbm/main/gbm.c +++ b/src/gbm/main/gbm.c @@ -231,6 +231,17 @@ gbm_bo_get_handle(struct gbm_bo *bo) return bo->handle; } +/** Get the gbm device used to create the buffer object + * + * \param bo The buffer object + * \return Returns the gbm device with which the buffer object was created + */ +GBM_EXPORT struct gbm_device * +gbm_bo_get_device(struct gbm_bo *bo) +{ + return bo->gbm; +} + /** Set the user data associated with a buffer object * * \param bo The buffer object |