From 460e66e9acba924fdd49dd9b6fcc0db5228dac5b Mon Sep 17 00:00:00 2001 From: "Daniel P. Berrange" Date: Wed, 1 Sep 2010 12:46:03 +0100 Subject: Remove list iterator & add API to retrieve a GList The OsinfoList iterator method does not play nicely with gobject introspection bindings. Remove it, and replace with a method that returns a GList of elements. This trivially maps to the language bindings native list/array classes which are natively iterable. * docs/reference/Libosinfo-sections.txt: Remove osinfo_list_foreach and add osinfo_list_get_elements * osinfo/osinfo_list.c, osinfo/osinfo_list.h: Remove osinfo_list_foreach and add osinfo_list_get_elements * osinfo/osinfo_db.c: Rewrite to use g_list_foreach and fix some GList annotations to specify element type correctly. * test/test-list.c: Rewrite to use g_list_foreach --- docs/reference/Libosinfo-sections.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'docs') diff --git a/docs/reference/Libosinfo-sections.txt b/docs/reference/Libosinfo-sections.txt index ff24b1d..baa086f 100644 --- a/docs/reference/Libosinfo-sections.txt +++ b/docs/reference/Libosinfo-sections.txt @@ -43,8 +43,7 @@ osinfo_list_add_filtered osinfo_list_add_intersection osinfo_list_add_union osinfo_list_add_all -osinfo_list_iterator -osinfo_list_foreach +osinfo_list_get_elements OSINFO_LIST OSINFO_IS_LIST -- cgit v1.2.3