1/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2/*
3 * Copyright (C) 2007 Red Hat, Inc.
4 */
5
6#ifndef __SOUP_XMLRPC_OLD_H__
7#define __SOUP_XMLRPC_OLD_H__ 1
8
9#include <libsoup/soup-types.h>
10
11G_BEGIN_DECLS
12
13/* XML-RPC client */
14SOUP_AVAILABLE_IN_2_4
15SOUP_DEPRECATED_IN_2_52_FOR(soup_xmlrpc_build_request)
16char *soup_xmlrpc_build_method_call (const char *method_name,
17 GValue *params,
18 int n_params);
19SOUP_AVAILABLE_IN_2_4
20SOUP_DEPRECATED_IN_2_52_FOR(soup_xmlrpc_message_new)
21SoupMessage *soup_xmlrpc_request_new (const char *uri,
22 const char *method_name,
23 ...);
24SOUP_AVAILABLE_IN_2_4
25SOUP_DEPRECATED_IN_2_52_FOR(soup_xmlrpc_parse_response)
26gboolean soup_xmlrpc_parse_method_response (const char *method_response,
27 int length,
28 GValue *value,
29 GError **error);
30SOUP_AVAILABLE_IN_2_4
31SOUP_DEPRECATED_IN_2_52_FOR(soup_xmlrpc_parse_response)
32gboolean soup_xmlrpc_extract_method_response (const char *method_response,
33 int length,
34 GError **error,
35 GType type,
36 ...);
37
38/* XML-RPC server */
39SOUP_AVAILABLE_IN_2_4
40SOUP_DEPRECATED_IN_2_52_FOR(soup_xmlrpc_parse_request)
41gboolean soup_xmlrpc_parse_method_call (const char *method_call,
42 int length,
43 char **method_name,
44 GValueArray **params);
45SOUP_AVAILABLE_IN_2_4
46SOUP_DEPRECATED_IN_2_52_FOR(soup_xmlrpc_parse_request)
47gboolean soup_xmlrpc_extract_method_call (const char *method_call,
48 int length,
49 char **method_name,
50 ...);
51SOUP_AVAILABLE_IN_2_4
52SOUP_DEPRECATED_IN_2_52_FOR(soup_xmlrpc_build_response)
53char *soup_xmlrpc_build_method_response (GValue *value);
54SOUP_AVAILABLE_IN_2_4
55SOUP_DEPRECATED_IN_2_52_FOR(soup_xmlrpc_message_set_response)
56void soup_xmlrpc_set_response (SoupMessage *msg,
57 GType type,
58 ...);
59SOUP_AVAILABLE_IN_2_4
60SOUP_DEPRECATED_IN_2_52_FOR(soup_xmlrpc_message_set_fault)
61void soup_xmlrpc_set_fault (SoupMessage *msg,
62 int fault_code,
63 const char *fault_format,
64 ...) G_GNUC_PRINTF (3, 4);
65
66G_END_DECLS
67
68#endif /* __SOUP_XMLRPC_OLD_H__ */
69