gdk-pixbuf-autocleanups.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637
  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. #ifndef GDK_PIXBUF_AUTOCLEANUPS_H
  19. #define GDK_PIXBUF_AUTOCLEANUPS_H
  20. /* We need all the types, so don't try to include this directly */
  21. #if defined(GDK_PIXBUF_DISABLE_SINGLE_INCLUDES) && !defined (GDK_PIXBUF_H_INSIDE) && !defined (GDK_PIXBUF_COMPILATION)
  22. #error "Only <gdk-pixbuf/gdk-pixbuf.h> can be included directly."
  23. #endif
  24. #ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
  25. G_DEFINE_AUTOPTR_CLEANUP_FUNC(GdkPixbuf, g_object_unref)
  26. G_DEFINE_AUTOPTR_CLEANUP_FUNC(GdkPixbufAnimation, g_object_unref)
  27. G_DEFINE_AUTOPTR_CLEANUP_FUNC(GdkPixbufAnimationIter, g_object_unref)
  28. G_DEFINE_AUTOPTR_CLEANUP_FUNC(GdkPixbufLoader, g_object_unref)
  29. G_DEFINE_AUTOPTR_CLEANUP_FUNC(GdkPixbufSimpleAnim, g_object_unref)
  30. #endif
  31. #endif /* GDK_PIXBUF_AUTOCLEANUPS_H */