| 1 | /* GdkPixbuf library - Autocleanup definitions |
|---|---|
| 2 | * |
| 3 | * Copyright (C) 2015 Kalev Lember <kalevlember@gmail.com> |
| 4 | * |
| 5 | * This library is free software; you can redistribute it and/or |
| 6 | * modify it under the terms of the GNU Lesser General Public |
| 7 | * License as published by the Free Software Foundation; either |
| 8 | * version 2 of the License, or (at your option) any later version. |
| 9 | * |
| 10 | * This library is distributed in the hope that it will be useful, |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 | * Lesser General Public License for more details. |
| 14 | * |
| 15 | * You should have received a copy of the GNU Lesser General Public |
| 16 | * License along with this library; if not, see <http://www.gnu.org/licenses/>. |
| 17 | */ |
| 18 | |
| 19 | #ifndef GDK_PIXBUF_AUTOCLEANUPS_H |
| 20 | #define GDK_PIXBUF_AUTOCLEANUPS_H |
| 21 | |
| 22 | /* We need all the types, so don't try to include this directly */ |
| 23 | #if defined(GDK_PIXBUF_DISABLE_SINGLE_INCLUDES) && !defined (GDK_PIXBUF_H_INSIDE) && !defined (GDK_PIXBUF_COMPILATION) |
| 24 | #error "Only <gdk-pixbuf/gdk-pixbuf.h> can be included directly." |
| 25 | #endif |
| 26 | |
| 27 | #ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC |
| 28 | |
| 29 | G_DEFINE_AUTOPTR_CLEANUP_FUNC(GdkPixbuf, g_object_unref) |
| 30 | G_DEFINE_AUTOPTR_CLEANUP_FUNC(GdkPixbufAnimation, g_object_unref) |
| 31 | G_DEFINE_AUTOPTR_CLEANUP_FUNC(GdkPixbufAnimationIter, g_object_unref) |
| 32 | G_DEFINE_AUTOPTR_CLEANUP_FUNC(GdkPixbufLoader, g_object_unref) |
| 33 | G_DEFINE_AUTOPTR_CLEANUP_FUNC(GdkPixbufSimpleAnim, g_object_unref) |
| 34 | |
| 35 | #endif |
| 36 | |
| 37 | #endif /* GDK_PIXBUF_AUTOCLEANUPS_H */ |
| 38 |