| 1 |
/* -*- Mode: C; c-basic-offset: 4 -*- |
| 2 |
* vim: tabstop=4 shiftwidth=4 expandtab |
| 3 |
* |
| 4 |
* This library is free software; you can redistribute it and/or |
| 5 |
* modify it under the terms of the GNU Lesser General Public |
| 6 |
* License as published by the Free Software Foundation; either |
| 7 |
* version 2.1 of the License, or (at your option) any later version. |
| 8 |
* |
| 9 |
* This library 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 GNU |
| 12 |
* Lesser General Public License for more details. |
| 13 |
* |
| 14 |
* You should have received a copy of the GNU Lesser General Public |
| 15 |
* License along with this library; if not, see <http://www.gnu.org/licenses/>. |
| 16 |
*/ |
| 17 |
|
| 18 |
#ifndef __PYGI_VALUE_H__ |
| 19 |
#define __PYGI_VALUE_H__ |
| 20 |
|
| 21 |
#include <girepository/girepository.h> |
| 22 |
#include <pythoncapi_compat.h> |
| 23 |
|
| 24 |
G_BEGIN_DECLS |
| 25 |
|
| 26 |
GIArgument _pygi_argument_from_g_value (const GValue *value, |
| 27 |
GITypeInfo *type_info); |
| 28 |
|
| 29 |
int pyg_value_from_pyobject (GValue *value, PyObject *obj); |
| 30 |
int pyg_value_from_pyobject_with_error (GValue *value, PyObject *obj); |
| 31 |
PyObject *pyg_value_to_pyobject (const GValue *value, gboolean copy_boxed); |
| 32 |
int pyg_param_gvalue_from_pyobject (GValue *value, PyObject *py_obj, |
| 33 |
const GParamSpec *pspec); |
| 34 |
|
| 35 |
PyObject *pygi_value_to_py_basic_type (const GValue *value, GType fundamental); |
| 36 |
|
| 37 |
PyObject *pyg__gvalue_get (PyObject *module, PyObject *pygvalue); |
| 38 |
PyObject *pyg__gvalue_set (PyObject *module, PyObject *args); |
| 39 |
PyObject *pyg__gvalue_get_type (PyObject *module, PyObject *pygvalue); |
| 40 |
|
| 41 |
G_END_DECLS |
| 42 |
|
| 43 |
#endif /* __PYGI_VALUE_H__ */ |