Updated Finnish translation
[rhythmbox.git] / plugins / rb-python-module.h
blobe248de80075a817a3b88c48841d5651e9a342097
1 /*
2 * Copyright (C) 2005 Raphael Slinckx
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * This program 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
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor,
17 * Boston, MA 02110-1301 USA.
20 #ifndef RB_PYTHON_MODULE_H
21 #define RB_PYTHON_MODULE_H
23 #include <glib-object.h>
25 G_BEGIN_DECLS
27 #define RB_TYPE_PYTHON_MODULE (rb_python_module_get_type ())
28 #define RB_PYTHON_MODULE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), RB_TYPE_PYTHON_MODULE, RBPythonModule))
29 #define RB_PYTHON_MODULE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), RB_TYPE_PYTHON_MODULE, RBPythonModuleClass))
30 #define RB_IS_PYTHON_MODULE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), RB_TYPE_PYTHON_MODULE))
31 #define RB_IS_PYTHON_MODULE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((obj), RB_TYPE_PYTHON_MODULE))
32 #define RB_PYTHON_MODULE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), RB_TYPE_PYTHON_MODULE, RBPythonModuleClass))
34 typedef struct
36 GTypeModuleClass parent_class;
37 } RBPythonModuleClass;
39 typedef struct
41 GTypeModule parent_instance;
42 } RBPythonModule;
44 GType rb_python_module_get_type (void);
46 RBPythonModule *rb_python_module_new (const gchar* path,
47 const gchar *module);
49 GObject *rb_python_module_new_object (RBPythonModule *module);
51 /* --- python utils --- */
53 void rb_python_garbage_collect (void);
55 void rb_python_shutdown (void);
57 G_END_DECLS
59 #endif