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
18#if !defined (__SOUP_H_INSIDE__) && !defined (LIBSOUP_COMPILATION)
19#error "Only <libsoup/soup.h> can be included directly."
20#endif
21
22#ifndef __SOUP_AUTOCLEANUPS_H__
23#define __SOUP_AUTOCLEANUPS_H__
24
25#if SOUP_VERSION_MAX_ALLOWED >= SOUP_VERSION_2_52
26#ifndef __GI_SCANNER__
27#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
28
29G_DEFINE_AUTOPTR_CLEANUP_FUNC(SoupAddress, g_object_unref)
30G_DEFINE_AUTOPTR_CLEANUP_FUNC(SoupAuth, g_object_unref)
31G_DEFINE_AUTOPTR_CLEANUP_FUNC(SoupAuthDomain, g_object_unref)
32G_DEFINE_AUTOPTR_CLEANUP_FUNC(SoupAuthDomainBasic, g_object_unref)
33G_DEFINE_AUTOPTR_CLEANUP_FUNC(SoupAuthDomainDigest, g_object_unref)
34G_DEFINE_AUTOPTR_CLEANUP_FUNC(SoupAuthManager, g_object_unref)
35G_DEFINE_AUTOPTR_CLEANUP_FUNC(SoupBuffer, soup_buffer_free)
36G_DEFINE_AUTOPTR_CLEANUP_FUNC(SoupCache, g_object_unref)
37G_DEFINE_AUTOPTR_CLEANUP_FUNC(SoupContentDecoder, g_object_unref)
38G_DEFINE_AUTOPTR_CLEANUP_FUNC(SoupContentSniffer, g_object_unref)
39G_DEFINE_AUTOPTR_CLEANUP_FUNC(SoupCookie, soup_cookie_free)
40G_DEFINE_AUTOPTR_CLEANUP_FUNC(SoupCookieJar, g_object_unref)
41G_DEFINE_AUTOPTR_CLEANUP_FUNC(SoupCookieJarDB, g_object_unref)
42G_DEFINE_AUTOPTR_CLEANUP_FUNC(SoupCookieJarText, g_object_unref)
43G_DEFINE_AUTOPTR_CLEANUP_FUNC(SoupDate, soup_date_free)
44G_DEFINE_AUTOPTR_CLEANUP_FUNC(SoupLogger, g_object_unref)
45G_DEFINE_AUTOPTR_CLEANUP_FUNC(SoupMessage, g_object_unref)
46G_DEFINE_AUTOPTR_CLEANUP_FUNC(SoupMessageBody, soup_message_body_free)
47G_DEFINE_AUTOPTR_CLEANUP_FUNC(SoupMessageHeaders, soup_message_headers_free)
48G_DEFINE_AUTOPTR_CLEANUP_FUNC(SoupMultipart, soup_multipart_free)
49G_DEFINE_AUTOPTR_CLEANUP_FUNC(SoupMultipartInputStream, g_object_unref)
50G_DEFINE_AUTOPTR_CLEANUP_FUNC(SoupRequest, g_object_unref)
51G_DEFINE_AUTOPTR_CLEANUP_FUNC(SoupRequestData, g_object_unref)
52G_DEFINE_AUTOPTR_CLEANUP_FUNC(SoupRequestFile, g_object_unref)
53G_DEFINE_AUTOPTR_CLEANUP_FUNC(SoupRequestHTTP, g_object_unref)
54G_DEFINE_AUTOPTR_CLEANUP_FUNC(SoupServer, g_object_unref)
55G_DEFINE_AUTOPTR_CLEANUP_FUNC(SoupSession, g_object_unref)
56G_DEFINE_AUTOPTR_CLEANUP_FUNC(SoupSessionAsync, g_object_unref)
57G_DEFINE_AUTOPTR_CLEANUP_FUNC(SoupSessionFeature, g_object_unref)
58G_DEFINE_AUTOPTR_CLEANUP_FUNC(SoupSessionSync, g_object_unref)
59G_DEFINE_AUTOPTR_CLEANUP_FUNC(SoupSocket, g_object_unref)
60G_DEFINE_AUTOPTR_CLEANUP_FUNC(SoupURI, soup_uri_free)
61G_DEFINE_AUTOPTR_CLEANUP_FUNC(SoupWebsocketConnection, g_object_unref)
62G_DEFINE_AUTOPTR_CLEANUP_FUNC(SoupXMLRPCParams, soup_xmlrpc_params_free)
63
64#endif
65#endif
66#endif
67
68#endif /* __SOUP_AUTOCLEANUPS_H__ */
69