summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Dauvergne <bdauvergne@entrouvert.com>2008-08-01 14:09:40 +0000
committerBenjamin Dauvergne <bdauvergne@entrouvert.com>2008-08-01 14:09:40 +0000
commit4113e7c5af48698a23cd94892951eef3bab305bf (patch)
tree5ccfac9731f21f06173a3558066399dabc2cbf12
parentae7f4f742442baef9c550f9d6c7a4f429a18afe8 (diff)
add a lasso_discovery_new_full function
-rw-r--r--lasso/id-wsf/discovery.c26
1 files changed, 25 insertions, 1 deletions
diff --git a/lasso/id-wsf/discovery.c b/lasso/id-wsf/discovery.c
index c2b813c7..ddfe9bf1 100644
--- a/lasso/id-wsf/discovery.c
+++ b/lasso/id-wsf/discovery.c
@@ -1419,7 +1419,31 @@ lasso_discovery_new(LassoServer *server)
g_return_val_if_fail(LASSO_IS_SERVER(server), NULL);
discovery = g_object_new(LASSO_TYPE_DISCOVERY, NULL);
- LASSO_WSF_PROFILE(discovery)->server = g_object_ref(server);
+ lasso_wsf_profile_init(&discovery->parent, server, NULL);
+
+ return discovery;
+}
+
+
+/**
+ * lasso_discovery_new_full:
+ * @server: the #LassoServer
+ * @offering: the
+ *
+ * Creates a new #LassoDiscovery.
+ *
+ * Return value: a newly created #LassoDiscovery object; or NULL if an error
+ * occured.
+ **/
+LassoDiscovery*
+lasso_discovery_new_full(LassoServer *server, LassoDiscoResourceOffering *offering)
+{
+ LassoDiscovery *discovery = NULL;
+
+ g_return_val_if_fail(LASSO_IS_SERVER(server), NULL);
+
+ discovery = g_object_new(LASSO_TYPE_DISCOVERY, NULL);
+ lasso_wsf_profile_init(&discovery->parent, server, offering);
return discovery;
}