1 /* GObject introspection: Helper functions for ffi integration
3 * Copyright (C) 2008 Red Hat, Inc
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the
17 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 * Boston, MA 02111-1307, USA.
24 #include "girepository.h"
29 typedef void (*GIFFIClosureCallback) (ffi_cif *,
34 ffi_type * g_ir_ffi_get_ffi_type (GITypeTag tag);
35 GArgument * g_ir_ffi_convert_arguments (GICallableInfo *callable_info,
37 ffi_type ** g_callable_info_get_ffi_arg_types (GICallableInfo *callable_info);
38 ffi_type * g_callable_info_get_ffi_return_type (GICallableInfo *callable_info);
39 ffi_closure * g_callable_info_prepare_closure (GICallableInfo *callable_info,
41 GIFFIClosureCallback callback,
43 void g_callable_info_free_closure (GICallableInfo *callable_info,
44 ffi_closure *closure);
48 #endif /* __GIRFFI_H__ */