diff options
author | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2010-01-04 09:14:33 +0000 |
---|---|---|
committer | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2010-01-04 09:14:33 +0000 |
commit | c8be196a5aa579f62d9688852ce41f531a13e02f (patch) | |
tree | 8a52362550541e63cc166c5e0401604bec2421a0 /lasso/xml/ws/wsa_attributed_uri.c | |
parent | 272507091774e230ce244c17bcd90d0a0efeda0b (diff) | |
download | lasso-c8be196a5aa579f62d9688852ce41f531a13e02f.tar.gz lasso-c8be196a5aa579f62d9688852ce41f531a13e02f.tar.xz lasso-c8be196a5aa579f62d9688852ce41f531a13e02f.zip |
WS XML: change signature of lasso_wsa_attributed_uri_new_with_string, add mappings
* wsa_attributed_uri.c:
- constify first argument of
lasso_wsa_attributed_uri_new_with_string.
- add add direct mappings from wsa:Action,wsa:To to
LassoWsAddrAttributedURI and from wsa:From,wsa:ReplyTo,wsa:FaultTo
to LassoWsAddrEndpointReference
Diffstat (limited to 'lasso/xml/ws/wsa_attributed_uri.c')
-rw-r--r-- | lasso/xml/ws/wsa_attributed_uri.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lasso/xml/ws/wsa_attributed_uri.c b/lasso/xml/ws/wsa_attributed_uri.c index 1cbab452..50c6aad8 100644 --- a/lasso/xml/ws/wsa_attributed_uri.c +++ b/lasso/xml/ws/wsa_attributed_uri.c @@ -75,6 +75,9 @@ class_init(LassoWsAddrAttributedURIClass *klass) lasso_node_class_set_nodename(nclass, "AttributedURI"); lasso_node_class_set_ns(nclass, LASSO_WSA_HREF, LASSO_WSA_PREFIX); lasso_node_class_add_snippets(nclass, schema_snippets); + lasso_registry_default_add_direct_mapping(LASSO_WSA_HREF, "Action", LASSO_LASSO_HREF, "LassoWsAddrAttributedURI"); + lasso_registry_default_add_direct_mapping(LASSO_WSA_HREF, "MessageID", LASSO_LASSO_HREF, "LassoWsAddrAttributedURI"); + lasso_registry_default_add_direct_mapping(LASSO_WSA_HREF, "To", LASSO_LASSO_HREF, "LassoWsAddrAttributedURI"); } GType @@ -126,7 +129,7 @@ lasso_wsa_attributed_uri_new() * Return value: a newly created #LassoWsAddrAttributedURI object **/ LassoWsAddrAttributedURI* -lasso_wsa_attributed_uri_new_with_string(char *content) +lasso_wsa_attributed_uri_new_with_string(const char *content) { LassoWsAddrAttributedURI *object; object = g_object_new(LASSO_TYPE_WSA_ATTRIBUTED_URI, NULL); |