diff options
Diffstat (limited to 'gbmint.h')
-rw-r--r-- | gbmint.h | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -38,6 +38,16 @@ | |||
38 | #define GBM_EXPORT | 38 | #define GBM_EXPORT |
39 | #endif | 39 | #endif |
40 | 40 | ||
41 | /** | ||
42 | * \file gbmint.h | ||
43 | * \brief Internal implementation details of gbm | ||
44 | */ | ||
45 | |||
46 | /** | ||
47 | * The device used for the memory allocation. | ||
48 | * | ||
49 | * The members of this structure should be not accessed directly | ||
50 | */ | ||
41 | struct gbm_device { | 51 | struct gbm_device { |
42 | /* Hack to make a gbm_device detectable by its first element. */ | 52 | /* Hack to make a gbm_device detectable by its first element. */ |
43 | struct gbm_device *(*dummy)(int); | 53 | struct gbm_device *(*dummy)(int); |
@@ -63,11 +73,17 @@ struct gbm_device { | |||
63 | void (*bo_destroy)(struct gbm_bo *bo); | 73 | void (*bo_destroy)(struct gbm_bo *bo); |
64 | }; | 74 | }; |
65 | 75 | ||
76 | /** | ||
77 | * The allocated buffer object. | ||
78 | * | ||
79 | * The members in this structure should not be accessed directly. | ||
80 | */ | ||
66 | struct gbm_bo { | 81 | struct gbm_bo { |
67 | struct gbm_device *gbm; | 82 | struct gbm_device *gbm; |
68 | uint32_t width; | 83 | uint32_t width; |
69 | uint32_t height; | 84 | uint32_t height; |
70 | uint32_t pitch; | 85 | uint32_t pitch; |
86 | uint32_t format; | ||
71 | union gbm_bo_handle handle; | 87 | union gbm_bo_handle handle; |
72 | }; | 88 | }; |
73 | 89 | ||