summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2010-09-01 12:46:03 +0100
committerDaniel P. Berrange <berrange@redhat.com>2010-09-01 12:46:03 +0100
commit460e66e9acba924fdd49dd9b6fcc0db5228dac5b (patch)
tree36161bf3d6d30f36933965fa6fe62c6a56ed120a /docs
parenta810921fed96fd0e0279067889ad6b86953e2417 (diff)
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
Diffstat (limited to 'docs')
-rw-r--r--docs/reference/Libosinfo-sections.txt3
1 files changed, 1 insertions, 2 deletions
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
<SUBSECTION Standard>
OSINFO_LIST
OSINFO_IS_LIST