gralloc: do not use GNU old-style field designators
Avoiding the use of gnu extensions improves code portability Change-Id: Icf8e3d4813bcddff40548bb5e65e615f8697b75c
This commit is contained in:
@@ -72,31 +72,31 @@ extern int gralloc_unregister_buffer(gralloc_module_t const* module,
|
|||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
||||||
static struct hw_module_methods_t gralloc_module_methods = {
|
static struct hw_module_methods_t gralloc_module_methods = {
|
||||||
open: gralloc_device_open
|
.open = gralloc_device_open
|
||||||
};
|
};
|
||||||
|
|
||||||
struct private_module_t HAL_MODULE_INFO_SYM = {
|
struct private_module_t HAL_MODULE_INFO_SYM = {
|
||||||
base: {
|
.base = {
|
||||||
common: {
|
.common = {
|
||||||
tag: HARDWARE_MODULE_TAG,
|
.tag = HARDWARE_MODULE_TAG,
|
||||||
version_major: 1,
|
.version_major = 1,
|
||||||
version_minor: 0,
|
.version_minor = 0,
|
||||||
id: GRALLOC_HARDWARE_MODULE_ID,
|
.id = GRALLOC_HARDWARE_MODULE_ID,
|
||||||
name: "Graphics Memory Allocator Module",
|
.name = "Graphics Memory Allocator Module",
|
||||||
author: "The Android Open Source Project",
|
.author = "The Android Open Source Project",
|
||||||
methods: &gralloc_module_methods
|
.methods = &gralloc_module_methods
|
||||||
},
|
},
|
||||||
registerBuffer: gralloc_register_buffer,
|
.registerBuffer = gralloc_register_buffer,
|
||||||
unregisterBuffer: gralloc_unregister_buffer,
|
.unregisterBuffer = gralloc_unregister_buffer,
|
||||||
lock: gralloc_lock,
|
.lock = gralloc_lock,
|
||||||
unlock: gralloc_unlock,
|
.unlock = gralloc_unlock,
|
||||||
},
|
},
|
||||||
framebuffer: 0,
|
.framebuffer = 0,
|
||||||
flags: 0,
|
.flags = 0,
|
||||||
numBuffers: 0,
|
.numBuffers = 0,
|
||||||
bufferMask: 0,
|
.bufferMask = 0,
|
||||||
lock: PTHREAD_MUTEX_INITIALIZER,
|
.lock = PTHREAD_MUTEX_INITIALIZER,
|
||||||
currentBuffer: 0,
|
.currentBuffer = 0,
|
||||||
};
|
};
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|||||||
Reference in New Issue
Block a user