girepository: Add get_type() wrapper macros

This makes `GIBaseInfo` and derived types more consistent with GObject
convention, and thus a bit more comfortable to use.

Signed-off-by: Philip Withnall <pwithnall@gnome.org>
Helps: #3216
This commit is contained in:
Philip Withnall 2024-01-17 14:15:23 +00:00
parent 9377a0dd54
commit 8e3d98fc98
18 changed files with 36 additions and 0 deletions

View File

@ -32,6 +32,8 @@
G_BEGIN_DECLS
#define GI_TYPE_ARG_INFO (gi_arg_info_get_type ())
/**
* GI_IS_ARG_INFO:
* @info: an info structure

View File

@ -32,6 +32,8 @@
G_BEGIN_DECLS
#define GI_TYPE_CALLABLE_INFO (gi_callable_info_get_type ())
/**
* GI_IS_CALLABLE_INFO:
* @info: an info structure

View File

@ -31,6 +31,8 @@
G_BEGIN_DECLS
#define GI_TYPE_CALLBACK_INFO (gi_callback_info_get_type ())
/**
* GI_IS_CALLBACK_INFO:
* @info: an info structure

View File

@ -32,6 +32,8 @@
G_BEGIN_DECLS
#define GI_TYPE_CONSTANT_INFO (gi_constant_info_get_type ())
/**
* GI_IS_CONSTANT_INFO:
* @info: an info structure

View File

@ -32,6 +32,8 @@
G_BEGIN_DECLS
#define GI_TYPE_ENUM_INFO (gi_enum_info_get_type ())
/**
* GI_IS_ENUM_INFO:
* @info: an info structure

View File

@ -32,6 +32,8 @@
G_BEGIN_DECLS
#define GI_TYPE_FIELD_INFO (gi_field_info_get_type ())
/**
* GI_IS_FIELD_INFO:
* @info: an info structure

View File

@ -32,6 +32,8 @@
G_BEGIN_DECLS
#define GI_TYPE_FUNCTION_INFO (gi_function_info_get_type ())
/**
* GI_IS_FUNCTION_INFO:
* @info: an info structure

View File

@ -32,6 +32,8 @@
G_BEGIN_DECLS
#define GI_TYPE_INTERFACE_INFO (gi_interface_info_get_type ())
/**
* GI_IS_INTERFACE_INFO:
* @info: an info structure

View File

@ -75,6 +75,8 @@ typedef void (*GIObjectInfoSetValueFunction) (GValue *value, void *object);
*/
typedef void * (*GIObjectInfoGetValueFunction) (const GValue *value);
#define GI_TYPE_OBJECT_INFO (gi_object_info_get_type ())
/**
* GI_IS_OBJECT_INFO:
* @info: an info structure

View File

@ -32,6 +32,8 @@
G_BEGIN_DECLS
#define GI_TYPE_PROPERTY_INFO (gi_property_info_get_type ())
/**
* GI_IS_PROPERTY_INFO:
* @info: an info structure

View File

@ -33,6 +33,8 @@
G_BEGIN_DECLS
#define GI_TYPE_REGISTERED_TYPE_INFO (gi_registered_type_info_get_type ())
/**
* GI_IS_REGISTERED_TYPE_INFO:
* @info: an info structure

View File

@ -33,6 +33,8 @@
G_BEGIN_DECLS
#define GI_TYPE_SIGNAL_INFO (gi_signal_info_get_type ())
/**
* GI_IS_SIGNAL_INFO:
* @info: an info structure

View File

@ -32,6 +32,8 @@
G_BEGIN_DECLS
#define GI_TYPE_STRUCT_INFO (gi_struct_info_get_type ())
/**
* GI_IS_STRUCT_INFO:
* @info: an info structure

View File

@ -32,6 +32,8 @@
G_BEGIN_DECLS
#define GI_TYPE_TYPE_INFO (gi_type_info_get_type ())
/**
* GI_IS_TYPE_INFO:
* @info: an info structure

View File

@ -32,6 +32,8 @@
G_BEGIN_DECLS
#define GI_TYPE_UNION_INFO (gi_union_info_get_type ())
/**
* GI_IS_UNION_INFO:
* @info: an info structure

View File

@ -31,6 +31,8 @@
G_BEGIN_DECLS
#define GI_TYPE_UNRESOLVED_INFO (gi_unresolved_info_get_type ())
/**
* GI_IS_UNRESOLVED_INFO:
* @info: an info structure

View File

@ -32,6 +32,8 @@
G_BEGIN_DECLS
#define GI_TYPE_VALUE_INFO (gi_value_info_get_type ())
/**
* GI_IS_VALUE_INFO:
* @info: an info structure

View File

@ -32,6 +32,8 @@
G_BEGIN_DECLS
#define GI_TYPE_VFUNC_INFO (gi_vfunc_info_get_type ())
/**
* GI_IS_VFUNC_INFO:
* @info: an info structure