summaryrefslogtreecommitdiff
path: root/osinfo/osinfo_db.c
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2010-08-24 19:36:14 +0100
committerDaniel P. Berrange <berrange@redhat.com>2010-08-25 16:51:14 +0100
commit022f6cacefbf777c88b653447774635e294ae775 (patch)
tree5a83be1d29686f4d414d9ba4adb22fc7a9e6b21c /osinfo/osinfo_db.c
parenteaf60263870b041fc82abea79d2a23c5b6db1e89 (diff)
downloadlibosinfo-022f6cacefbf777c88b653447774635e294ae775.tar.gz
Remove all remaining Hypervisor/Os structs out of common code
Make OsinfoOsPrivate, OsinfoHypervisorPrivate structs private to their respective objects, and update all code which poked at private data to use formal APIs * osinfo/osinfo_common.h, osinfo/osinfo_common.c: Remove the OsinfoOsPrivate, OsinfoHypervisorPrivate structs and related helper methods * osinfo/osinfo_os.c: Add OsinfoOsPrivate struct & helper methods * osinfo/osinfo_hypervisor.c: Add OsinfoHypervisorPrivate struct & helper methods. * osinfo/osinfo_db.c, osinfo/osinfo_entity.c, osinfo/osinfo_filter.c: Convert to use APIs instead of accessing private data of OS/Hypervisor objects.
Diffstat (limited to 'osinfo/osinfo_db.c')
-rw-r--r--osinfo/osinfo_db.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/osinfo/osinfo_db.c b/osinfo/osinfo_db.c
index 5a39025..eb547dd 100644
--- a/osinfo/osinfo_db.c
+++ b/osinfo/osinfo_db.c
@@ -279,6 +279,12 @@ GList *osinfo_db_unique_values_for_property_in_dev(OsinfoDb *self, gchar *propNa
return osinfo_db_unique_values_for_property_in_entity(OSINFO_LIST(self->priv->devices), propName);
}
+struct __osinfoOsCheckRelationshipArgs {
+ OsinfoList *list;
+ osinfoRelationship relshp;
+};
+
+
static gboolean __osinfoAddOsIfRelationship(OsinfoList *list, OsinfoEntity *entity, gpointer data)
{
struct __osinfoOsCheckRelationshipArgs *args = data;