setup.py: Provide a os.path.samefile fallback for Python 2 under Windows
[pygobject.git] / gi / pygi-basictype.h
blob466c7d4af210e3ae1ce16648856b4e222bbacb2e
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);
48 PyGIArgCache *pygi_arg_basic_type_new_from_info (GITypeInfo *type_info,
49 GIArgInfo *arg_info, /* may be null */
50 GITransfer transfer,
51 PyGIDirection direction);
52 G_END_DECLS
54 #endif /*__PYGI_ARG_BASICTYPE_H__*/