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 | |
11 | G_BEGIN_DECLS |
12 | |
13 | /* XML-RPC client */ |
14 | SOUP_AVAILABLE_IN_2_4 |
15 | SOUP_DEPRECATED_IN_2_52_FOR(soup_xmlrpc_build_request) |
16 | char *soup_xmlrpc_build_method_call (const char *method_name, |
17 | GValue *params, |
18 | int n_params); |
19 | SOUP_AVAILABLE_IN_2_4 |
20 | SOUP_DEPRECATED_IN_2_52_FOR(soup_xmlrpc_message_new) |
21 | SoupMessage *soup_xmlrpc_request_new (const char *uri, |
22 | const char *method_name, |
23 | ...); |
24 | SOUP_AVAILABLE_IN_2_4 |
25 | SOUP_DEPRECATED_IN_2_52_FOR(soup_xmlrpc_parse_response) |
26 | gboolean soup_xmlrpc_parse_method_response (const char *method_response, |
27 | int length, |
28 | GValue *value, |
29 | GError **error); |
30 | SOUP_AVAILABLE_IN_2_4 |
31 | SOUP_DEPRECATED_IN_2_52_FOR(soup_xmlrpc_parse_response) |
32 | gboolean (const char *method_response, |
33 | int length, |
34 | GError **error, |
35 | GType type, |
36 | ...); |
37 | |
38 | /* XML-RPC server */ |
39 | SOUP_AVAILABLE_IN_2_4 |
40 | SOUP_DEPRECATED_IN_2_52_FOR(soup_xmlrpc_parse_request) |
41 | gboolean soup_xmlrpc_parse_method_call (const char *method_call, |
42 | int length, |
43 | char **method_name, |
44 | GValueArray **params); |
45 | SOUP_AVAILABLE_IN_2_4 |
46 | SOUP_DEPRECATED_IN_2_52_FOR(soup_xmlrpc_parse_request) |
47 | gboolean (const char *method_call, |
48 | int length, |
49 | char **method_name, |
50 | ...); |
51 | SOUP_AVAILABLE_IN_2_4 |
52 | SOUP_DEPRECATED_IN_2_52_FOR(soup_xmlrpc_build_response) |
53 | char *soup_xmlrpc_build_method_response (GValue *value); |
54 | SOUP_AVAILABLE_IN_2_4 |
55 | SOUP_DEPRECATED_IN_2_52_FOR(soup_xmlrpc_message_set_response) |
56 | void soup_xmlrpc_set_response (SoupMessage *msg, |
57 | GType type, |
58 | ...); |
59 | SOUP_AVAILABLE_IN_2_4 |
60 | SOUP_DEPRECATED_IN_2_52_FOR(soup_xmlrpc_message_set_fault) |
61 | void soup_xmlrpc_set_fault (SoupMessage *msg, |
62 | int fault_code, |
63 | const char *fault_format, |
64 | ...) G_GNUC_PRINTF (3, 4); |
65 | |
66 | G_END_DECLS |
67 | |
68 | #endif /* __SOUP_XMLRPC_OLD_H__ */ |
69 | |