source: trunk/third/libsoup/libsoup/soup-soap-response.h @ 21108

Revision 21108, 2.9 KB checked in by ghudson, 20 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r21107, which included commits to RCS files with non-trunk default branches.
Line 
1/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2/*
3 * Copyright (C) 2003, Novell, Inc.
4 */
5
6#ifndef SOUP_SOAP_RESPONSE_H
7#define SOUP_SOAP_RESPONSE_H
8
9#include <glib-object.h>
10#include <libxml/tree.h>
11
12G_BEGIN_DECLS
13
14#define SOUP_TYPE_SOAP_RESPONSE            (soup_soap_response_get_type ())
15#define SOUP_SOAP_RESPONSE(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), SOUP_TYPE_SOAP_RESPONSE, SoupSoapResponse))
16#define SOUP_SOAP_RESPONSE_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), SOUP_TYPE_SOAP_RESPONSE, SoupSoapResponseClass))
17#define SOUP_IS_SOAP_RESPONSE(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SOUP_TYPE_SOAP_RESPONSE))
18#define SOUP_IS_SOAP_RESPONSE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SOUP_TYPE_SOAP_RESPONSE))
19#define SOUP_SOAP_RESPONSE_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), SOUP_TYPE_SOAP_RESPONSE, SoupSoapResponseClass))
20
21typedef struct _SoupSoapResponsePrivate SoupSoapResponsePrivate;
22
23typedef struct {
24        GObject parent;
25        SoupSoapResponsePrivate *priv;
26} SoupSoapResponse;
27
28typedef struct {
29        GObjectClass parent_class;
30} SoupSoapResponseClass;
31
32GType             soup_soap_response_get_type (void);
33
34SoupSoapResponse *soup_soap_response_new (void);
35SoupSoapResponse *soup_soap_response_new_from_string (const char *xmlstr);
36
37gboolean          soup_soap_response_from_string (SoupSoapResponse *response, const char *xmlstr);
38
39const char       *soup_soap_response_get_method_name (SoupSoapResponse *response);
40void              soup_soap_response_set_method_name (SoupSoapResponse *response,
41                                                      const char *method_name);
42
43typedef xmlNode SoupSoapParameter;
44
45const char        *soup_soap_parameter_get_name (SoupSoapParameter *param);
46int                soup_soap_parameter_get_int_value (SoupSoapParameter *param);
47char              *soup_soap_parameter_get_string_value (SoupSoapParameter *param);
48SoupSoapParameter *soup_soap_parameter_get_first_child (SoupSoapParameter *param);
49SoupSoapParameter *soup_soap_parameter_get_first_child_by_name (SoupSoapParameter *param,
50                                                                const char *name);
51SoupSoapParameter *soup_soap_parameter_get_next_child (SoupSoapParameter *param);
52SoupSoapParameter *soup_soap_parameter_get_next_child_by_name (SoupSoapParameter *param,
53                                                               const char *name);
54char              *soup_soap_parameter_get_property (SoupSoapParameter *param, const char *prop_name);
55
56const GList       *soup_soap_response_get_parameters (SoupSoapResponse *response);
57SoupSoapParameter *soup_soap_response_get_first_parameter (SoupSoapResponse *response);
58SoupSoapParameter *soup_soap_response_get_first_parameter_by_name (SoupSoapResponse *response,
59                                                                   const char *name);
60SoupSoapParameter *soup_soap_response_get_next_parameter (SoupSoapResponse *response,
61                                                          SoupSoapParameter *from);
62SoupSoapParameter *soup_soap_response_get_next_parameter_by_name (SoupSoapResponse *response,
63                                                                  SoupSoapParameter *from,
64                                                                  const char *name);
65
66G_END_DECLS
67
68#endif
Note: See TracBrowser for help on using the repository browser.