soup-autocleanups.h 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. /*
  2. * Copyright 2015 Red Hat, Inc.
  3. *
  4. * This library is free software; you can redistribute it and/or
  5. * modify it under the terms of the GNU Lesser General Public
  6. * License as published by the Free Software Foundation; either
  7. * version 2 of the License, or (at your option) any later version.
  8. *
  9. * This library is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  12. * Lesser General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU Lesser General Public
  15. * License along with this library; if not, see <http://www.gnu.org/licenses/>.
  16. */
  17. #if !defined (__SOUP_H_INSIDE__) && !defined (LIBSOUP_COMPILATION)
  18. #error "Only <libsoup/soup.h> can be included directly."
  19. #endif
  20. #ifndef SOUP_AUTOCLEANUPS_H
  21. #define SOUP_AUTOCLEANUPS_H
  22. #if SOUP_VERSION_MAX_ALLOWED >= SOUP_VERSION_2_52
  23. #ifndef __GI_SCANNER__
  24. #ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
  25. G_DEFINE_AUTOPTR_CLEANUP_FUNC(SoupAddress, g_object_unref)
  26. G_DEFINE_AUTOPTR_CLEANUP_FUNC(SoupAuth, g_object_unref)
  27. G_DEFINE_AUTOPTR_CLEANUP_FUNC(SoupAuthDomain, g_object_unref)
  28. G_DEFINE_AUTOPTR_CLEANUP_FUNC(SoupAuthDomainBasic, g_object_unref)
  29. G_DEFINE_AUTOPTR_CLEANUP_FUNC(SoupAuthDomainDigest, g_object_unref)
  30. G_DEFINE_AUTOPTR_CLEANUP_FUNC(SoupAuthManager, g_object_unref)
  31. G_DEFINE_AUTOPTR_CLEANUP_FUNC(SoupBuffer, soup_buffer_free)
  32. G_DEFINE_AUTOPTR_CLEANUP_FUNC(SoupCache, g_object_unref)
  33. G_DEFINE_AUTOPTR_CLEANUP_FUNC(SoupContentDecoder, g_object_unref)
  34. G_DEFINE_AUTOPTR_CLEANUP_FUNC(SoupContentSniffer, g_object_unref)
  35. G_DEFINE_AUTOPTR_CLEANUP_FUNC(SoupCookie, soup_cookie_free)
  36. G_DEFINE_AUTOPTR_CLEANUP_FUNC(SoupCookieJar, g_object_unref)
  37. G_DEFINE_AUTOPTR_CLEANUP_FUNC(SoupCookieJarDB, g_object_unref)
  38. G_DEFINE_AUTOPTR_CLEANUP_FUNC(SoupCookieJarText, g_object_unref)
  39. G_DEFINE_AUTOPTR_CLEANUP_FUNC(SoupDate, soup_date_free)
  40. G_DEFINE_AUTOPTR_CLEANUP_FUNC(SoupLogger, g_object_unref)
  41. G_DEFINE_AUTOPTR_CLEANUP_FUNC(SoupMessage, g_object_unref)
  42. G_DEFINE_AUTOPTR_CLEANUP_FUNC(SoupMessageBody, soup_message_body_free)
  43. G_DEFINE_AUTOPTR_CLEANUP_FUNC(SoupMessageHeaders, soup_message_headers_free)
  44. G_DEFINE_AUTOPTR_CLEANUP_FUNC(SoupMultipart, soup_multipart_free)
  45. G_DEFINE_AUTOPTR_CLEANUP_FUNC(SoupMultipartInputStream, g_object_unref)
  46. G_DEFINE_AUTOPTR_CLEANUP_FUNC(SoupRequest, g_object_unref)
  47. G_DEFINE_AUTOPTR_CLEANUP_FUNC(SoupRequestData, g_object_unref)
  48. G_DEFINE_AUTOPTR_CLEANUP_FUNC(SoupRequestFile, g_object_unref)
  49. G_DEFINE_AUTOPTR_CLEANUP_FUNC(SoupRequestHTTP, g_object_unref)
  50. G_DEFINE_AUTOPTR_CLEANUP_FUNC(SoupServer, g_object_unref)
  51. G_DEFINE_AUTOPTR_CLEANUP_FUNC(SoupSession, g_object_unref)
  52. G_DEFINE_AUTOPTR_CLEANUP_FUNC(SoupSessionAsync, g_object_unref)
  53. G_DEFINE_AUTOPTR_CLEANUP_FUNC(SoupSessionFeature, g_object_unref)
  54. G_DEFINE_AUTOPTR_CLEANUP_FUNC(SoupSessionSync, g_object_unref)
  55. G_DEFINE_AUTOPTR_CLEANUP_FUNC(SoupSocket, g_object_unref)
  56. G_DEFINE_AUTOPTR_CLEANUP_FUNC(SoupURI, soup_uri_free)
  57. G_DEFINE_AUTOPTR_CLEANUP_FUNC(SoupWebsocketConnection, g_object_unref)
  58. G_DEFINE_AUTOPTR_CLEANUP_FUNC(SoupXMLRPCParams, soup_xmlrpc_params_free)
  59. #endif
  60. #endif
  61. #endif
  62. #endif /* SOUP_AUTOCLEANUPS_H */