diff options
author | Ander Conselvan de Oliveira <[email protected]> | 2012-04-30 13:27:51 +0300 |
---|---|---|
committer | Kristian Høgsberg <[email protected]> | 2012-04-30 13:09:39 -0400 |
commit | 310d8d189d14eb6c29be205bf2c9e98187b2fa84 (patch) | |
tree | 2fab4f3ab0af33879db76e14f84fcbdf5b382e50 /src/gbm/main/gbmint.h | |
parent | f641c57cfa91b259077b4be89789dc01235b0187 (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/gbmint.h')
-rw-r--r-- | src/gbm/main/gbmint.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gbm/main/gbmint.h b/src/gbm/main/gbmint.h index 53d73f40df6..0e98bdf3d8d 100644 --- a/src/gbm/main/gbmint.h +++ b/src/gbm/main/gbmint.h @@ -94,6 +94,8 @@ struct gbm_bo { uint32_t pitch; uint32_t format; union gbm_bo_handle handle; + void *user_data; + void (*destroy_user_data)(struct gbm_bo *, void *); }; struct gbm_surface { |