Updated Finnish translation
[rhythmbox.git] / bindings / python / override_common.h
blob3363c0df8ca129ddfb9e2033f6bb8c9f0daef10d
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
3 * Utility functions for Python bindings.
4 * Stolen from Epiphany.
6 * Copyright (C) 2005 Adam Hooper <adamh@cvs.gnome.org>
7 * Copyright (C) 2005 Christian Persch <chpe@cvs.gnome.org>
8 * Copyright (C) 2005 Crispin Flowerday <gnome@flowerday.cx>
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2, or (at your option)
13 * any later version.
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
26 #ifndef __OVERRIDE_COMMON_H
27 #define __OVERRIDE_COMMON_H
29 PyObject * _helper_wrap_gobject_glist (const GList *list);
30 PyObject * _helper_wrap_string_glist (const GList *list);
31 PyObject * _helper_wrap_pointer_glist (const GList *list,
32 GType boxed_type);
33 PyObject * _helper_wrap_boxed_glist (const GList *list,
34 GType boxed_type,
35 gboolean copy_boxed,
36 gboolean own_ref);
37 PyObject * _helper_wrap_boxed_gptrarray (GPtrArray *list,
38 GType type,
39 gboolean own_ref,
40 gboolean dealloc);
41 GList * _helper_unwrap_string_pylist (PyObject *py_list);
42 GList * _helper_unwrap_pointer_pylist (PyObject *py_list,
43 GType type);
44 GPtrArray* _helper_unwrap_boxed_gptrarray (PyObject *list,
45 GType type);
46 #endif /* __OVERRIDE_COMMON_H */