1
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
3
* Utility functions for Python bindings.
4
* Stolen from Rhythmbox, which stole it 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)
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.
24
* Sunday 13th May 2007: Bastien Nocera: Add exception clause.
25
* See license_change file for details.
29
#ifndef __OVERRIDE_COMMON_H
30
#define __OVERRIDE_COMMON_H
32
PyObject * _helper_wrap_gobject_glist (const GList *list);
33
PyObject * _helper_wrap_string_glist (const GList *list);
34
PyObject * _helper_wrap_pointer_glist (const GList *list,
36
PyObject * _helper_wrap_boxed_glist (const GList *list,
40
PyObject * _helper_wrap_boxed_gptrarray (GPtrArray *list,
44
GList * _helper_unwrap_string_pylist (PyObject *py_list);
45
GList * _helper_unwrap_pointer_pylist (PyObject *py_list,
47
GPtrArray* _helper_unwrap_boxed_gptrarray (PyObject *list,
49
#endif /* __OVERRIDE_COMMON_H */