1 /* 2 * Copyright 2014 The Chromium OS Authors. All rights reserved. 3 * Use of this source code is governed by a BSD-style license that can be 4 * found in the LICENSE file. 5 */ 6 7 #ifndef GBM_PRIV_H 8 #define GBM_PRIV_H 9 10 #include <stdint.h> 11 #include <stdlib.h> 12 #include <sys/types.h> 13 14 #include "drv.h" 15 #include "gbm.h" 16 17 struct gbm_device { 18 struct driver *drv; 19 }; 20 21 struct gbm_surface { 22 }; 23 24 struct gbm_bo { 25 struct gbm_device *gbm; 26 struct bo *bo; 27 uint32_t gbm_format; 28 void *user_data; 29 void (*destroy_user_data)(struct gbm_bo *, void *); 30 }; 31 32 #endif 33