gbm: Move getters to match order in header file (trivial)
authorBen Widawsky <ben@bwidawsk.net>
Wed, 19 Oct 2016 21:52:12 +0000 (14:52 -0700)
committerBen Widawsky <ben@bwidawsk.net>
Tue, 24 Jan 2017 05:43:34 +0000 (21:43 -0800)
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 <ben@bwidawsk.net>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
Acked-by: Daniel Stone <daniels@collabora.com>
src/gbm/main/gbm.c

index 9ef19900177d5a5c5403fd183dd095f4fe0e225a..00113faab87f6d434ff87842d970e8c73add7b41 100644 (file)
@@ -181,6 +181,17 @@ gbm_bo_get_format(struct gbm_bo *bo)
    return bo->format;
 }
 
    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
 /** 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);
 }
 
    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
 /** Set the user data associated with a buffer object
  *
  * \param bo The buffer object