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 | |
| 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
| -rw-r--r-- | lasso/xml/ws/wsa_attributed_uri.c | 5 | ||||
| -rw-r--r-- | lasso/xml/ws/wsa_attributed_uri.h | 2 | ||||
| -rw-r--r-- | lasso/xml/ws/wsa_endpoint_reference.c | 3 |
3 files changed, 8 insertions, 2 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); diff --git a/lasso/xml/ws/wsa_attributed_uri.h b/lasso/xml/ws/wsa_attributed_uri.h index 1dfd9706..019c0fea 100644 --- a/lasso/xml/ws/wsa_attributed_uri.h +++ b/lasso/xml/ws/wsa_attributed_uri.h @@ -74,7 +74,7 @@ struct _LassoWsAddrAttributedURIClass { LASSO_EXPORT GType lasso_wsa_attributed_uri_get_type(void); LASSO_EXPORT LassoWsAddrAttributedURI* lasso_wsa_attributed_uri_new(void); -LASSO_EXPORT LassoWsAddrAttributedURI* lasso_wsa_attributed_uri_new_with_string(char *content); +LASSO_EXPORT LassoWsAddrAttributedURI* lasso_wsa_attributed_uri_new_with_string(const char *content); #ifdef __cplusplus diff --git a/lasso/xml/ws/wsa_endpoint_reference.c b/lasso/xml/ws/wsa_endpoint_reference.c index 9b2ba300..eecb1f6c 100644 --- a/lasso/xml/ws/wsa_endpoint_reference.c +++ b/lasso/xml/ws/wsa_endpoint_reference.c @@ -86,6 +86,9 @@ class_init(LassoWsAddrEndpointReferenceClass *klass) lasso_node_class_set_nodename(nclass, "EndpointReference"); 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, "From", LASSO_LASSO_HREF, "LassoWsAddrEndpointReference"); + lasso_registry_default_add_direct_mapping(LASSO_WSA_HREF, "ReplyTo", LASSO_LASSO_HREF, "LassoWsAddrEndpointReference"); + lasso_registry_default_add_direct_mapping(LASSO_WSA_HREF, "FaultTo", LASSO_LASSO_HREF, "LassoWsAddrEndpointReference"); } GType |
