functions: revert the function init order to make pylint happy again. See #217
[pygobject.git] / gi / pygi-struct-marshal.h
blobb2846df450885891c6b34c38c3cf9c7600eb2f95
1 /* -*- Mode: C; c-basic-offset: 4 -*-
2 * vim: tabstop=4 shiftwidth=4 expandtab
4 * Copyright (C) 2011 John (J5) Palmieri <johnp@redhat.com>
5 * Copyright (C) 2014 Simon Feltman <sfeltman@gnome.org>
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (at your option) any later version.
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this library; if not, see <http://www.gnu.org/licenses/>.
21 #ifndef __PYGI_STRUCT_MARSHAL_H__
22 #define __PYGI_STRUCT_MARSHAL_H__
24 #include <girepository.h>
25 #include "pygi-cache.h"
27 G_BEGIN_DECLS
29 PyGIArgCache *pygi_arg_struct_new_from_info (GITypeInfo *type_info,
30 GIArgInfo *arg_info, /* may be null */
31 GITransfer transfer,
32 PyGIDirection direction,
33 GIInterfaceInfo *iface_info);
36 gboolean pygi_arg_gvalue_from_py_marshal (PyObject *py_arg, /*in*/
37 GIArgument *arg, /*out*/
38 GITransfer transfer,
39 gboolean is_allocated);
41 gboolean pygi_arg_struct_from_py_marshal (PyObject *py_arg,
42 GIArgument *arg,
43 const gchar *arg_name,
44 GIBaseInfo *interface_info,
45 GType g_type,
46 PyObject *py_type,
47 GITransfer transfer,
48 gboolean is_allocated,
49 gboolean is_foreign,
50 gboolean is_pointer);
52 PyObject *pygi_arg_struct_to_py_marshal (GIArgument *arg,
53 GIInterfaceInfo *interface_info,
54 GType g_type,
55 PyObject *py_type,
56 GITransfer transfer,
57 gboolean is_allocated,
58 gboolean is_foreign);
60 /* Needed for hack in pygi-arg-garray.c */
61 void pygi_arg_gvalue_from_py_cleanup (PyGIInvokeState *state,
62 PyGIArgCache *arg_cache,
63 PyObject *py_arg,
64 gpointer data,
65 gboolean was_processed);
67 G_END_DECLS
69 #endif /*__PYGI_STRUCT_MARSHAL_H__*/