1 /* -*- Mode: C; c-basic-offset: 4 -*-
2 * vim: tabstop=4 shiftwidth=4 expandtab
4 * Copyright (C) 2011 John (J5) Palmieri <johnp@redhat.com>, Red Hat, Inc.
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_MARSHAL_CLEANUP_H__
23 #define __PYGI_MARSHAL_CLEANUP_H__
25 #include "pygi-private.h"
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);
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);
43 void _pygi_marshal_cleanup_from_py_utf8 (PyGIInvokeState *state,
44 PyGIArgCache *arg_cache,
46 gboolean was_processed);
47 void _pygi_marshal_cleanup_to_py_utf8 (PyGIInvokeState *state,
48 PyGIArgCache *arg_cache,
50 gboolean was_processed);
51 void _pygi_marshal_cleanup_from_py_interface_struct_gvalue (PyGIInvokeState *state,
52 PyGIArgCache *arg_cache,
54 gboolean was_processed);
55 void _pygi_marshal_cleanup_from_py_interface_struct_foreign (PyGIInvokeState *state,
56 PyGIArgCache *arg_cache,
58 gboolean was_processed);
59 void _pygi_marshal_cleanup_to_py_interface_struct_foreign (PyGIInvokeState *state,
60 PyGIArgCache *arg_cache,
62 gboolean was_processed);
63 void _pygi_marshal_cleanup_from_py_interface_object (PyGIInvokeState *state,
64 PyGIArgCache *arg_cache,
66 gboolean was_processed);
67 void _pygi_marshal_cleanup_to_py_interface_object (PyGIInvokeState *state,
68 PyGIArgCache *arg_cache,
70 gboolean was_processed);
71 void _pygi_marshal_cleanup_from_py_array (PyGIInvokeState *state,
72 PyGIArgCache *arg_cache,
74 gboolean was_processed);
75 void _pygi_marshal_cleanup_to_py_array (PyGIInvokeState *state,
76 PyGIArgCache *arg_cache,
78 gboolean was_processed);
79 void _pygi_marshal_cleanup_from_py_glist (PyGIInvokeState *state,
80 PyGIArgCache *arg_cache,
82 gboolean was_processed);
83 void _pygi_marshal_cleanup_to_py_glist (PyGIInvokeState *state,
84 PyGIArgCache *arg_cache,
86 gboolean was_processed);
87 void _pygi_marshal_cleanup_from_py_ghash (PyGIInvokeState *state,
88 PyGIArgCache *arg_cache,
90 gboolean was_processed);
91 void _pygi_marshal_cleanup_to_py_ghash (PyGIInvokeState *state,
92 PyGIArgCache *arg_cache,
94 gboolean was_processed);
97 #endif /* __PYGI_MARSHAL_CLEANUP_H__ */