From fef00bc20dd194726a1b8379662e9bc3d6fe34c5 Mon Sep 17 00:00:00 2001 From: Rodrigo Moya Date: Wed, 26 Nov 2003 15:48:59 +0000 Subject: [PATCH] new function. 2003-11-26 Rodrigo Moya * libsoup/soup-soap-response.[ch] (soup_soap_parameter_get_string_value): new function. --- ChangeLog | 5 +++++ libsoup/soup-soap-response.c | 8 ++++++++ libsoup/soup-soap-response.h | 1 + 3 files changed, 14 insertions(+) diff --git a/ChangeLog b/ChangeLog index 651f8f7..5e35f93 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2003-11-26 Rodrigo Moya + * libsoup/soup-soap-response.[ch] + (soup_soap_parameter_get_string_value): new function. + +2003-11-26 Rodrigo Moya + * libsoup/soup-soap-response.[ch]: added SoupSoapParameter structure, to "hide" the usage of xmlNode's. (soup_soap_parameter_get_name): functions to manage SOAP diff --git a/libsoup/soup-soap-response.c b/libsoup/soup-soap-response.c index 37a7004..9d838e0 100644 --- a/libsoup/soup-soap-response.c +++ b/libsoup/soup-soap-response.c @@ -237,6 +237,14 @@ soup_soap_parameter_get_name (SoupSoapParameter *param) return (const char *) param->name; } +const char * +soup_soap_parameter_get_string_value (SoupSoapParameter *param) +{ + g_return_val_if_fail (param != NULL, NULL); + + return (const char *) xmlNodeGetContent (param); +} + /** * soup_soap_response_get_parameters: * @response: the %SoupSoapResponse object. diff --git a/libsoup/soup-soap-response.h b/libsoup/soup-soap-response.h index 657d8d4..4858cf6 100644 --- a/libsoup/soup-soap-response.h +++ b/libsoup/soup-soap-response.h @@ -44,6 +44,7 @@ void soup_soap_response_set_method_name (SoupSoapResponse *response typedef xmlNode SoupSoapParameter; const char *soup_soap_parameter_get_name (SoupSoapParameter *param); +const char *soup_soap_parameter_get_string_value (SoupSoapParameter *param); const GList *soup_soap_response_get_parameters (SoupSoapResponse *response); SoupSoapParameter *soup_soap_response_get_first_parameter (SoupSoapResponse *response); -- 2.7.4