summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward O'Callaghan <funfunctor@folklore1984.net>2017-03-07 00:34:30 +1100
committerEdward O'Callaghan <funfunctor@folklore1984.net>2017-03-07 00:34:30 +1100
commitd1ae1a2dec5aeee284b201e0469fff5a53fd6c2d (patch)
treec3c1bb8ab6537c2e0553aacfd7cc5e61edf31105
parent3e6766934a80e658d78c9dd031abde952b71141c (diff)
src/drm.h,c: trivial cleanup
Signed-off-by: Edward O'Callaghan <funfunctor@folklore1984.net>
-rw-r--r--src/drm.c8
-rw-r--r--src/drm.h4
2 files changed, 6 insertions, 6 deletions
diff --git a/src/drm.c b/src/drm.c
index 18c2dae..f6689c3 100644
--- a/src/drm.c
+++ b/src/drm.c
@@ -13,7 +13,7 @@
static void drm_fb_destroy_callback(struct gbm_bo *bo, void *data)
{
- struct drm_fb_xxx *fb = data;
+ struct drm_fb *fb = data;
int drm_fd = gbm_device_get_fd(gbm_bo_get_device(bo));
if (fb->fb_id)
@@ -22,9 +22,9 @@ static void drm_fb_destroy_callback(struct gbm_bo *bo, void *data)
free(fb);
}
-struct drm_fb_xxx * drm_fb_get_from_bo(struct gbm_bo *bo)
+struct drm_fb * drm_fb_get_from_bo(struct gbm_bo *bo)
{
- struct drm_fb_xxx *fb = gbm_bo_get_user_data(bo);
+ struct drm_fb *fb = gbm_bo_get_user_data(bo);
int ret;
if (fb)
@@ -207,7 +207,7 @@ static void page_flip_handler(int fd, unsigned int frame,
static int drm_run_flip_thingy(const struct gbm *gbm, const struct egl *egl)
{
struct gbm_bo * bo;
- struct drm_fb_xxx * fb;
+ struct drm_fb * fb;
int ret;
drmEventContext evctx = {
diff --git a/src/drm.h b/src/drm.h
index 61c5f7f..3b20df7 100644
--- a/src/drm.h
+++ b/src/drm.h
@@ -10,7 +10,7 @@
/**
* ..
*/
-struct drm_fb_xxx {
+struct drm_fb {
uint32_t fb_id;
struct gbm_bo * bo;
};
@@ -21,7 +21,7 @@ struct drm_fb_xxx {
* returned framebuffer object attached to the gbm bo
* is handled by gbm for us.
*/
-struct drm_fb_xxx * drm_fb_get_from_bo(struct gbm_bo *bo);
+struct drm_fb * drm_fb_get_from_bo(struct gbm_bo *bo);
struct drm {