From: Erik Gilling Date: Wed, 8 Dec 2010 02:46:04 +0000 (-0800) Subject: gralloc: add padding to alloc_device_t and hwc_composer_device_t X-Git-Tag: android-x86-4.4-r1~401 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=e99520400f228e45b1feff28eb4105b8e5599196;p=android-x86%2Fhardware-libhardware.git gralloc: add padding to alloc_device_t and hwc_composer_device_t also adds version #defines Change-Id: I89f19fc7811ea9c9efb579a9f6abb4c3d9011bbf --- diff --git a/include/hardware/gralloc.h b/include/hardware/gralloc.h index 788815a..84834aa 100644 --- a/include/hardware/gralloc.h +++ b/include/hardware/gralloc.h @@ -28,6 +28,8 @@ __BEGIN_DECLS +#define GRALLOC_API_VERSION 1 + /** * The id of this module */ @@ -227,6 +229,7 @@ typedef struct alloc_device_t { int (*free)(struct alloc_device_t* dev, buffer_handle_t handle); + void* reserved_proc[8]; } alloc_device_t; diff --git a/include/hardware/hwcomposer.h b/include/hardware/hwcomposer.h index fdf2f59..c72d466 100644 --- a/include/hardware/hwcomposer.h +++ b/include/hardware/hwcomposer.h @@ -27,6 +27,9 @@ __BEGIN_DECLS /*****************************************************************************/ + +#define HWC_API_VERSION 1 + /** * The id of this module */ @@ -276,6 +279,8 @@ typedef struct hwc_composer_device { hwc_surface_t sur, hwc_layer_list_t* list); + void* reserved_proc[8]; + } hwc_composer_device_t;