gbm: add gbm_bo_get_device() function
This commit is contained in:
committed by
Kristian Høgsberg
parent
55aab92495
commit
6c84f2992f
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user