diff options
| author | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2008-08-01 14:09:44 +0000 |
|---|---|---|
| committer | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2008-08-01 14:09:44 +0000 |
| commit | 0e6b3cd72e1726b2ceba91d7263b42bfa1f8e9c6 (patch) | |
| tree | b1b16453556fef3651b9f5556c63c8630d3ea334 | |
| parent | 7c9d025caf11bebf9d752736a9799e9f3e4f6d2e (diff) | |
fix naming in documentation of lasso_wsf_profile_set_description_from_offering, add new private function lasso_wsf_profile_set_resource_offering
| -rw-r--r-- | lasso/id-wsf/wsf_profile.c | 18 | ||||
| -rw-r--r-- | lasso/id-wsf/wsf_profile_private.h | 2 |
2 files changed, 17 insertions, 3 deletions
diff --git a/lasso/id-wsf/wsf_profile.c b/lasso/id-wsf/wsf_profile.c index d78548c3..f8865468 100644 --- a/lasso/id-wsf/wsf_profile.c +++ b/lasso/id-wsf/wsf_profile.c @@ -259,7 +259,7 @@ lasso_wsf_profile_get_description_auto(LassoDiscoServiceInstance *si, const gcha } /** - * lasso_wsf_profile_set_description_from_offering_with_sec_mech: + * lasso_wsf_profile_set_description_from_offering: * @profile: a #LassoWsfProfile * @offering: a #LassoDiscoResourceOffering containing descriptions * @security_mech_id: an URL representing the wished security mechanism, if NULL take the first descriptions @@ -329,12 +329,11 @@ lasso_wsf_profile_set_security_mech_id(LassoWsfProfile *profile, || lasso_security_mech_id_is_null_authentication(security_mech_id)) { g_assign_string(profile->private_data->security_mech_id, security_mech_id); if (profile->private_data->offering) { - lasso_wsf_profile_set_description_from_offering( + return lasso_wsf_profile_set_description_from_offering( profile, profile->private_data->offering, security_mech_id); } - return 0; } return LASSO_WSF_PROFILE_ERROR_UNSUPPORTED_SECURITY_MECHANISM; } @@ -400,6 +399,19 @@ lasso_wsf_profile_get_resource_offering(LassoWsfProfile *profile) } /** + * lasso_wsf_profile_set_resource_offering: + * @profile: + * @offering: + * + * + */ +void +lasso_wsf_profile_set_resource_offering(LassoWsfProfile *profile, LassoDiscoResourceOffering *offering) +{ + g_assign_gobject(profile->private_data->offering, offering); +} + +/** * lasso_wsf_profile_build_soap_envelope: * @refToMessageId: a char* string and the eventual MessageId of a SOAP request * we are responding to. diff --git a/lasso/id-wsf/wsf_profile_private.h b/lasso/id-wsf/wsf_profile_private.h index 83260ef4..42204c54 100644 --- a/lasso/id-wsf/wsf_profile_private.h +++ b/lasso/id-wsf/wsf_profile_private.h @@ -46,6 +46,8 @@ LassoSoapFault* lasso_wsf_profile_get_fault(LassoWsfProfile *profile); LassoDiscoDescription* lasso_wsf_profile_get_description_auto(LassoDiscoServiceInstance *si, const gchar *security_mech_id); +void lasso_wsf_profile_set_resource_offering(LassoWsfProfile *profile, LassoDiscoResourceOffering *offering); + #ifdef __cplusplus } #endif /* __cplusplus */ |
