summaryrefslogtreecommitdiffstats
path: root/lasso/xml
diff options
context:
space:
mode:
authorNicolas Clapies <nclapies@entrouvert.com>2004-12-15 13:12:56 +0000
committerNicolas Clapies <nclapies@entrouvert.com>2004-12-15 13:12:56 +0000
commit6ed1fbe7bedb8ea5639f34fe473447fcf5a6c654 (patch)
tree1b5ee9a5cf8528d572a059ea1f1baa9ac6d0d919 /lasso/xml
parentbe7a74a3482ca07624206c9fde54948c8be1d238 (diff)
downloadlasso-6ed1fbe7bedb8ea5639f34fe473447fcf5a6c654.tar.gz
lasso-6ed1fbe7bedb8ea5639f34fe473447fcf5a6c654.tar.xz
lasso-6ed1fbe7bedb8ea5639f34fe473447fcf5a6c654.zip
Added support of modify request from a SP to AP : updated element's class in level 1 (Modify and ModifyResponse) and implemented modify request in level 2 id wsf.
Diffstat (limited to 'lasso/xml')
-rw-r--r--lasso/xml/dst_modification.h2
-rw-r--r--lasso/xml/dst_modify.c8
-rw-r--r--lasso/xml/dst_modify.h4
-rw-r--r--lasso/xml/dst_modify_response.c6
-rw-r--r--lasso/xml/dst_modify_response.h2
5 files changed, 15 insertions, 7 deletions
diff --git a/lasso/xml/dst_modification.h b/lasso/xml/dst_modification.h
index ea8d2769..82ba3a2d 100644
--- a/lasso/xml/dst_modification.h
+++ b/lasso/xml/dst_modification.h
@@ -52,7 +52,7 @@ struct _LassoDstModification {
LassoNode parent;
char *Select;
- LassoDstNewData *NewData;
+ GList *NewData;
char *id;
char *notChangedSince;
diff --git a/lasso/xml/dst_modify.c b/lasso/xml/dst_modify.c
index 801b9917..545504f6 100644
--- a/lasso/xml/dst_modify.c
+++ b/lasso/xml/dst_modify.c
@@ -64,7 +64,7 @@ static struct XmlSnippet schema_snippets[] = {
{ "ResourceID", SNIPPET_NODE, G_STRUCT_OFFSET(LassoDstModify, ResourceID) },
{ "EncryptedResourceID", SNIPPET_NODE, G_STRUCT_OFFSET(LassoDstModify,
EncryptedResourceID) },
- { "Modification", SNIPPET_NODE, G_STRUCT_OFFSET(LassoDstModify,
+ { "Modification", SNIPPET_LIST_NODES, G_STRUCT_OFFSET(LassoDstModify,
Modification) },
/* FIXME : implement Extension element */
{ "id", SNIPPET_ATTRIBUTE, G_STRUCT_OFFSET(LassoDstModify, id) },
@@ -155,12 +155,16 @@ lasso_dst_modify_get_type()
}
LassoDstModify*
-lasso_dst_modify_new()
+lasso_dst_modify_new(LassoDstModification *modification)
{
LassoDstModify *modify;
+ g_return_val_if_fail(LASSO_IS_DST_MODIFICATION(modification) == TRUE, NULL);
+
modify = g_object_new(LASSO_TYPE_DST_MODIFY, NULL);
+ modify->Modification = g_list_append(modify->Modification, modification);
+
return modify;
}
diff --git a/lasso/xml/dst_modify.h b/lasso/xml/dst_modify.h
index ab98cc13..689cfddc 100644
--- a/lasso/xml/dst_modify.h
+++ b/lasso/xml/dst_modify.h
@@ -53,7 +53,7 @@ struct _LassoDstModify {
LassoDiscoResourceID *ResourceID;
LassoDiscoEncryptedResourceID *EncryptedResourceID;
- LassoDstModification *Modification;
+ GList *Modification;
/* FIXME : implement Extension element */
char *id;
@@ -69,7 +69,7 @@ struct _LassoDstModifyClass {
LASSO_EXPORT GType lasso_dst_modify_get_type(void);
-LASSO_EXPORT LassoDstModify* lasso_dst_modify_new(void);
+LASSO_EXPORT LassoDstModify* lasso_dst_modify_new(LassoDstModification *modification);
#ifdef __cplusplus
}
diff --git a/lasso/xml/dst_modify_response.c b/lasso/xml/dst_modify_response.c
index 7708bac1..6619dd72 100644
--- a/lasso/xml/dst_modify_response.c
+++ b/lasso/xml/dst_modify_response.c
@@ -136,12 +136,16 @@ lasso_dst_modify_response_get_type()
}
LassoDstModifyResponse*
-lasso_dst_modify_response_new()
+lasso_dst_modify_response_new(LassoUtilityStatus *status)
{
LassoDstModifyResponse *modify_response;
+ g_return_val_if_fail(LASSO_IS_UTILITY_STATUS(status) == TRUE, NULL);
+
modify_response = g_object_new(LASSO_TYPE_DST_MODIFY_RESPONSE, NULL);
+ modify_response->Status = status;
+
return modify_response;
}
diff --git a/lasso/xml/dst_modify_response.h b/lasso/xml/dst_modify_response.h
index 9ba53bfe..4100a5a6 100644
--- a/lasso/xml/dst_modify_response.h
+++ b/lasso/xml/dst_modify_response.h
@@ -67,7 +67,7 @@ struct _LassoDstModifyResponseClass {
LASSO_EXPORT GType lasso_dst_modify_response_get_type(void);
-LASSO_EXPORT LassoDstModifyResponse* lasso_dst_modify_response_new(void);
+LASSO_EXPORT LassoDstModifyResponse* lasso_dst_modify_response_new(LassoUtilityStatus *status);
#ifdef __cplusplus
}