summaryrefslogtreecommitdiffstats
path: root/src/gbm/main/gbm.h
diff options
context:
space:
mode:
authorAnder Conselvan de Oliveira <[email protected]>2012-04-30 13:27:51 +0300
committerKristian Høgsberg <[email protected]>2012-04-30 13:09:39 -0400
commit310d8d189d14eb6c29be205bf2c9e98187b2fa84 (patch)
tree2fab4f3ab0af33879db76e14f84fcbdf5b382e50 /src/gbm/main/gbm.h
parentf641c57cfa91b259077b4be89789dc01235b0187 (diff)
gbm: add gbm_bo_get/set_user_data()
This allows the user to associate some data to a gbm_bo and get a callback when the bo is destroyed.
Diffstat (limited to 'src/gbm/main/gbm.h')
-rw-r--r--src/gbm/main/gbm.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gbm/main/gbm.h b/src/gbm/main/gbm.h
index 6748752d8f1..16489f36bba 100644
--- a/src/gbm/main/gbm.h
+++ b/src/gbm/main/gbm.h
@@ -246,6 +246,13 @@ union gbm_bo_handle
gbm_bo_get_handle(struct gbm_bo *bo);
void
+gbm_bo_set_user_data(struct gbm_bo *bo, void *data,
+ void (*destroy_user_data)(struct gbm_bo *, void *));
+
+void *
+gbm_bo_get_user_data(struct gbm_bo *bo);
+
+void
gbm_bo_destroy(struct gbm_bo *bo);
struct gbm_surface *