diff options
| author | Damien Laniel <dlaniel@entrouvert.com> | 2007-06-04 11:59:36 +0000 |
|---|---|---|
| committer | Damien Laniel <dlaniel@entrouvert.com> | 2007-06-04 11:59:36 +0000 |
| commit | 41ec34ede5ea32b9643d23b05440095e34123259 (patch) | |
| tree | ff29c343af6fbadee2d905fdd7b6bf93c376148b | |
| parent | 38772af6073cbbfbbabfaeb2feb8eddad13a9e54 (diff) | |
make some queryItem attributes optional
| -rw-r--r-- | lasso/xml/id-wsf-2.0/dst_result_query_base.c | 4 | ||||
| -rw-r--r-- | lasso/xml/id-wsf-2.0/dstref_query_item.c | 8 | ||||
| -rw-r--r-- | lasso/xml/id-wsf-2.0/dstref_query_item.h | 4 |
3 files changed, 8 insertions, 8 deletions
diff --git a/lasso/xml/id-wsf-2.0/dst_result_query_base.c b/lasso/xml/id-wsf-2.0/dst_result_query_base.c index 82b00254..17779450 100644 --- a/lasso/xml/id-wsf-2.0/dst_result_query_base.c +++ b/lasso/xml/id-wsf-2.0/dst_result_query_base.c @@ -51,9 +51,9 @@ static struct XmlSnippet schema_snippets[] = { G_STRUCT_OFFSET(LassoIdWsf2DstResultQueryBase, ChangeFormat) }, { "itemIDRef", SNIPPET_ATTRIBUTE, G_STRUCT_OFFSET(LassoIdWsf2DstResultQueryBase, itemIDRef) }, - { "contingency", SNIPPET_ATTRIBUTE | SNIPPET_BOOLEAN, + { "contingency", SNIPPET_ATTRIBUTE | SNIPPET_BOOLEAN | SNIPPET_OPTIONAL, G_STRUCT_OFFSET(LassoIdWsf2DstResultQueryBase, contingency) }, - { "includeCommonAttributes", SNIPPET_ATTRIBUTE | SNIPPET_BOOLEAN, + { "includeCommonAttributes", SNIPPET_ATTRIBUTE | SNIPPET_BOOLEAN | SNIPPET_OPTIONAL, G_STRUCT_OFFSET(LassoIdWsf2DstResultQueryBase, includeCommonAttributes) }, { "changedSince", SNIPPET_ATTRIBUTE, G_STRUCT_OFFSET(LassoIdWsf2DstResultQueryBase, changedSince) }, diff --git a/lasso/xml/id-wsf-2.0/dstref_query_item.c b/lasso/xml/id-wsf-2.0/dstref_query_item.c index 97709112..e336ac6b 100644 --- a/lasso/xml/id-wsf-2.0/dstref_query_item.c +++ b/lasso/xml/id-wsf-2.0/dstref_query_item.c @@ -42,9 +42,9 @@ static struct XmlSnippet schema_snippets[] = { - { "count", SNIPPET_ATTRIBUTE | SNIPPET_INTEGER, + { "count", SNIPPET_ATTRIBUTE | SNIPPET_INTEGER | SNIPPET_OPTIONAL_NEG, G_STRUCT_OFFSET(LassoIdWsf2DstRefQueryItem, count) }, - { "offset", SNIPPET_ATTRIBUTE | SNIPPET_INTEGER, + { "offset", SNIPPET_ATTRIBUTE | SNIPPET_INTEGER | SNIPPET_OPTIONAL_NEG, G_STRUCT_OFFSET(LassoIdWsf2DstRefQueryItem, offset) }, { "setID", SNIPPET_ATTRIBUTE, G_STRUCT_OFFSET(LassoIdWsf2DstRefQueryItem, setID) }, @@ -63,8 +63,8 @@ static LassoNodeClass *parent_class = NULL; static void instance_init(LassoIdWsf2DstRefQueryItem *node) { - node->count = NULL; - node->offset = NULL; + node->count = -1; + node->offset = -1; node->setID = NULL; node->setReq = NULL; } diff --git a/lasso/xml/id-wsf-2.0/dstref_query_item.h b/lasso/xml/id-wsf-2.0/dstref_query_item.h index 06912327..4668ee56 100644 --- a/lasso/xml/id-wsf-2.0/dstref_query_item.h +++ b/lasso/xml/id-wsf-2.0/dstref_query_item.h @@ -62,8 +62,8 @@ struct _LassoIdWsf2DstRefQueryItem { /*< public >*/ /* attributes */ - char *count; - char *offset; + int count; + int offset; char *setID; char *setReq; }; |
