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"
29 PyGIArgCache
*pygi_arg_struct_new_from_info (GITypeInfo
*type_info
,
30 GIArgInfo
*arg_info
, /* may be null */
32 PyGIDirection direction
,
33 GIInterfaceInfo
*iface_info
);
36 gboolean
pygi_arg_gvalue_from_py_marshal (PyObject
*py_arg
, /*in*/
37 GIArgument
*arg
, /*out*/
39 gboolean is_allocated
);
41 gboolean
pygi_arg_struct_from_py_marshal (PyObject
*py_arg
,
43 const gchar
*arg_name
,
44 GIBaseInfo
*interface_info
,
48 gboolean is_allocated
,
52 PyObject
*pygi_arg_struct_to_py_marshal (GIArgument
*arg
,
53 GIInterfaceInfo
*interface_info
,
57 gboolean is_allocated
,
60 /* Needed for hack in pygi-arg-garray.c */
61 void pygi_arg_gvalue_from_py_cleanup (PyGIInvokeState
*state
,
62 PyGIArgCache
*arg_cache
,
65 gboolean was_processed
);
69 #endif /*__PYGI_STRUCT_MARSHAL_H__*/