diff options
author | Frederic Peters <fpeters@entrouvert.com> | 2004-11-26 14:13:02 +0000 |
---|---|---|
committer | Frederic Peters <fpeters@entrouvert.com> | 2004-11-26 14:13:02 +0000 |
commit | 8ad4344cd5b3005a86276474d323b551fabc6f27 (patch) | |
tree | 2f19be819fcd5489c1d50bee04737dff13c8a12d /lasso/xml/samlp_status.c | |
parent | ebd6acd6d72b22d292789cb082cf4d808877b48c (diff) | |
download | lasso-8ad4344cd5b3005a86276474d323b551fabc6f27.tar.gz lasso-8ad4344cd5b3005a86276474d323b551fabc6f27.tar.xz lasso-8ad4344cd5b3005a86276474d323b551fabc6f27.zip |
moved xml snippet stuffs into new internals.h; those should not be exposed;
changed snippet type from character to enum (defined in internals.h)
Diffstat (limited to 'lasso/xml/samlp_status.c')
-rw-r--r-- | lasso/xml/samlp_status.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lasso/xml/samlp_status.c b/lasso/xml/samlp_status.c index 5b4e4df1..acbc9abe 100644 --- a/lasso/xml/samlp_status.c +++ b/lasso/xml/samlp_status.c @@ -47,8 +47,8 @@ #define snippets() \ LassoSamlpStatus *status = LASSO_SAMLP_STATUS(node); \ struct XmlSnippet snippets[] = { \ - { "StatusCode", 'n', (void**)&(status->StatusCode) }, \ - { "StatusMessage", 'c', (void**)&(status->StatusMessage) }, \ + { "StatusCode", SNIPPET_NODE, (void**)&(status->StatusCode) }, \ + { "StatusMessage", SNIPPET_CONTENT, (void**)&(status->StatusMessage) }, \ { NULL, 0, NULL} \ }; @@ -62,7 +62,7 @@ get_xmlNode(LassoNode *node) xmlnode = xmlNewNode(NULL, "Status"); xmlSetNs(xmlnode, xmlNewNs(xmlnode, LASSO_SAML_PROTOCOL_HREF, LASSO_SAML_PROTOCOL_PREFIX)); - lasso_node_build_xml_with_snippets(xmlnode, snippets); + build_xml_with_snippets(xmlnode, snippets); return xmlnode; } @@ -74,7 +74,7 @@ init_from_xml(LassoNode *node, xmlNode *xmlnode) if (parent_class->init_from_xml(node, xmlnode)) return -1; - lasso_node_init_xml_with_snippets(xmlnode, snippets); + init_xml_with_snippets(xmlnode, snippets); return 0; } |