diff options
author | Mathias Agopian <mathias@google.com> | 2009-08-19 11:20:55 -0700 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2009-08-19 11:20:55 -0700 |
commit | 9d82c1a447a72a2c086b9cd34c5b73b163d7acbc (patch) | |
tree | 56fd1762973e253719869c09c7d80f74c3b3c6f8 /include/hardware/gralloc.h | |
parent | ed04f7871bab3cb07e47e42fe4d9ebe5b02281a2 (diff) | |
download | hardware_libhardware-9d82c1a447a72a2c086b9cd34c5b73b163d7acbc.zip hardware_libhardware-9d82c1a447a72a2c086b9cd34c5b73b163d7acbc.tar.gz hardware_libhardware-9d82c1a447a72a2c086b9cd34c5b73b163d7acbc.tar.bz2 |
add typedefs to gralloc and hardware.h so it's more C friendly
Diffstat (limited to 'include/hardware/gralloc.h')
-rw-r--r-- | include/hardware/gralloc.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/include/hardware/gralloc.h b/include/hardware/gralloc.h index d88591f..cdf415a 100644 --- a/include/hardware/gralloc.h +++ b/include/hardware/gralloc.h @@ -80,7 +80,7 @@ typedef const native_handle* buffer_handle_t; * and the fields of this data structure must begin with hw_module_t * followed by module specific information. */ -struct gralloc_module_t { +typedef struct gralloc_module_t { struct hw_module_t common; @@ -162,7 +162,7 @@ struct gralloc_module_t { int (*unlock)(struct gralloc_module_t const* module, buffer_handle_t handle); -}; +} gralloc_module_t; /*****************************************************************************/ @@ -171,7 +171,7 @@ struct gralloc_module_t { * followed by module specific public methods and attributes. */ -struct alloc_device_t { +typedef struct alloc_device_t { struct hw_device_t common; /* @@ -201,10 +201,10 @@ struct alloc_device_t { int (*free)(struct alloc_device_t* dev, buffer_handle_t handle); -}; +} alloc_device_t; -struct framebuffer_device_t { +typedef struct framebuffer_device_t { struct hw_device_t common; /* flags describing some attributes of the framebuffer */ @@ -288,7 +288,8 @@ struct framebuffer_device_t { int (*post)(struct framebuffer_device_t* dev, buffer_handle_t buffer); void* reserved_proc[8]; -}; + +} framebuffer_device_t; /** convenience API for opening and closing a supported device */ |