From 51506ed0d582f7b484320ce7503ced004d6c5b9f Mon Sep 17 00:00:00 2001 From: Rodrigo Moya Date: Thu, 29 Jan 2004 18:23:25 +0000 Subject: [PATCH] new function. 2004-01-29 Rodrigo Moya * libsoup/soup-soap-response.[ch] (soup_soap_parameter_get_property): new function. --- ChangeLog | 5 +++++ libsoup/soup-soap-response.c | 11 +++++++++++ libsoup/soup-soap-response.h | 1 + 3 files changed, 17 insertions(+) diff --git a/ChangeLog b/ChangeLog index 50b244c..168e13f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2004-01-29 Rodrigo Moya + * libsoup/soup-soap-response.[ch] (soup_soap_parameter_get_property): + new function. + +2004-01-29 Rodrigo Moya + * libsoup/soup-soap-response.[ch] (soup_soap_parameter_get_string_value): removed 'const' from return type. diff --git a/libsoup/soup-soap-response.c b/libsoup/soup-soap-response.c index 079cd7d..35920e0 100644 --- a/libsoup/soup-soap-response.c +++ b/libsoup/soup-soap-response.c @@ -347,6 +347,17 @@ soup_soap_parameter_get_next_child_by_name (SoupSoapParameter *param, } /** + * soup_soap_parameter_get_property: + * @param: + * @prop_name: Name of the property to retrieve. + */ +const char * +soup_soap_parameter_get_property (SoupSoapParameter *param, const char *prop_name) +{ + return xmlGetProp (param, prop_name); +} + +/** * soup_soap_response_get_parameters: * @response: the %SoupSoapResponse object. * diff --git a/libsoup/soup-soap-response.h b/libsoup/soup-soap-response.h index a13f56c..a4a653d 100644 --- a/libsoup/soup-soap-response.h +++ b/libsoup/soup-soap-response.h @@ -52,6 +52,7 @@ SoupSoapParameter *soup_soap_parameter_get_first_child_by_name (SoupSoapParamete SoupSoapParameter *soup_soap_parameter_get_next_child (SoupSoapParameter *param); SoupSoapParameter *soup_soap_parameter_get_next_child_by_name (SoupSoapParameter *param, const char *name); +const char *soup_soap_parameter_get_property (SoupSoapParameter *param, const char *prop_name); const GList *soup_soap_response_get_parameters (SoupSoapResponse *response); SoupSoapParameter *soup_soap_response_get_first_parameter (SoupSoapResponse *response); -- 2.7.4