From ad3751f2b02645165a9681907b251abef2884828 Mon Sep 17 00:00:00 2001 From: John Dennis Date: Wed, 27 May 2015 12:00:33 -0400 Subject: [PATCH] LassoSamlp2IDPList is not list capable LassoSamlp2IDPList is supposed to handle a list of LassoSamlp2IDPEntry but in fact it had no list support. Change the snippet flag SNIPPET_NODE to SNIPPET_LIST_NODES and add the special list comment on the struct member so that the binding generator knows what type of GList it is. Signed-off-by: John Dennis License: MIT --- lasso/xml/saml-2.0/samlp2_idp_list.c | 2 +- lasso/xml/saml-2.0/samlp2_idp_list.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lasso/xml/saml-2.0/samlp2_idp_list.c b/lasso/xml/saml-2.0/samlp2_idp_list.c index fad060a6..e2deeb7b 100644 --- a/lasso/xml/saml-2.0/samlp2_idp_list.c +++ b/lasso/xml/saml-2.0/samlp2_idp_list.c @@ -47,7 +47,7 @@ static struct XmlSnippet schema_snippets[] = { - { "IDPEntry", SNIPPET_NODE, + { "IDPEntry", SNIPPET_LIST_NODES, G_STRUCT_OFFSET(LassoSamlp2IDPList, IDPEntry), NULL, NULL, NULL}, { "GetComplete", SNIPPET_CONTENT, G_STRUCT_OFFSET(LassoSamlp2IDPList, GetComplete), NULL, NULL, NULL}, diff --git a/lasso/xml/saml-2.0/samlp2_idp_list.h b/lasso/xml/saml-2.0/samlp2_idp_list.h index 09622ab2..f760f5aa 100644 --- a/lasso/xml/saml-2.0/samlp2_idp_list.h +++ b/lasso/xml/saml-2.0/samlp2_idp_list.h @@ -54,7 +54,7 @@ struct _LassoSamlp2IDPList { /*< public >*/ /* elements */ - LassoSamlp2IDPEntry *IDPEntry; + GList *IDPEntry; /* of LassoSamlp2IDPEntry */ char *GetComplete; };