From 51f518e749108c16f1374bc4baba523c7b64fe5e Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Wed, 8 Nov 2023 00:02:12 +0000 Subject: [PATCH] Replace GI_AVAILABLE_IN_2_* with GI_AVAILABLE_IN_ALL This is the first release of GIRepository 2.0. --- girepository/gicallableinfo.h | 8 ++++---- girepository/giinterfaceinfo.h | 2 +- girepository/giobjectinfo.h | 4 ++-- girepository/gipropertyinfo.h | 4 ++-- girepository/girepository.h | 6 +++--- girepository/girffi.h | 12 ++++++------ girepository/gistructinfo.h | 6 +++--- girepository/gitypeinfo.h | 10 +++++----- girepository/giunioninfo.h | 4 ++-- 9 files changed, 28 insertions(+), 28 deletions(-) diff --git a/girepository/gicallableinfo.h b/girepository/gicallableinfo.h index 1b42ddea0..0a1a4999e 100644 --- a/girepository/gicallableinfo.h +++ b/girepository/gicallableinfo.h @@ -45,10 +45,10 @@ G_BEGIN_DECLS (g_base_info_get_type((GIBaseInfo*)info) == GI_INFO_TYPE_VFUNC)) -GI_AVAILABLE_IN_2_34 +GI_AVAILABLE_IN_ALL gboolean g_callable_info_is_method (GICallableInfo *info); -GI_AVAILABLE_IN_2_34 +GI_AVAILABLE_IN_ALL gboolean g_callable_info_can_throw_gerror (GICallableInfo *info); GI_AVAILABLE_IN_ALL @@ -89,7 +89,7 @@ void g_callable_info_load_arg (GICallableInfo *info, gint n, GIArgInfo *arg); -GI_AVAILABLE_IN_2_34 +GI_AVAILABLE_IN_ALL gboolean g_callable_info_invoke (GICallableInfo *info, gpointer function, const GIArgument *in_args, @@ -101,7 +101,7 @@ gboolean g_callable_info_invoke (GICallableInfo *info, gboolean throws, GError **error); -GI_AVAILABLE_IN_2_42 +GI_AVAILABLE_IN_ALL GITransfer g_callable_info_get_instance_ownership_transfer (GICallableInfo *info); G_END_DECLS diff --git a/girepository/giinterfaceinfo.h b/girepository/giinterfaceinfo.h index 426807568..6bc7b1511 100644 --- a/girepository/giinterfaceinfo.h +++ b/girepository/giinterfaceinfo.h @@ -74,7 +74,7 @@ GI_AVAILABLE_IN_ALL GISignalInfo * g_interface_info_get_signal (GIInterfaceInfo *info, gint n); -GI_AVAILABLE_IN_2_34 +GI_AVAILABLE_IN_ALL GISignalInfo * g_interface_info_find_signal (GIInterfaceInfo *info, const gchar *name); diff --git a/girepository/giobjectinfo.h b/girepository/giobjectinfo.h index 851f60a51..e12ea62f1 100644 --- a/girepository/giobjectinfo.h +++ b/girepository/giobjectinfo.h @@ -88,7 +88,7 @@ const gchar * g_object_info_get_type_init (GIObjectInfo *info); GI_AVAILABLE_IN_ALL gboolean g_object_info_get_abstract (GIObjectInfo *info); -GI_AVAILABLE_IN_2_70 +GI_AVAILABLE_IN_ALL gboolean g_object_info_get_final (GIObjectInfo *info); GI_AVAILABLE_IN_ALL @@ -160,7 +160,7 @@ GI_AVAILABLE_IN_ALL GIVFuncInfo * g_object_info_find_vfunc (GIObjectInfo *info, const gchar *name); -GI_AVAILABLE_IN_2_32 +GI_AVAILABLE_IN_ALL GIVFuncInfo * g_object_info_find_vfunc_using_interfaces (GIObjectInfo *info, const gchar *name, GIObjectInfo **implementor); diff --git a/girepository/gipropertyinfo.h b/girepository/gipropertyinfo.h index 26e594da2..a20f2918b 100644 --- a/girepository/gipropertyinfo.h +++ b/girepository/gipropertyinfo.h @@ -51,10 +51,10 @@ GITypeInfo * g_property_info_get_type (GIPropertyInfo *info); GI_AVAILABLE_IN_ALL GITransfer g_property_info_get_ownership_transfer (GIPropertyInfo *info); -GI_AVAILABLE_IN_2_70 +GI_AVAILABLE_IN_ALL GIFunctionInfo *g_property_info_get_setter (GIPropertyInfo *info); -GI_AVAILABLE_IN_2_70 +GI_AVAILABLE_IN_ALL GIFunctionInfo *g_property_info_get_getter (GIPropertyInfo *info); G_END_DECLS diff --git a/girepository/girepository.h b/girepository/girepository.h index af89506c7..772a32151 100644 --- a/girepository/girepository.h +++ b/girepository/girepository.h @@ -104,7 +104,7 @@ GIRepository *g_irepository_get_default (void); GI_AVAILABLE_IN_ALL void g_irepository_prepend_search_path (const char *directory); -GI_AVAILABLE_IN_2_36 +GI_AVAILABLE_IN_ALL void g_irepository_prepend_library_path (const char *directory); GI_AVAILABLE_IN_ALL @@ -145,7 +145,7 @@ GITypelib * g_irepository_require_private (GIRepository *repository, GIRepositoryLoadFlags flags, GError **error); -GI_AVAILABLE_IN_2_44 +GI_AVAILABLE_IN_ALL gchar ** g_irepository_get_immediate_dependencies (GIRepository *repository, const gchar *namespace_); @@ -160,7 +160,7 @@ GI_AVAILABLE_IN_ALL GIBaseInfo * g_irepository_find_by_gtype (GIRepository *repository, GType gtype); -GI_AVAILABLE_IN_2_60 +GI_AVAILABLE_IN_ALL void g_irepository_get_object_gtype_interfaces (GIRepository *repository, GType gtype, guint *n_interfaces_out, diff --git a/girepository/girffi.h b/girepository/girffi.h index 8a1ebd7cd..a37243feb 100644 --- a/girepository/girffi.h +++ b/girepository/girffi.h @@ -75,12 +75,12 @@ ffi_type * gi_type_tag_get_ffi_type (GITypeTag type_tag, gboolean GI_AVAILABLE_IN_ALL ffi_type * g_type_info_get_ffi_type (GITypeInfo *info); -GI_AVAILABLE_IN_2_32 +GI_AVAILABLE_IN_ALL void gi_type_info_extract_ffi_return_value (GITypeInfo *return_info, GIFFIReturnValue *ffi_value, GIArgument *arg); -GI_AVAILABLE_IN_2_72 +GI_AVAILABLE_IN_ALL void gi_type_tag_extract_ffi_return_value (GITypeTag return_tag, GIInfoType interface_type, GIFFIReturnValue *ffi_value, @@ -91,7 +91,7 @@ gboolean g_function_info_prep_invoker (GIFunctionInfo *info, GIFunctionInvoker *invoker, GError **error); -GI_AVAILABLE_IN_2_32 +GI_AVAILABLE_IN_ALL gboolean g_function_invoker_new_for_address (gpointer addr, GICallableInfo *info, GIFunctionInvoker *invoker, @@ -101,17 +101,17 @@ GI_AVAILABLE_IN_ALL void g_function_invoker_destroy (GIFunctionInvoker *invoker); -GI_AVAILABLE_IN_2_72 +GI_AVAILABLE_IN_ALL ffi_closure * g_callable_info_create_closure (GICallableInfo *callable_info, ffi_cif *cif, GIFFIClosureCallback callback, gpointer user_data); -GI_AVAILABLE_IN_2_72 +GI_AVAILABLE_IN_ALL gpointer * g_callable_info_get_closure_native_address (GICallableInfo *callable_info, ffi_closure *closure); -GI_AVAILABLE_IN_2_72 +GI_AVAILABLE_IN_ALL void g_callable_info_destroy_closure (GICallableInfo *callable_info, ffi_closure *closure); diff --git a/girepository/gistructinfo.h b/girepository/gistructinfo.h index 873bd1a94..74030c170 100644 --- a/girepository/gistructinfo.h +++ b/girepository/gistructinfo.h @@ -49,7 +49,7 @@ GI_AVAILABLE_IN_ALL GIFieldInfo * g_struct_info_get_field (GIStructInfo *info, gint n); -GI_AVAILABLE_IN_2_46 +GI_AVAILABLE_IN_ALL GIFieldInfo * g_struct_info_find_field (GIStructInfo *info, const gchar *name); @@ -76,10 +76,10 @@ gboolean g_struct_info_is_gtype_struct (GIStructInfo *info); GI_AVAILABLE_IN_ALL gboolean g_struct_info_is_foreign (GIStructInfo *info); -GI_AVAILABLE_IN_2_76 +GI_AVAILABLE_IN_ALL const char * g_struct_info_get_copy_function (GIStructInfo *info); -GI_AVAILABLE_IN_2_76 +GI_AVAILABLE_IN_ALL const char * g_struct_info_get_free_function (GIStructInfo *info); G_END_DECLS diff --git a/girepository/gitypeinfo.h b/girepository/gitypeinfo.h index 0457a4dab..8460dab0e 100644 --- a/girepository/gitypeinfo.h +++ b/girepository/gitypeinfo.h @@ -135,24 +135,24 @@ gboolean g_type_info_is_zero_terminated (GITypeInfo *info); GI_AVAILABLE_IN_ALL GIArrayType g_type_info_get_array_type (GITypeInfo *info); -GI_AVAILABLE_IN_2_66 +GI_AVAILABLE_IN_ALL GITypeTag g_type_info_get_storage_type (GITypeInfo *info); -GI_AVAILABLE_IN_2_66 +GI_AVAILABLE_IN_ALL void g_type_info_argument_from_hash_pointer (GITypeInfo *info, gpointer hash_pointer, GIArgument *arg); -GI_AVAILABLE_IN_2_66 +GI_AVAILABLE_IN_ALL gpointer g_type_info_hash_pointer_from_argument (GITypeInfo *info, GIArgument *arg); -GI_AVAILABLE_IN_2_72 +GI_AVAILABLE_IN_ALL void gi_type_tag_argument_from_hash_pointer (GITypeTag storage_type, gpointer hash_pointer, GIArgument *arg); -GI_AVAILABLE_IN_2_72 +GI_AVAILABLE_IN_ALL gpointer gi_type_tag_hash_pointer_from_argument (GITypeTag storage_type, GIArgument *arg); diff --git a/girepository/giunioninfo.h b/girepository/giunioninfo.h index 6c7152996..1c5b40599 100644 --- a/girepository/giunioninfo.h +++ b/girepository/giunioninfo.h @@ -78,10 +78,10 @@ gsize g_union_info_get_size (GIUnionInfo *info); GI_AVAILABLE_IN_ALL gsize g_union_info_get_alignment (GIUnionInfo *info); -GI_AVAILABLE_IN_2_76 +GI_AVAILABLE_IN_ALL const char * g_union_info_get_copy_function (GIUnionInfo *info); -GI_AVAILABLE_IN_2_76 +GI_AVAILABLE_IN_ALL const char * g_union_info_get_free_function (GIUnionInfo *info); G_END_DECLS