summaryrefslogtreecommitdiffstats
path: root/lasso
diff options
context:
space:
mode:
authorBenjamin Dauvergne <bdauvergne@entrouvert.com>2008-08-26 12:48:56 +0000
committerBenjamin Dauvergne <bdauvergne@entrouvert.com>2008-08-26 12:48:56 +0000
commit1a9b5ef5c959930467aa700d001e0a0561b0a6c1 (patch)
treed137cf1e15aab70169d95af821eaa143b6c06bbf /lasso
parentaca239da7a7cf225f4936991485648e6151a8464 (diff)
downloadlasso-1a9b5ef5c959930467aa700d001e0a0561b0a6c1.tar.gz
lasso-1a9b5ef5c959930467aa700d001e0a0561b0a6c1.tar.xz
lasso-1a9b5ef5c959930467aa700d001e0a0561b0a6c1.zip
Add documentation to lasso_server_add_service_from_dump.
Diffstat (limited to 'lasso')
-rw-r--r--lasso/id-ff/server.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/lasso/id-ff/server.c b/lasso/id-ff/server.c
index 99182f91..82859259 100644
--- a/lasso/id-ff/server.c
+++ b/lasso/id-ff/server.c
@@ -125,6 +125,18 @@ lasso_server_add_service(LassoServer *server, LassoNode *service)
}
+/**
+ * lasso_server_add_service_from_dump:
+ * @server: a #LassoServer
+ * @dump: the XML dump of a #LassoNode representing a service endpoint.
+ *
+ * An utility function that parse a #LassoNode dump an try to add it as a
+ * service using lasso_server_add_service.
+ *
+ * Return value: 0 if succesfull, LASSO_PARAM_ERROR_BAD_TYPE_OF_NULL_OBJECT if
+ * said dump is not a #LassoNode or is not of the righ type,
+ * LASSO_PARAM_ERROR_INVALID_VALUE if dump is NULL.
+ */
gint
lasso_server_add_service_from_dump(LassoServer *server, const gchar *dump)
{