functions: revert the function init order to make pylint happy again. See #217
[pygobject.git] / gi / pygi-basictype.h
blob04d520a75eeb1b5ea7274c7e01230359c5303eb1
1 /* -*- Mode: C; c-basic-offset: 4 -*-
2 * vim: tabstop=4 shiftwidth=4 expandtab
4 * Copyright (C) 2014 Simon Feltman <sfeltman@gnome.org>
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, see <http://www.gnu.org/licenses/>.
20 #ifndef __PYGI_ARG_BASICTYPE_H__
21 #define __PYGI_ARG_BASICTYPE_H__
23 #include <girepository.h>
24 #include "pygi-cache.h"
26 G_BEGIN_DECLS
28 gboolean pygi_marshal_from_py_basic_type (PyObject *object, /* in */
29 GIArgument *arg, /* out */
30 GITypeTag type_tag,
31 GITransfer transfer,
32 gpointer *cleanup_data);
33 gboolean pygi_marshal_from_py_basic_type_cache_adapter (PyGIInvokeState *state,
34 PyGICallableCache *callable_cache,
35 PyGIArgCache *arg_cache,
36 PyObject *py_arg,
37 GIArgument *arg,
38 gpointer *cleanup_data);
40 PyObject *pygi_marshal_to_py_basic_type (GIArgument *arg, /* in */
41 GITypeTag type_tag,
42 GITransfer transfer);
43 PyObject *pygi_marshal_to_py_basic_type_cache_adapter (PyGIInvokeState *state,
44 PyGICallableCache *callable_cache,
45 PyGIArgCache *arg_cache,
46 GIArgument *arg,
47 gpointer *cleanup_data);
49 PyGIArgCache *pygi_arg_basic_type_new_from_info (GITypeInfo *type_info,
50 GIArgInfo *arg_info, /* may be null */
51 GITransfer transfer,
52 PyGIDirection direction);
54 PyObject *pygi_gint64_to_py (gint64 value);
55 PyObject *pygi_guint64_to_py (guint64 value);
56 PyObject *pygi_gfloat_to_py (gfloat value);
57 PyObject *pygi_gdouble_to_py (gdouble value);
58 PyObject *pygi_gboolean_to_py (gboolean value);
59 PyObject *pygi_gint8_to_py (gint8 value);
60 PyObject *pygi_guint8_to_py (guint8 value);
61 PyObject *pygi_utf8_to_py (gchar *value);
62 PyObject *pygi_gint_to_py (gint value);
63 PyObject *pygi_glong_to_py (glong value);
64 PyObject *pygi_guint_to_py (guint value);
65 PyObject *pygi_gulong_to_py (gulong value);
66 PyObject *pygi_filename_to_py (gchar *value);
67 PyObject *pygi_gsize_to_py (gsize value);
68 PyObject *pygi_gssize_to_py (gssize value);
69 PyObject *pygi_guint32_to_py (guint32 value);
71 gboolean pygi_gboolean_from_py (PyObject *object, gboolean *result);
72 gboolean pygi_gint64_from_py (PyObject *object, gint64 *result);
73 gboolean pygi_guint64_from_py (PyObject *object, guint64 *result);
74 gboolean pygi_gfloat_from_py (PyObject *py_arg, gfloat *result);
75 gboolean pygi_gdouble_from_py (PyObject *py_arg, gdouble *result);
76 gboolean pygi_utf8_from_py (PyObject *py_arg, gchar **result);
77 gboolean pygi_glong_from_py (PyObject *object, glong *result);
78 gboolean pygi_gulong_from_py (PyObject *object, gulong *result);
79 gboolean pygi_gint_from_py (PyObject *object, gint *result);
80 gboolean pygi_guint_from_py (PyObject *object, guint *result);
81 gboolean pygi_gunichar_from_py (PyObject *py_arg, gunichar *result);
82 gboolean pygi_gint8_from_py (PyObject *object, gint8 *result);
83 gboolean pygi_gschar_from_py (PyObject *object, gint8 *result);
84 gboolean pygi_guint8_from_py (PyObject *object, guint8 *result);
85 gboolean pygi_guchar_from_py (PyObject *object, guchar *result);
87 G_END_DECLS
89 #endif /*__PYGI_ARG_BASICTYPE_H__*/