[xml] change saml_advice.h to declarer the real node type

It also needed a change to bindings.py to parse struct as well as
typedef node classes.
This commit is contained in:
Benjamin Dauvergne 2011-12-16 10:02:14 +01:00
parent ed9c981989
commit 591a47002d
2 changed files with 4 additions and 2 deletions

View File

@ -483,6 +483,9 @@ def parse_header(header_file):
pass
else:
# TODO: Add parsing of OFTYPE
# Transform struct to typedef
# example: "struct _LassoAssertion" -> "LassoAssertion"
line = re.sub('\s+struct _', ' ', line)
member_match = re.match('\s+(\w+)\s+(\*?\w+)', line)
if member_match:
member_type, member_name = normalise_var(member_match.group(1), member_match.group(2))

View File

@ -52,8 +52,7 @@ struct _LassoSamlAdvice {
/* <element ref="saml:AssertionIDReference"/> */
GList *AssertionIDReference; /* of LassoNode */
/* <element ref="saml:Assertion"/> */
LassoNode *Assertion; /* actually LassoSamlAssertion* but it recurses */
struct _LassoSamlAssertion *Assertion;
};
struct _LassoSamlAdviceClass {