mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 19:36:18 +01:00
d041deae59
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
34 lines
1.0 KiB
C
34 lines
1.0 KiB
C
/* 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__ */
|