functions: revert the function init order to make pylint happy again. See #217
[pygobject.git] / gi / pygi-value.h
blob6450112d30a392821bc03b129c4851cc37932412
1 /* -*- Mode: C; c-basic-offset: 4 -*-
2 * vim: tabstop=4 shiftwidth=4 expandtab
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.
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.
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/>.
18 #ifndef __PYGI_VALUE_H__
19 #define __PYGI_VALUE_H__
21 #include <Python.h>
22 #include <glib-object.h>
23 #include <girepository.h>
25 G_BEGIN_DECLS
27 GIArgument _pygi_argument_from_g_value(const GValue *value,
28 GITypeInfo *type_info);
30 int pyg_value_from_pyobject(GValue *value, PyObject *obj);
31 int pyg_value_from_pyobject_with_error(GValue *value, PyObject *obj);
32 PyObject *pyg_value_as_pyobject(const GValue *value, gboolean copy_boxed);
33 int pyg_param_gvalue_from_pyobject(GValue* value,
34 PyObject* py_obj,
35 const GParamSpec* pspec);
36 PyObject *pyg_param_gvalue_as_pyobject(const GValue* gvalue,
37 gboolean copy_boxed,
38 const GParamSpec* pspec);
39 PyObject *pyg_strv_from_gvalue(const GValue *value);
40 int pyg_strv_to_gvalue(GValue *value, PyObject *obj);
42 PyObject *pygi_value_to_py_basic_type (const GValue *value,
43 GType fundamental,
44 gboolean *handled);
46 PyObject *pyg__gvalue_get(PyObject *module, PyObject *pygvalue);
47 PyObject *pyg__gvalue_set(PyObject *module, PyObject *args);
49 G_END_DECLS
51 #endif /* __PYGI_VALUE_H__ */