diff options
| author | Nicolas Clapies <nclapies@entrouvert.com> | 2005-07-08 10:09:36 +0000 |
|---|---|---|
| committer | Nicolas Clapies <nclapies@entrouvert.com> | 2005-07-08 10:09:36 +0000 |
| commit | f8af9728bc82ae952a1bc271a0264cec9d038c25 (patch) | |
| tree | fb3f4a0cad14159784d686b61430306423574887 | |
| parent | 489afd57bf3426ef980b2a9320a2b875d7563692 (diff) | |
Now lasso_profile_service_add_data() returns a LassoDstData object, so it is possible to set optional attributes.
| -rw-r--r-- | lasso/id-wsf/profile_service.c | 8 | ||||
| -rw-r--r-- | lasso/id-wsf/profile_service.h | 2 | ||||
| -rw-r--r-- | swig/Lasso-wsf.i | 4 |
3 files changed, 6 insertions, 8 deletions
diff --git a/lasso/id-wsf/profile_service.c b/lasso/id-wsf/profile_service.c index 6a31068e..1a9351de 100644 --- a/lasso/id-wsf/profile_service.c +++ b/lasso/id-wsf/profile_service.c @@ -33,7 +33,7 @@ /* public methods */ /*****************************************************************************/ -gint +LassoDstData* lasso_profile_service_add_data(LassoProfileService *service, const gchar *xmlNodeBuffer) { LassoWsfProfile *profile; @@ -41,8 +41,8 @@ lasso_profile_service_add_data(LassoProfileService *service, const gchar *xmlNod xmlNode *root, *xmlnode; xmlDoc *doc; - g_return_val_if_fail(LASSO_IS_PROFILE_SERVICE(service) == TRUE, -1); - g_return_val_if_fail(xmlNodeBuffer != NULL, -1); + g_return_val_if_fail(LASSO_IS_PROFILE_SERVICE(service) == TRUE, NULL); + g_return_val_if_fail(xmlNodeBuffer != NULL, NULL); profile = LASSO_WSF_PROFILE(service); @@ -57,7 +57,7 @@ lasso_profile_service_add_data(LassoProfileService *service, const gchar *xmlNod LASSO_DST_QUERY_RESPONSE(profile->response)->Data = \ g_list_append(LASSO_DST_QUERY_RESPONSE(profile->response)->Data, data); - return 0; + return data; } LassoDstModification* diff --git a/lasso/id-wsf/profile_service.h b/lasso/id-wsf/profile_service.h index ea9cc0b4..75088b02 100644 --- a/lasso/id-wsf/profile_service.h +++ b/lasso/id-wsf/profile_service.h @@ -69,7 +69,7 @@ LASSO_EXPORT GType lasso_profile_service_get_type(void); LASSO_EXPORT LassoProfileService* lasso_profile_service_new(LassoServer *server); -LASSO_EXPORT gint lasso_profile_service_add_data(LassoProfileService *service, +LASSO_EXPORT LassoDstData *lasso_profile_service_add_data(LassoProfileService *service, const gchar *xmlNodeBuffer); LASSO_EXPORT LassoDstModification* lasso_profile_service_add_modification( diff --git a/swig/Lasso-wsf.i b/swig/Lasso-wsf.i index 486bfd35..3a2a7ebe 100644 --- a/swig/Lasso-wsf.i +++ b/swig/Lasso-wsf.i @@ -3750,9 +3750,7 @@ typedef struct { /* Methods */ - THROW_ERROR - int addData(char *xmlNodeBuffer); - END_THROW_ERROR + LassoDstData *addData(char *xmlNodeBuffer); LassoDstModification *addModification(char *select); |
