diff options
author | Kristian Høgsberg <krh@redhat.com> | 2009-09-18 09:47:34 -0400 |
---|---|---|
committer | Kristian Høgsberg <krh@redhat.com> | 2009-09-18 17:05:42 -0400 |
commit | 59fa346ac9a5a3244af1aae0d13bd3d56f84c4b8 (patch) | |
tree | a3579781c659a6a747887fc8c0325a8641949d0a | |
parent | 9db4efaefad45b161595a97ad5b862ba2ba40f7c (diff) | |
download | wayland-59fa346ac9a5a3244af1aae0d13bd3d56f84c4b8.tar.gz wayland-59fa346ac9a5a3244af1aae0d13bd3d56f84c4b8.tar.xz wayland-59fa346ac9a5a3244af1aae0d13bd3d56f84c4b8.zip |
Export list implementation
-rw-r--r-- | Makefile.in | 2 | ||||
-rw-r--r-- | wayland-util.c | 17 |
2 files changed, 10 insertions, 9 deletions
diff --git a/Makefile.in b/Makefile.in index 4e0ec57..7bb9f58 100644 --- a/Makefile.in +++ b/Makefile.in @@ -57,7 +57,7 @@ install : $(libs) $(compositors) install -d @libdir@ @libdir@/pkgconfig ${udev_rules_dir} install $(libs) @libdir@ install wayland-server.pc wayland.pc @libdir@/pkgconfig - install wayland-client.h @includedir@ + install wayland-util.h wayland-client.h @includedir@ install 70-wayland.rules ${udev_rules_dir} clean : diff --git a/wayland-util.c b/wayland-util.c index a5ab8be..06efd32 100644 --- a/wayland-util.c +++ b/wayland-util.c @@ -94,13 +94,14 @@ wl_hash_delete(struct wl_hash *hash, struct wl_object *object) } -void wl_list_init(struct wl_list *list) +WL_EXPORT void +wl_list_init(struct wl_list *list) { list->prev = list; list->next = list; } -void +WL_EXPORT void wl_list_insert(struct wl_list *list, struct wl_list *elm) { elm->prev = list; @@ -109,14 +110,14 @@ wl_list_insert(struct wl_list *list, struct wl_list *elm) elm->next->prev = elm; } -void +WL_EXPORT void wl_list_remove(struct wl_list *elm) { elm->prev->next = elm->next; elm->next->prev = elm->prev; } -int +WL_EXPORT int wl_list_length(struct wl_list *list) { struct wl_list *e; @@ -132,25 +133,25 @@ wl_list_length(struct wl_list *list) return count; } -int +WL_EXPORT int wl_list_empty(struct wl_list *list) { return list->next == list; } -void +WL_EXPORT void wl_array_init(struct wl_array *array) { memset(array, 0, sizeof *array); } -void +WL_EXPORT void wl_array_release(struct wl_array *array) { free(array->data); } -void * +WL_EXPORT void * wl_array_add(struct wl_array *array, int size) { int alloc; |