Imported Upstream version 3.7.3
[platform/upstream/python-gobject.git] / gi / pygi-marshal-cleanup.h
1 /* -*- Mode: C; c-basic-offset: 4 -*-
2  * vim: tabstop=4 shiftwidth=4 expandtab
3  *
4  * Copyright (C) 2011 John (J5) Palmieri <johnp@redhat.com>, Red Hat, Inc.
5  *
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.
10  *
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.
15  *
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
19  * USA
20  */
21
22 #ifndef __PYGI_MARSHAL_CLEANUP_H__
23 #define __PYGI_MARSHAL_CLEANUP_H__
24
25 #include "pygi-private.h"
26
27 G_BEGIN_DECLS
28
29 void pygi_marshal_cleanup_args_from_py_marshal_success  (PyGIInvokeState   *state,
30                                                          PyGICallableCache *cache);
31 void pygi_marshal_cleanup_args_from_py_parameter_fail   (PyGIInvokeState   *state,
32                                                          PyGICallableCache *cache,
33                                                          gssize failed_arg_index);
34
35 void pygi_marshal_cleanup_args_to_py_marshal_success (PyGIInvokeState   *state,
36                                                       PyGICallableCache *cache);
37 void pygi_marshal_cleanup_args_return_fail           (PyGIInvokeState   *state,
38                                                       PyGICallableCache *cache);
39 void pygi_marshal_cleanup_args_to_py_parameter_fail  (PyGIInvokeState   *state,
40                                                       PyGICallableCache *cache,
41                                                       gssize failed_to_py_arg_index);
42
43 void _pygi_marshal_cleanup_from_py_utf8                      (PyGIInvokeState *state,
44                                                               PyGIArgCache    *arg_cache,
45                                                               gpointer         data,
46                                                               gboolean         was_processed);
47 void _pygi_marshal_cleanup_to_py_utf8                        (PyGIInvokeState *state,
48                                                               PyGIArgCache    *arg_cache,
49                                                               gpointer         data,
50                                                               gboolean         was_processed);
51 void _pygi_marshal_cleanup_from_py_interface_struct_gvalue   (PyGIInvokeState *state,
52                                                               PyGIArgCache    *arg_cache,
53                                                               gpointer         data,
54                                                               gboolean         was_processed);
55 void _pygi_marshal_cleanup_from_py_interface_struct_foreign  (PyGIInvokeState *state,
56                                                               PyGIArgCache    *arg_cache,
57                                                               gpointer         data,
58                                                               gboolean         was_processed);
59 void _pygi_marshal_cleanup_to_py_interface_struct_foreign (PyGIInvokeState *state,
60                                                            PyGIArgCache    *arg_cache,
61                                                            gpointer         data,
62                                                            gboolean         was_processed);
63 void _pygi_marshal_cleanup_from_py_interface_object       (PyGIInvokeState *state,
64                                                            PyGIArgCache    *arg_cache,
65                                                            gpointer         data,
66                                                            gboolean         was_processed);
67 void _pygi_marshal_cleanup_to_py_interface_object         (PyGIInvokeState *state,
68                                                            PyGIArgCache    *arg_cache,
69                                                            gpointer         data,
70                                                            gboolean         was_processed);
71 void _pygi_marshal_cleanup_from_py_interface_callback     (PyGIInvokeState *state,
72                                                            PyGIArgCache    *arg_cache,
73                                                            gpointer         data,
74                                                            gboolean         was_processed);
75 void _pygi_marshal_cleanup_from_py_array                  (PyGIInvokeState *state,
76                                                            PyGIArgCache    *arg_cache,
77                                                            gpointer         data,
78                                                            gboolean         was_processed);
79 void _pygi_marshal_cleanup_to_py_array                    (PyGIInvokeState *state,
80                                                            PyGIArgCache    *arg_cache,
81                                                            gpointer         data,
82                                                            gboolean         was_processed);
83 void _pygi_marshal_cleanup_from_py_glist                  (PyGIInvokeState *state,
84                                                            PyGIArgCache    *arg_cache,
85                                                            gpointer         data,
86                                                            gboolean         was_processed);
87 void _pygi_marshal_cleanup_to_py_glist                    (PyGIInvokeState *state,
88                                                            PyGIArgCache    *arg_cache,
89                                                            gpointer         data,
90                                                            gboolean         was_processed);
91 void _pygi_marshal_cleanup_from_py_ghash                  (PyGIInvokeState *state,
92                                                            PyGIArgCache    *arg_cache,
93                                                            gpointer         data,
94                                                            gboolean         was_processed);
95 void _pygi_marshal_cleanup_to_py_ghash                    (PyGIInvokeState *state,
96                                                            PyGIArgCache    *arg_cache,
97                                                            gpointer         data,
98                                                            gboolean         was_processed);
99 G_END_DECLS
100
101 #endif /* __PYGI_MARSHAL_CLEANUP_H__ */