gint n_vfuncs,
const gchar *name);
-ffi_type * _gi_type_tag_get_ffi_type (GITypeTag type_tag, gboolean is_pointer);
-
extern ffi_status ffi_prep_closure_loc (ffi_closure *,
ffi_cif *,
void (*fun)(ffi_cif *, void *, void **, void *),
#include "girepository.h"
#include "girepository-private.h"
+/**
+ * gi_type_tag_get_ffi_type:
+ * @tag: A #GITypeTag
+ * @is_pointer: Whether or not this is a pointer type
+ *
+ * Returns: A #ffi_type corresponding to the platform default C ABI for @tag and @is_pointer.
+ */
ffi_type *
-_gi_type_tag_get_ffi_type (GITypeTag tag,
- gboolean is_pointer)
+gi_type_tag_get_ffi_type (GITypeTag tag,
+ gboolean is_pointer)
{
switch (tag)
{
ffi_type *
g_type_info_get_ffi_type (GITypeInfo *info)
{
- return _gi_type_tag_get_ffi_type (g_type_info_get_tag (info), g_type_info_is_pointer (info));
+ return gi_type_tag_get_ffi_type (g_type_info_get_tag (info), g_type_info_is_pointer (info));
}
/**
gpointer padding[3];
};
+ffi_type * gi_type_tag_get_ffi_type (GITypeTag type_tag, gboolean is_pointer);
+
ffi_type * g_type_info_get_ffi_type (GITypeInfo *info);
gboolean g_function_info_prep_invoker (GIFunctionInfo *info,
* Boston, MA 02111-1307, USA.
*/
-#include "girepository-private.h"
+#include "girffi.h"
#include "girnode.h"
#include <string.h>
}
else
{
- type_ffi = _gi_type_tag_get_ffi_type (type->tag, type->is_pointer);
+ type_ffi = gi_type_tag_get_ffi_type (type->tag, type->is_pointer);
if (type_ffi == &ffi_type_void)
{