1 /* 2 * peas-plugin-loader-python.h 3 * This file is part of libpeas 4 * 5 * Copyright (C) 2008 - Jesse van den Kieboom 6 * Copyright (C) 2009 - Steve Frécinaux 7 * 8 * libpeas is free software; you can redistribute it and/or 9 * modify it under the terms of the GNU Lesser General Public 10 * License as published by the Free Software Foundation; either 11 * version 2.1 of the License, or (at your option) any later version. 12 * 13 * libpeas is distributed in the hope that it will be useful, 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16 * Lesser General Public License for more details. 17 * 18 * You should have received a copy of the GNU Lesser General Public 19 * License along with this library; if not, write to the Free Software 20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 21 */ 22 23 #ifndef __PEAS_PLUGIN_LOADER_PYTHON_H__ 24 #define __PEAS_PLUGIN_LOADER_PYTHON_H__ 25 26 #include <libpeas/peas-plugin-loader.h> 27 #include <libpeas/peas-object-module.h> 28 29 G_BEGIN_DECLS 30 31 #define PEAS_TYPE_PLUGIN_LOADER_PYTHON (peas_plugin_loader_python_get_type ()) 32 #define PEAS_PLUGIN_LOADER_PYTHON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PEAS_TYPE_PLUGIN_LOADER_PYTHON, PeasPluginLoaderPython)) 33 #define PEAS_PLUGIN_LOADER_PYTHON_CONST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PEAS_TYPE_PLUGIN_LOADER_PYTHON, PeasPluginLoaderPython const)) 34 #define PEAS_PLUGIN_LOADER_PYTHON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PEAS_TYPE_PLUGIN_LOADER_PYTHON, PeasPluginLoaderPythonClass)) 35 #define PEAS_IS_PLUGIN_LOADER_PYTHON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PEAS_TYPE_PLUGIN_LOADER_PYTHON)) 36 #define PEAS_IS_PLUGIN_LOADER_PYTHON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PEAS_TYPE_PLUGIN_LOADER_PYTHON)) 37 #define PEAS_PLUGIN_LOADER_PYTHON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PEAS_TYPE_PLUGIN_LOADER_PYTHON, PeasPluginLoaderPythonClass)) 38 39 typedef struct _PeasPluginLoaderPython PeasPluginLoaderPython; 40 typedef struct _PeasPluginLoaderPythonClass PeasPluginLoaderPythonClass; 41 42 struct _PeasPluginLoaderPython { 43 PeasPluginLoader parent; 44 }; 45 46 struct _PeasPluginLoaderPythonClass { 47 PeasPluginLoaderClass parent_class; 48 }; 49 50 GType peas_plugin_loader_python_get_type (void) G_GNUC_CONST; 51 52 /* All the loaders must implement this function */ 53 G_MODULE_EXPORT void peas_register_types (PeasObjectModule *module); 54 55 G_END_DECLS 56 57 #endif /* __PEAS_PLUGIN_LOADER_PYTHON_H__ */ 58 59