diff options
| author | Jon Cruz <jonc@osg.samsung.com> | 2015-10-26 14:51:19 +0900 |
|---|---|---|
| committer | Bryce Harrington <bryce@osg.samsung.com> | 2015-10-26 10:50:48 -0700 |
| commit | 9a170b98342c1fde42cd3f7fbef73d5af86c3a7c (patch) | |
| tree | fc67cc2bda61e470259515b4ed36e3abde853b2b /src/wayland-util.h | |
| parent | shm: Add shm_buffer ref and shm_pool unref functions (diff) | |
| download | wayland-9a170b98342c1fde42cd3f7fbef73d5af86c3a7c.tar wayland-9a170b98342c1fde42cd3f7fbef73d5af86c3a7c.tar.gz wayland-9a170b98342c1fde42cd3f7fbef73d5af86c3a7c.tar.bz2 wayland-9a170b98342c1fde42cd3f7fbef73d5af86c3a7c.tar.lz wayland-9a170b98342c1fde42cd3f7fbef73d5af86c3a7c.tar.xz wayland-9a170b98342c1fde42cd3f7fbef73d5af86c3a7c.tar.zst wayland-9a170b98342c1fde42cd3f7fbef73d5af86c3a7c.zip | |
cosmetic: fix inconsistent code style with header prototypes.
A few of the header files had function prototypes that were not
following project conventions, sometimes even in the same file.
Corrected these to follow as per wayland-os.h.
Signed-off-by: Jon A. Cruz <jonc@osg.samsung.com>
Diffstat (limited to 'src/wayland-util.h')
| -rw-r--r-- | src/wayland-util.h | 45 |
1 files changed, 33 insertions, 12 deletions
diff --git a/src/wayland-util.h b/src/wayland-util.h index 3d04bdd..35b50ea 100644 --- a/src/wayland-util.h +++ b/src/wayland-util.h @@ -121,12 +121,23 @@ struct wl_list { struct wl_list *next; }; -void wl_list_init(struct wl_list *list); -void wl_list_insert(struct wl_list *list, struct wl_list *elm); -void wl_list_remove(struct wl_list *elm); -int wl_list_length(const struct wl_list *list); -int wl_list_empty(const struct wl_list *list); -void wl_list_insert_list(struct wl_list *list, struct wl_list *other); +void +wl_list_init(struct wl_list *list); + +void +wl_list_insert(struct wl_list *list, struct wl_list *elm); + +void +wl_list_remove(struct wl_list *elm); + +int +wl_list_length(const struct wl_list *list); + +int +wl_list_empty(const struct wl_list *list); + +void +wl_list_insert_list(struct wl_list *list, struct wl_list *other); /** * Retrieves a pointer to the containing struct of a given member item. @@ -206,10 +217,17 @@ struct wl_array { (const char *) pos < ((const char *) (array)->data + (array)->size); \ (pos)++) -void wl_array_init(struct wl_array *array); -void wl_array_release(struct wl_array *array); -void *wl_array_add(struct wl_array *array, size_t size); -int wl_array_copy(struct wl_array *array, struct wl_array *source); +void +wl_array_init(struct wl_array *array); + +void +wl_array_release(struct wl_array *array); + +void * +wl_array_add(struct wl_array *array, size_t size); + +int +wl_array_copy(struct wl_array *array, struct wl_array *source); typedef int32_t wl_fixed_t; @@ -239,11 +257,14 @@ wl_fixed_from_double(double d) return u.i; } -static inline int wl_fixed_to_int(wl_fixed_t f) +static inline int +wl_fixed_to_int(wl_fixed_t f) { return f / 256; } -static inline wl_fixed_t wl_fixed_from_int(int i) + +static inline wl_fixed_t +wl_fixed_from_int(int i) { return i * 256; } |
