/* vi:set et ai sw=2 sts=2 ts=2: */ /*- * Copyright (c) 2009 Jannis Pohlmann * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Library General Public License for more details. * * You should have received a copy of the GNU Library General * Public License along with this library; if not, write to the * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, * Boston, MA 02110-1301, USA. */ #if !defined (TUMBLER_INSIDE_TUMBLER_H) && !defined (TUMBLER_COMPILATION) #error "Only may be included directly. This file might disappear or change contents." #endif #ifndef __TUMBLER_GLIB_EXTENSIONS_H__ #define __TUMBLER_GLIB_EXTENSIONS_H__ #include G_BEGIN_DECLS #define TUMBLER_ADD_INTERFACE(TYPE_IFACE, iface_init) \ { \ static const GInterfaceInfo tumbler_add_interface_info = { \ (GInterfaceInitFunc) iface_init, NULL, NULL \ }; \ g_type_module_add_interface (type_module, g_define_type_id, TYPE_IFACE, &tumbler_add_interface_info); \ } G_END_DECLS #endif /* !__TUMBLER_GLIB_EXTENSIONS_H__ */