diff options
author | Owen Taylor <otaylor@src.gnome.org> | 2008-11-11 00:04:45 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2008-11-11 00:04:45 +0000 |
commit | 1764f6bcf2be6b45b0726694d86c501ce60d1b4e (patch) | |
tree | 41da0fde544d8c86c155c294ac5b70cae4b93aa2 /girepository/girffi.h | |
parent | eceeb044de0a3dd137fa15da7027ce706504bc94 (diff) | |
download | gobject-introspection-1764f6bcf2be6b45b0726694d86c501ce60d1b4e.tar.gz |
Split g_ir_ffi_get_ffi_type() out from ginvoke.c
Extract a function to convert GITypeTag to ffi_type from the internals
of ginvoke.c. This will be useful in figure out structure alignment.
Also fix handling of gsize and time_t to be portable. (Add a check
to configure.ac to figure out the width of time_t.)
svn path=/trunk/; revision=873
Diffstat (limited to 'girepository/girffi.h')
-rw-r--r-- | girepository/girffi.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/girepository/girffi.h b/girepository/girffi.h new file mode 100644 index 00000000..842a2334 --- /dev/null +++ b/girepository/girffi.h @@ -0,0 +1,33 @@ +/* GObject introspection: Helper functions for ffi integration + * + * Copyright (C) 2008 Red Hat, Inc + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __GIRFFI_H__ +#define __GIRFFI_H__ + +#include "girepository.h" +#include <ffi.h> + +G_BEGIN_DECLS + +ffi_type *g_ir_ffi_get_ffi_type (GITypeTag tag); + +G_END_DECLS + +#endif /* __GIRFFI_H__ */ |