| 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 | |
| 29 | G_DEFINE_AUTOPTR_CLEANUP_FUNC(SoupAddress, g_object_unref) |
| 30 | G_DEFINE_AUTOPTR_CLEANUP_FUNC(SoupAuth, g_object_unref) |
| 31 | G_DEFINE_AUTOPTR_CLEANUP_FUNC(SoupAuthDomain, g_object_unref) |
| 32 | G_DEFINE_AUTOPTR_CLEANUP_FUNC(SoupAuthDomainBasic, g_object_unref) |
| 33 | G_DEFINE_AUTOPTR_CLEANUP_FUNC(SoupAuthDomainDigest, g_object_unref) |
| 34 | G_DEFINE_AUTOPTR_CLEANUP_FUNC(SoupAuthManager, g_object_unref) |
| 35 | G_DEFINE_AUTOPTR_CLEANUP_FUNC(SoupBuffer, soup_buffer_free) |
| 36 | G_DEFINE_AUTOPTR_CLEANUP_FUNC(SoupCache, g_object_unref) |
| 37 | G_DEFINE_AUTOPTR_CLEANUP_FUNC(SoupContentDecoder, g_object_unref) |
| 38 | G_DEFINE_AUTOPTR_CLEANUP_FUNC(SoupContentSniffer, g_object_unref) |
| 39 | G_DEFINE_AUTOPTR_CLEANUP_FUNC(SoupCookie, soup_cookie_free) |
| 40 | G_DEFINE_AUTOPTR_CLEANUP_FUNC(SoupCookieJar, g_object_unref) |
| 41 | G_DEFINE_AUTOPTR_CLEANUP_FUNC(SoupCookieJarDB, g_object_unref) |
| 42 | G_DEFINE_AUTOPTR_CLEANUP_FUNC(SoupCookieJarText, g_object_unref) |
| 43 | G_DEFINE_AUTOPTR_CLEANUP_FUNC(SoupDate, soup_date_free) |
| 44 | G_DEFINE_AUTOPTR_CLEANUP_FUNC(SoupLogger, g_object_unref) |
| 45 | G_DEFINE_AUTOPTR_CLEANUP_FUNC(SoupMessage, g_object_unref) |
| 46 | G_DEFINE_AUTOPTR_CLEANUP_FUNC(SoupMessageBody, soup_message_body_free) |
| 47 | G_DEFINE_AUTOPTR_CLEANUP_FUNC(SoupMessageHeaders, soup_message_headers_free) |
| 48 | G_DEFINE_AUTOPTR_CLEANUP_FUNC(SoupMultipart, soup_multipart_free) |
| 49 | G_DEFINE_AUTOPTR_CLEANUP_FUNC(SoupMultipartInputStream, g_object_unref) |
| 50 | G_DEFINE_AUTOPTR_CLEANUP_FUNC(SoupRequest, g_object_unref) |
| 51 | G_DEFINE_AUTOPTR_CLEANUP_FUNC(SoupRequestData, g_object_unref) |
| 52 | G_DEFINE_AUTOPTR_CLEANUP_FUNC(SoupRequestFile, g_object_unref) |
| 53 | G_DEFINE_AUTOPTR_CLEANUP_FUNC(SoupRequestHTTP, g_object_unref) |
| 54 | G_DEFINE_AUTOPTR_CLEANUP_FUNC(SoupServer, g_object_unref) |
| 55 | G_DEFINE_AUTOPTR_CLEANUP_FUNC(SoupSession, g_object_unref) |
| 56 | G_DEFINE_AUTOPTR_CLEANUP_FUNC(SoupSessionAsync, g_object_unref) |
| 57 | G_DEFINE_AUTOPTR_CLEANUP_FUNC(SoupSessionFeature, g_object_unref) |
| 58 | G_DEFINE_AUTOPTR_CLEANUP_FUNC(SoupSessionSync, g_object_unref) |
| 59 | G_DEFINE_AUTOPTR_CLEANUP_FUNC(SoupSocket, g_object_unref) |
| 60 | G_DEFINE_AUTOPTR_CLEANUP_FUNC(SoupURI, soup_uri_free) |
| 61 | G_DEFINE_AUTOPTR_CLEANUP_FUNC(SoupWebsocketConnection, g_object_unref) |
| 62 | G_DEFINE_AUTOPTR_CLEANUP_FUNC(SoupXMLRPCParams, soup_xmlrpc_params_free) |
| 63 | |
| 64 | #endif |
| 65 | #endif |
| 66 | #endif |
| 67 | |
| 68 | #endif /* __SOUP_AUTOCLEANUPS_H__ */ |
| 69 | |