aboutsummaryrefslogtreecommitdiffstats
path: root/src/gbm/main/gbm.c
diff options
context:
space:
mode:
authorBen Widawsky <[email protected]>2016-10-19 14:52:12 -0700
committerBen Widawsky <[email protected]>2017-01-23 21:43:34 -0800
commitbb9ff98b4c3fb9e090168bddd6e476e7f24831f8 (patch)
treef314fe2be4262e6fac7c423b1be7be67bfd84f8d /src/gbm/main/gbm.c
parent530cd248f546f9c227cce6a027818d13938d4f6b (diff)
gbm: Move getters to match order in header file (trivial)
Other things are out of order, but I need to add a getter so I'm just fixing those. This helps people adding to GBM know where the right place to put things is. Signed-off-by: Ben Widawsky <[email protected]> Reviewed-by: Eric Engestrom <[email protected]> Acked-by: Daniel Stone <[email protected]>
Diffstat (limited to 'src/gbm/main/gbm.c')
-rw-r--r--src/gbm/main/gbm.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/gbm/main/gbm.c b/src/gbm/main/gbm.c
index 9ef19900177..00113faab87 100644
--- a/src/gbm/main/gbm.c
+++ b/src/gbm/main/gbm.c
@@ -181,6 +181,17 @@ gbm_bo_get_format(struct gbm_bo *bo)
return bo->format;
}
+/** 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;
+}
+
/** Get the handle of the buffer object
*
* This is stored in the platform generic union gbm_bo_handle type. However
@@ -232,17 +243,6 @@ gbm_bo_write(struct gbm_bo *bo, const void *buf, size_t count)
return bo->gbm->bo_write(bo, buf, count);
}
-/** 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