gbm: add gbm_bo_get_device() function

This commit is contained in:
Ander Conselvan de Oliveira
2012-04-30 13:27:53 +03:00
committed by Kristian Høgsberg
parent 55aab92495
commit 6c84f2992f
2 changed files with 14 additions and 0 deletions
+11
View File
@@ -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
+3
View File
@@ -242,6 +242,9 @@ gbm_bo_get_pitch(struct gbm_bo *bo);
uint32_t
gbm_bo_get_format(struct gbm_bo *bo);
struct gbm_device *
gbm_bo_get_device(struct gbm_bo *bo);
union gbm_bo_handle
gbm_bo_get_handle(struct gbm_bo *bo);