summaryrefslogtreecommitdiff
path: root/govirt/ovirt-collection-private.h
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@redhat.com>2013-08-22 15:06:52 +0200
committerChristophe Fergeau <cfergeau@redhat.com>2013-09-02 17:43:41 +0200
commit05d9f7a7223b034963b90160c8f6db0c886f2111 (patch)
treee2c7004ef039269fe280ed1001e6f61a4169486a /govirt/ovirt-collection-private.h
parente44ff13544912685f7adf61ed0616f22558b38a3 (diff)
collection: Add sync/async 'fetch' methods
These methods use an OvirtProxy object to fetch data from the network and populate the collection with OvirtResource objects parsed from the XML that was fetched. This will remove the need for dedicated ovirt_proxy_fetch_xxx/ovirt_proxy_fetch_xxx_async for each resource type, which will in turn save quite some code ;)
Diffstat (limited to 'govirt/ovirt-collection-private.h')
-rw-r--r--govirt/ovirt-collection-private.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/govirt/ovirt-collection-private.h b/govirt/ovirt-collection-private.h
index da89900..5bc294f 100644
--- a/govirt/ovirt-collection-private.h
+++ b/govirt/ovirt-collection-private.h
@@ -31,6 +31,10 @@
G_BEGIN_DECLS
void ovirt_collection_set_resources(OvirtCollection *collection, GHashTable *resources);
+OvirtCollection *ovirt_collection_new(const char *href,
+ const char *collection_name,
+ GType resource_type,
+ const char *resource_name);
OvirtCollection *ovirt_collection_new_from_xml(RestXmlNode *root_node,
GType collection_type,
const char *collection_name,