1 /* -*- Mode: C; c-basic-offset: 4 -*-
2 * vim: tabstop=4 shiftwidth=4 expandtab
4 * Copyright (C) 2005-2009 Johan Dahlin <johan@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, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
22 #ifndef __PYGI_ARGUMENT_H__
23 #define __PYGI_ARGUMENT_H__
27 #include <girepository.h>
33 gpointer _pygi_arg_to_hash_pointer (const GIArgument *arg,
36 void _pygi_hash_pointer_to_arg (GIArgument *arg,
39 gint _pygi_g_type_interface_check_object (GIBaseInfo *info,
42 gint _pygi_g_type_info_check_object (GITypeInfo *type_info,
46 gint _pygi_g_registered_type_info_check_object (GIRegisteredTypeInfo *info,
51 GArray* _pygi_argument_to_array (GIArgument *arg,
53 const GValue *args_values,
54 GICallableInfo *callable_info,
55 GITypeInfo *type_info,
56 gboolean *out_free_array);
58 GIArgument _pygi_argument_from_object (PyObject *object,
59 GITypeInfo *type_info,
62 PyObject* _pygi_argument_to_object (GIArgument *arg,
63 GITypeInfo *type_info,
66 GIArgument _pygi_argument_from_g_value(const GValue *value,
67 GITypeInfo *type_info);
69 void _pygi_argument_release (GIArgument *arg,
70 GITypeInfo *type_info,
72 GIDirection direction);
74 void _pygi_argument_init (void);
78 #endif /* __PYGI_ARGUMENT_H__ */