1/*
2 * Copyright © 2015 Canonical Limited
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.1 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 * Author: Ryan Lortie <desrt@desrt.ca>
18 */
19
20#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
21#error "Only <gio/gio.h> can be included directly."
22#endif
23
24G_DEFINE_AUTOPTR_CLEANUP_FUNC(GAction, g_object_unref)
25G_DEFINE_AUTOPTR_CLEANUP_FUNC(GActionMap, g_object_unref)
26G_DEFINE_AUTOPTR_CLEANUP_FUNC(GAppInfo, g_object_unref)
27G_DEFINE_AUTOPTR_CLEANUP_FUNC(GAppLaunchContext, g_object_unref)
28G_DEFINE_AUTOPTR_CLEANUP_FUNC(GAppInfoMonitor, g_object_unref)
29G_DEFINE_AUTOPTR_CLEANUP_FUNC(GApplicationCommandLine, g_object_unref)
30G_DEFINE_AUTOPTR_CLEANUP_FUNC(GApplication, g_object_unref)
31G_DEFINE_AUTOPTR_CLEANUP_FUNC(GAsyncInitable, g_object_unref)
32G_DEFINE_AUTOPTR_CLEANUP_FUNC(GAsyncResult, g_object_unref)
33G_DEFINE_AUTOPTR_CLEANUP_FUNC(GBufferedInputStream, g_object_unref)
34G_DEFINE_AUTOPTR_CLEANUP_FUNC(GBufferedOutputStream, g_object_unref)
35G_DEFINE_AUTOPTR_CLEANUP_FUNC(GBytesIcon, g_object_unref)
36G_DEFINE_AUTOPTR_CLEANUP_FUNC(GCancellable, g_object_unref)
37G_DEFINE_AUTOPTR_CLEANUP_FUNC(GCharsetConverter, g_object_unref)
38G_DEFINE_AUTOPTR_CLEANUP_FUNC(GConverter, g_object_unref)
39G_DEFINE_AUTOPTR_CLEANUP_FUNC(GConverterInputStream, g_object_unref)
40G_DEFINE_AUTOPTR_CLEANUP_FUNC(GConverterOutputStream, g_object_unref)
41G_DEFINE_AUTOPTR_CLEANUP_FUNC(GCredentials, g_object_unref)
42G_DEFINE_AUTOPTR_CLEANUP_FUNC(GDatagramBased, g_object_unref)
43G_DEFINE_AUTOPTR_CLEANUP_FUNC(GDataInputStream, g_object_unref)
44G_DEFINE_AUTOPTR_CLEANUP_FUNC(GDataOutputStream, g_object_unref)
45G_DEFINE_AUTOPTR_CLEANUP_FUNC(GDBusActionGroup, g_object_unref)
46G_DEFINE_AUTOPTR_CLEANUP_FUNC(GDBusAuthObserver, g_object_unref)
47G_DEFINE_AUTOPTR_CLEANUP_FUNC(GDBusConnection, g_object_unref)
48G_DEFINE_AUTOPTR_CLEANUP_FUNC(GDBusInterface, g_object_unref)
49G_DEFINE_AUTOPTR_CLEANUP_FUNC(GDBusInterfaceSkeleton, g_object_unref)
50G_DEFINE_AUTOPTR_CLEANUP_FUNC(GDBusMenuModel, g_object_unref)
51G_DEFINE_AUTOPTR_CLEANUP_FUNC(GDBusMessage, g_object_unref)
52G_DEFINE_AUTOPTR_CLEANUP_FUNC(GDBusMethodInvocation, g_object_unref)
53G_DEFINE_AUTOPTR_CLEANUP_FUNC(GDBusNodeInfo, g_dbus_node_info_unref)
54G_DEFINE_AUTOPTR_CLEANUP_FUNC(GDBusObject, g_object_unref)
55G_DEFINE_AUTOPTR_CLEANUP_FUNC(GDBusObjectManagerClient, g_object_unref)
56G_DEFINE_AUTOPTR_CLEANUP_FUNC(GDBusObjectManager, g_object_unref)
57G_DEFINE_AUTOPTR_CLEANUP_FUNC(GDBusObjectManagerServer, g_object_unref)
58G_DEFINE_AUTOPTR_CLEANUP_FUNC(GDBusObjectProxy, g_object_unref)
59G_DEFINE_AUTOPTR_CLEANUP_FUNC(GDBusObjectSkeleton, g_object_unref)
60G_DEFINE_AUTOPTR_CLEANUP_FUNC(GDBusProxy, g_object_unref)
61G_DEFINE_AUTOPTR_CLEANUP_FUNC(GDBusServer, g_object_unref)
62G_DEFINE_AUTOPTR_CLEANUP_FUNC(GDrive, g_object_unref)
63G_DEFINE_AUTOPTR_CLEANUP_FUNC(GEmblemedIcon, g_object_unref)
64G_DEFINE_AUTOPTR_CLEANUP_FUNC(GEmblem, g_object_unref)
65G_DEFINE_AUTOPTR_CLEANUP_FUNC(GFileEnumerator, g_object_unref)
66G_DEFINE_AUTOPTR_CLEANUP_FUNC(GFile, g_object_unref)
67G_DEFINE_AUTOPTR_CLEANUP_FUNC(GFileAttributeInfoList, g_file_attribute_info_list_unref)
68G_DEFINE_AUTOPTR_CLEANUP_FUNC(GFileIcon, g_object_unref)
69G_DEFINE_AUTOPTR_CLEANUP_FUNC(GFileInfo, g_object_unref)
70G_DEFINE_AUTOPTR_CLEANUP_FUNC(GFileInputStream, g_object_unref)
71G_DEFINE_AUTOPTR_CLEANUP_FUNC(GFileIOStream, g_object_unref)
72G_DEFINE_AUTOPTR_CLEANUP_FUNC(GFileMonitor, g_object_unref)
73G_DEFINE_AUTOPTR_CLEANUP_FUNC(GFilenameCompleter, g_object_unref)
74G_DEFINE_AUTOPTR_CLEANUP_FUNC(GFileOutputStream, g_object_unref)
75G_DEFINE_AUTOPTR_CLEANUP_FUNC(GFilterInputStream, g_object_unref)
76G_DEFINE_AUTOPTR_CLEANUP_FUNC(GFilterOutputStream, g_object_unref)
77G_DEFINE_AUTOPTR_CLEANUP_FUNC(GIcon, g_object_unref)
78G_DEFINE_AUTOPTR_CLEANUP_FUNC(GInetAddress, g_object_unref)
79G_DEFINE_AUTOPTR_CLEANUP_FUNC(GInetAddressMask, g_object_unref)
80G_DEFINE_AUTOPTR_CLEANUP_FUNC(GInetSocketAddress, g_object_unref)
81G_DEFINE_AUTOPTR_CLEANUP_FUNC(GInitable, g_object_unref)
82G_DEFINE_AUTOPTR_CLEANUP_FUNC(GInputStream, g_object_unref)
83G_DEFINE_AUTOPTR_CLEANUP_FUNC(GIOModule, g_object_unref)
84G_DEFINE_AUTOPTR_CLEANUP_FUNC(GIOStream, g_object_unref)
85G_DEFINE_AUTOPTR_CLEANUP_FUNC(GLoadableIcon, g_object_unref)
86G_DEFINE_AUTOPTR_CLEANUP_FUNC(GMemoryInputStream, g_object_unref)
87G_DEFINE_AUTOPTR_CLEANUP_FUNC(GMemoryOutputStream, g_object_unref)
88G_DEFINE_AUTOPTR_CLEANUP_FUNC(GMenu, g_object_unref)
89G_DEFINE_AUTOPTR_CLEANUP_FUNC(GMenuItem, g_object_unref)
90G_DEFINE_AUTOPTR_CLEANUP_FUNC(GMenuModel, g_object_unref)
91G_DEFINE_AUTOPTR_CLEANUP_FUNC(GMenuAttributeIter, g_object_unref)
92G_DEFINE_AUTOPTR_CLEANUP_FUNC(GMenuLinkIter, g_object_unref)
93G_DEFINE_AUTOPTR_CLEANUP_FUNC(GMount, g_object_unref)
94G_DEFINE_AUTOPTR_CLEANUP_FUNC(GMountOperation, g_object_unref)
95G_DEFINE_AUTOPTR_CLEANUP_FUNC(GNativeVolumeMonitor, g_object_unref)
96G_DEFINE_AUTOPTR_CLEANUP_FUNC(GNetworkAddress, g_object_unref)
97G_DEFINE_AUTOPTR_CLEANUP_FUNC(GNetworkMonitor, g_object_unref)
98G_DEFINE_AUTOPTR_CLEANUP_FUNC(GNetworkService, g_object_unref)
99G_DEFINE_AUTOPTR_CLEANUP_FUNC(GNotification, g_object_unref)
100G_DEFINE_AUTOPTR_CLEANUP_FUNC(GOutputStream, g_object_unref)
101G_DEFINE_AUTOPTR_CLEANUP_FUNC(GPermission, g_object_unref)
102G_DEFINE_AUTOPTR_CLEANUP_FUNC(GPollableInputStream, g_object_unref)
103G_DEFINE_AUTOPTR_CLEANUP_FUNC(GPollableOutputStream, g_object_unref)
104G_DEFINE_AUTOPTR_CLEANUP_FUNC(GPropertyAction, g_object_unref)
105G_DEFINE_AUTOPTR_CLEANUP_FUNC(GProxyAddressEnumerator, g_object_unref)
106G_DEFINE_AUTOPTR_CLEANUP_FUNC(GProxyAddress, g_object_unref)
107G_DEFINE_AUTOPTR_CLEANUP_FUNC(GProxy, g_object_unref)
108G_DEFINE_AUTOPTR_CLEANUP_FUNC(GProxyResolver, g_object_unref)
109G_DEFINE_AUTOPTR_CLEANUP_FUNC(GRemoteActionGroup, g_object_unref)
110G_DEFINE_AUTOPTR_CLEANUP_FUNC(GResolver, g_object_unref)
111G_DEFINE_AUTOPTR_CLEANUP_FUNC(GResource, g_resource_unref)
112G_DEFINE_AUTOPTR_CLEANUP_FUNC(GSeekable, g_object_unref)
113G_DEFINE_AUTOPTR_CLEANUP_FUNC(GSettingsBackend, g_object_unref)
114G_DEFINE_AUTOPTR_CLEANUP_FUNC(GSettingsSchema, g_settings_schema_unref)
115G_DEFINE_AUTOPTR_CLEANUP_FUNC(GSettingsSchemaKey, g_settings_schema_key_unref)
116G_DEFINE_AUTOPTR_CLEANUP_FUNC(GSettingsSchemaSource, g_settings_schema_source_unref)
117G_DEFINE_AUTOPTR_CLEANUP_FUNC(GSettings, g_object_unref)
118G_DEFINE_AUTOPTR_CLEANUP_FUNC(GSimpleActionGroup, g_object_unref)
119G_DEFINE_AUTOPTR_CLEANUP_FUNC(GSimpleAction, g_object_unref)
120G_DEFINE_AUTOPTR_CLEANUP_FUNC(GSimpleAsyncResult, g_object_unref)
121G_DEFINE_AUTOPTR_CLEANUP_FUNC(GSimplePermission, g_object_unref)
122G_DEFINE_AUTOPTR_CLEANUP_FUNC(GSimpleProxyResolver, g_object_unref)
123G_DEFINE_AUTOPTR_CLEANUP_FUNC(GSocketAddressEnumerator, g_object_unref)
124G_DEFINE_AUTOPTR_CLEANUP_FUNC(GSocketAddress, g_object_unref)
125G_DEFINE_AUTOPTR_CLEANUP_FUNC(GSocketClient, g_object_unref)
126G_DEFINE_AUTOPTR_CLEANUP_FUNC(GSocketConnectable, g_object_unref)
127G_DEFINE_AUTOPTR_CLEANUP_FUNC(GSocketConnection, g_object_unref)
128G_DEFINE_AUTOPTR_CLEANUP_FUNC(GSocketControlMessage, g_object_unref)
129G_DEFINE_AUTOPTR_CLEANUP_FUNC(GSocket, g_object_unref)
130G_DEFINE_AUTOPTR_CLEANUP_FUNC(GSocketListener, g_object_unref)
131G_DEFINE_AUTOPTR_CLEANUP_FUNC(GSocketService, g_object_unref)
132G_DEFINE_AUTOPTR_CLEANUP_FUNC(GSubprocess, g_object_unref)
133G_DEFINE_AUTOPTR_CLEANUP_FUNC(GSubprocessLauncher, g_object_unref)
134G_DEFINE_AUTOPTR_CLEANUP_FUNC(GTask, g_object_unref)
135G_DEFINE_AUTOPTR_CLEANUP_FUNC(GTcpConnection, g_object_unref)
136G_DEFINE_AUTOPTR_CLEANUP_FUNC(GTcpWrapperConnection, g_object_unref)
137G_DEFINE_AUTOPTR_CLEANUP_FUNC(GTestDBus, g_object_unref)
138G_DEFINE_AUTOPTR_CLEANUP_FUNC(GThemedIcon, g_object_unref)
139G_DEFINE_AUTOPTR_CLEANUP_FUNC(GThreadedSocketService, g_object_unref)
140G_DEFINE_AUTOPTR_CLEANUP_FUNC(GTlsBackend, g_object_unref)
141G_DEFINE_AUTOPTR_CLEANUP_FUNC(GTlsCertificate, g_object_unref)
142G_DEFINE_AUTOPTR_CLEANUP_FUNC(GTlsClientConnection, g_object_unref)
143G_DEFINE_AUTOPTR_CLEANUP_FUNC(GTlsConnection, g_object_unref)
144G_DEFINE_AUTOPTR_CLEANUP_FUNC(GTlsDatabase, g_object_unref)
145G_DEFINE_AUTOPTR_CLEANUP_FUNC(GTlsFileDatabase, g_object_unref)
146G_DEFINE_AUTOPTR_CLEANUP_FUNC(GTlsInteraction, g_object_unref)
147G_DEFINE_AUTOPTR_CLEANUP_FUNC(GTlsPassword, g_object_unref)
148G_DEFINE_AUTOPTR_CLEANUP_FUNC(GTlsServerConnection, g_object_unref)
149G_DEFINE_AUTOPTR_CLEANUP_FUNC(GVfs, g_object_unref)
150G_DEFINE_AUTOPTR_CLEANUP_FUNC(GVolume, g_object_unref)
151G_DEFINE_AUTOPTR_CLEANUP_FUNC(GVolumeMonitor, g_object_unref)
152G_DEFINE_AUTOPTR_CLEANUP_FUNC(GZlibCompressor, g_object_unref)
153G_DEFINE_AUTOPTR_CLEANUP_FUNC(GZlibDecompressor, g_object_unref)
154

source code of gtk/subprojects/glib/gio/gio-autocleanups.h