Replace GI_AVAILABLE_IN_2_* with GI_AVAILABLE_IN_ALL

This is the first release of GIRepository 2.0.
This commit is contained in:
Emmanuele Bassi 2023-11-08 00:02:12 +00:00
parent ba24fc659d
commit 51f518e749
9 changed files with 28 additions and 28 deletions

View File

@ -45,10 +45,10 @@ G_BEGIN_DECLS
(g_base_info_get_type((GIBaseInfo*)info) == GI_INFO_TYPE_VFUNC)) (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); 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); gboolean g_callable_info_can_throw_gerror (GICallableInfo *info);
GI_AVAILABLE_IN_ALL GI_AVAILABLE_IN_ALL
@ -89,7 +89,7 @@ void g_callable_info_load_arg (GICallableInfo *info,
gint n, gint n,
GIArgInfo *arg); GIArgInfo *arg);
GI_AVAILABLE_IN_2_34 GI_AVAILABLE_IN_ALL
gboolean g_callable_info_invoke (GICallableInfo *info, gboolean g_callable_info_invoke (GICallableInfo *info,
gpointer function, gpointer function,
const GIArgument *in_args, const GIArgument *in_args,
@ -101,7 +101,7 @@ gboolean g_callable_info_invoke (GICallableInfo *info,
gboolean throws, gboolean throws,
GError **error); GError **error);
GI_AVAILABLE_IN_2_42 GI_AVAILABLE_IN_ALL
GITransfer g_callable_info_get_instance_ownership_transfer (GICallableInfo *info); GITransfer g_callable_info_get_instance_ownership_transfer (GICallableInfo *info);
G_END_DECLS G_END_DECLS

View File

@ -74,7 +74,7 @@ GI_AVAILABLE_IN_ALL
GISignalInfo * g_interface_info_get_signal (GIInterfaceInfo *info, GISignalInfo * g_interface_info_get_signal (GIInterfaceInfo *info,
gint n); gint n);
GI_AVAILABLE_IN_2_34 GI_AVAILABLE_IN_ALL
GISignalInfo * g_interface_info_find_signal (GIInterfaceInfo *info, GISignalInfo * g_interface_info_find_signal (GIInterfaceInfo *info,
const gchar *name); const gchar *name);

View File

@ -88,7 +88,7 @@ const gchar * g_object_info_get_type_init (GIObjectInfo *info);
GI_AVAILABLE_IN_ALL GI_AVAILABLE_IN_ALL
gboolean g_object_info_get_abstract (GIObjectInfo *info); 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); gboolean g_object_info_get_final (GIObjectInfo *info);
GI_AVAILABLE_IN_ALL GI_AVAILABLE_IN_ALL
@ -160,7 +160,7 @@ GI_AVAILABLE_IN_ALL
GIVFuncInfo * g_object_info_find_vfunc (GIObjectInfo *info, GIVFuncInfo * g_object_info_find_vfunc (GIObjectInfo *info,
const gchar *name); const gchar *name);
GI_AVAILABLE_IN_2_32 GI_AVAILABLE_IN_ALL
GIVFuncInfo * g_object_info_find_vfunc_using_interfaces (GIObjectInfo *info, GIVFuncInfo * g_object_info_find_vfunc_using_interfaces (GIObjectInfo *info,
const gchar *name, const gchar *name,
GIObjectInfo **implementor); GIObjectInfo **implementor);

View File

@ -51,10 +51,10 @@ GITypeInfo * g_property_info_get_type (GIPropertyInfo *info);
GI_AVAILABLE_IN_ALL GI_AVAILABLE_IN_ALL
GITransfer g_property_info_get_ownership_transfer (GIPropertyInfo *info); 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); 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); GIFunctionInfo *g_property_info_get_getter (GIPropertyInfo *info);
G_END_DECLS G_END_DECLS

View File

@ -104,7 +104,7 @@ GIRepository *g_irepository_get_default (void);
GI_AVAILABLE_IN_ALL GI_AVAILABLE_IN_ALL
void g_irepository_prepend_search_path (const char *directory); 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); void g_irepository_prepend_library_path (const char *directory);
GI_AVAILABLE_IN_ALL GI_AVAILABLE_IN_ALL
@ -145,7 +145,7 @@ GITypelib * g_irepository_require_private (GIRepository *repository,
GIRepositoryLoadFlags flags, GIRepositoryLoadFlags flags,
GError **error); GError **error);
GI_AVAILABLE_IN_2_44 GI_AVAILABLE_IN_ALL
gchar ** g_irepository_get_immediate_dependencies (GIRepository *repository, gchar ** g_irepository_get_immediate_dependencies (GIRepository *repository,
const gchar *namespace_); const gchar *namespace_);
@ -160,7 +160,7 @@ GI_AVAILABLE_IN_ALL
GIBaseInfo * g_irepository_find_by_gtype (GIRepository *repository, GIBaseInfo * g_irepository_find_by_gtype (GIRepository *repository,
GType gtype); GType gtype);
GI_AVAILABLE_IN_2_60 GI_AVAILABLE_IN_ALL
void g_irepository_get_object_gtype_interfaces (GIRepository *repository, void g_irepository_get_object_gtype_interfaces (GIRepository *repository,
GType gtype, GType gtype,
guint *n_interfaces_out, guint *n_interfaces_out,

View File

@ -75,12 +75,12 @@ ffi_type * gi_type_tag_get_ffi_type (GITypeTag type_tag, gboolean
GI_AVAILABLE_IN_ALL GI_AVAILABLE_IN_ALL
ffi_type * g_type_info_get_ffi_type (GITypeInfo *info); 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, void gi_type_info_extract_ffi_return_value (GITypeInfo *return_info,
GIFFIReturnValue *ffi_value, GIFFIReturnValue *ffi_value,
GIArgument *arg); GIArgument *arg);
GI_AVAILABLE_IN_2_72 GI_AVAILABLE_IN_ALL
void gi_type_tag_extract_ffi_return_value (GITypeTag return_tag, void gi_type_tag_extract_ffi_return_value (GITypeTag return_tag,
GIInfoType interface_type, GIInfoType interface_type,
GIFFIReturnValue *ffi_value, GIFFIReturnValue *ffi_value,
@ -91,7 +91,7 @@ gboolean g_function_info_prep_invoker (GIFunctionInfo *info,
GIFunctionInvoker *invoker, GIFunctionInvoker *invoker,
GError **error); GError **error);
GI_AVAILABLE_IN_2_32 GI_AVAILABLE_IN_ALL
gboolean g_function_invoker_new_for_address (gpointer addr, gboolean g_function_invoker_new_for_address (gpointer addr,
GICallableInfo *info, GICallableInfo *info,
GIFunctionInvoker *invoker, GIFunctionInvoker *invoker,
@ -101,17 +101,17 @@ GI_AVAILABLE_IN_ALL
void g_function_invoker_destroy (GIFunctionInvoker *invoker); 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_closure * g_callable_info_create_closure (GICallableInfo *callable_info,
ffi_cif *cif, ffi_cif *cif,
GIFFIClosureCallback callback, GIFFIClosureCallback callback,
gpointer user_data); gpointer user_data);
GI_AVAILABLE_IN_2_72 GI_AVAILABLE_IN_ALL
gpointer * g_callable_info_get_closure_native_address (GICallableInfo *callable_info, gpointer * g_callable_info_get_closure_native_address (GICallableInfo *callable_info,
ffi_closure *closure); ffi_closure *closure);
GI_AVAILABLE_IN_2_72 GI_AVAILABLE_IN_ALL
void g_callable_info_destroy_closure (GICallableInfo *callable_info, void g_callable_info_destroy_closure (GICallableInfo *callable_info,
ffi_closure *closure); ffi_closure *closure);

View File

@ -49,7 +49,7 @@ GI_AVAILABLE_IN_ALL
GIFieldInfo * g_struct_info_get_field (GIStructInfo *info, GIFieldInfo * g_struct_info_get_field (GIStructInfo *info,
gint n); gint n);
GI_AVAILABLE_IN_2_46 GI_AVAILABLE_IN_ALL
GIFieldInfo * g_struct_info_find_field (GIStructInfo *info, GIFieldInfo * g_struct_info_find_field (GIStructInfo *info,
const gchar *name); const gchar *name);
@ -76,10 +76,10 @@ gboolean g_struct_info_is_gtype_struct (GIStructInfo *info);
GI_AVAILABLE_IN_ALL GI_AVAILABLE_IN_ALL
gboolean g_struct_info_is_foreign (GIStructInfo *info); 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); 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); const char * g_struct_info_get_free_function (GIStructInfo *info);
G_END_DECLS G_END_DECLS

View File

@ -135,24 +135,24 @@ gboolean g_type_info_is_zero_terminated (GITypeInfo *info);
GI_AVAILABLE_IN_ALL GI_AVAILABLE_IN_ALL
GIArrayType g_type_info_get_array_type (GITypeInfo *info); 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); 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, void g_type_info_argument_from_hash_pointer (GITypeInfo *info,
gpointer hash_pointer, gpointer hash_pointer,
GIArgument *arg); GIArgument *arg);
GI_AVAILABLE_IN_2_66 GI_AVAILABLE_IN_ALL
gpointer g_type_info_hash_pointer_from_argument (GITypeInfo *info, gpointer g_type_info_hash_pointer_from_argument (GITypeInfo *info,
GIArgument *arg); GIArgument *arg);
GI_AVAILABLE_IN_2_72 GI_AVAILABLE_IN_ALL
void gi_type_tag_argument_from_hash_pointer (GITypeTag storage_type, void gi_type_tag_argument_from_hash_pointer (GITypeTag storage_type,
gpointer hash_pointer, gpointer hash_pointer,
GIArgument *arg); GIArgument *arg);
GI_AVAILABLE_IN_2_72 GI_AVAILABLE_IN_ALL
gpointer gi_type_tag_hash_pointer_from_argument (GITypeTag storage_type, gpointer gi_type_tag_hash_pointer_from_argument (GITypeTag storage_type,
GIArgument *arg); GIArgument *arg);

View File

@ -78,10 +78,10 @@ gsize g_union_info_get_size (GIUnionInfo *info);
GI_AVAILABLE_IN_ALL GI_AVAILABLE_IN_ALL
gsize g_union_info_get_alignment (GIUnionInfo *info); 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); 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); const char * g_union_info_get_free_function (GIUnionInfo *info);
G_END_DECLS G_END_DECLS