soup-xmlrpc-old.h 2.3 KB

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