mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-21 08:28:53 +02:00
Export gi_type_tag_get_ffi_type
This is needed by the offsets code, and is generally useful. We need to export it for a future patch which won't export symbols with a leading _.
This commit is contained in:
13
girffi.c
13
girffi.c
@@ -30,9 +30,16 @@
|
||||
#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)
|
||||
{
|
||||
@@ -96,7 +103,7 @@ _gi_type_tag_get_ffi_type (GITypeTag 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));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user