summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrederic Peters <fpeters@entrouvert.com>2006-10-28 11:13:20 +0000
committerFrederic Peters <fpeters@entrouvert.com>2006-10-28 11:13:20 +0000
commit8dc72e6121cd232644ae538e6cb1d8081d657103 (patch)
treee4d351a639a72f388002f5cec05c0e61798183bf
parent31d9c9365a6d395ebeff477855a8b90ffefb1b3f (diff)
marked maxInteractTime as optional
-rw-r--r--lasso/xml/is_interaction_request.c22
1 files changed, 13 insertions, 9 deletions
diff --git a/lasso/xml/is_interaction_request.c b/lasso/xml/is_interaction_request.c
index 73c2eadc..8ae109b5 100644
--- a/lasso/xml/is_interaction_request.c
+++ b/lasso/xml/is_interaction_request.c
@@ -46,15 +46,19 @@
/*****************************************************************************/
static struct XmlSnippet schema_snippets[] = {
- { "ResourceID", SNIPPET_NODE, G_STRUCT_OFFSET(LassoIsInteractionRequest, ResourceID) },
- { "EncryptedResourceID", SNIPPET_NODE, G_STRUCT_OFFSET(LassoIsInteractionRequest,
- EncryptedResourceID) },
- { "Inquiry", SNIPPET_LIST_NODES, G_STRUCT_OFFSET(LassoIsInteractionRequest, Inquiry) },
+ { "ResourceID", SNIPPET_NODE,
+ G_STRUCT_OFFSET(LassoIsInteractionRequest, ResourceID) },
+ { "EncryptedResourceID", SNIPPET_NODE,
+ G_STRUCT_OFFSET(LassoIsInteractionRequest, EncryptedResourceID) },
+ { "Inquiry", SNIPPET_LIST_NODES,
+ G_STRUCT_OFFSET(LassoIsInteractionRequest, Inquiry) },
/* TODO : KeyInfo */
- { "id", SNIPPET_ATTRIBUTE, G_STRUCT_OFFSET(LassoIsInteractionRequest, id) },
- { "language", SNIPPET_ATTRIBUTE, G_STRUCT_OFFSET(LassoIsInteractionRequest, language) },
- { "maxInteractTime", SNIPPET_ATTRIBUTE, G_STRUCT_OFFSET(LassoIsInteractionRequest,
- maxInteractTime) },
+ { "id", SNIPPET_ATTRIBUTE,
+ G_STRUCT_OFFSET(LassoIsInteractionRequest, id) },
+ { "language", SNIPPET_ATTRIBUTE,
+ G_STRUCT_OFFSET(LassoIsInteractionRequest, language) },
+ { "maxInteractTime", SNIPPET_ATTRIBUTE | SNIPPET_OPTIONAL,
+ G_STRUCT_OFFSET(LassoIsInteractionRequest, maxInteractTime) },
/* TODO : signed */
{ NULL, 0, 0}
};
@@ -72,7 +76,7 @@ instance_init(LassoIsInteractionRequest *node)
/* TODO : KeyInfo */
node->id = NULL;
node->language = NULL;
- node->maxInteractTime = 0; /* FIXME : optional integer attribute */
+ node->maxInteractTime = 0;
/* TODO : signed */
}