girepository: Rename symbols to the GI namespace

Rather than a mix of structs being in `GI` and their methods being in
`g_`.

We’ve chosen not to use the `g_` namespace because a number of the
libgirepository class names are quite generic, so we’d end up with
confusing symbols like `GScopeType` and `GArgument`.

Signed-off-by: Philip Withnall <pwithnall@gnome.org>

Helps: #3155
This commit is contained in:
Philip Withnall
2023-11-08 14:17:52 +00:00
parent f4db8af9de
commit b32da06a7c
50 changed files with 2960 additions and 2961 deletions

View File

@@ -39,47 +39,47 @@ G_BEGIN_DECLS
* Checks if @info is a #GIStructInfo.
*/
#define GI_IS_STRUCT_INFO(info) \
(g_base_info_get_type((GIBaseInfo*)info) == GI_INFO_TYPE_STRUCT)
(gi_base_info_get_type((GIBaseInfo*)info) == GI_INFO_TYPE_STRUCT)
GI_AVAILABLE_IN_ALL
gint g_struct_info_get_n_fields (GIStructInfo *info);
gint gi_struct_info_get_n_fields (GIStructInfo *info);
GI_AVAILABLE_IN_ALL
GIFieldInfo * g_struct_info_get_field (GIStructInfo *info,
gint n);
GIFieldInfo * gi_struct_info_get_field (GIStructInfo *info,
gint n);
GI_AVAILABLE_IN_ALL
GIFieldInfo * g_struct_info_find_field (GIStructInfo *info,
const gchar *name);
GIFieldInfo * gi_struct_info_find_field (GIStructInfo *info,
const gchar *name);
GI_AVAILABLE_IN_ALL
gint g_struct_info_get_n_methods (GIStructInfo *info);
gint gi_struct_info_get_n_methods (GIStructInfo *info);
GI_AVAILABLE_IN_ALL
GIFunctionInfo * g_struct_info_get_method (GIStructInfo *info,
gint n);
GIFunctionInfo * gi_struct_info_get_method (GIStructInfo *info,
gint n);
GI_AVAILABLE_IN_ALL
GIFunctionInfo * g_struct_info_find_method (GIStructInfo *info,
const gchar *name);
GIFunctionInfo * gi_struct_info_find_method (GIStructInfo *info,
const gchar *name);
GI_AVAILABLE_IN_ALL
gsize g_struct_info_get_size (GIStructInfo *info);
gsize gi_struct_info_get_size (GIStructInfo *info);
GI_AVAILABLE_IN_ALL
gsize g_struct_info_get_alignment (GIStructInfo *info);
gsize gi_struct_info_get_alignment (GIStructInfo *info);
GI_AVAILABLE_IN_ALL
gboolean g_struct_info_is_gtype_struct (GIStructInfo *info);
gboolean gi_struct_info_is_gtype_struct (GIStructInfo *info);
GI_AVAILABLE_IN_ALL
gboolean g_struct_info_is_foreign (GIStructInfo *info);
gboolean gi_struct_info_is_foreign (GIStructInfo *info);
GI_AVAILABLE_IN_ALL
const char * g_struct_info_get_copy_function (GIStructInfo *info);
const char * gi_struct_info_get_copy_function (GIStructInfo *info);
GI_AVAILABLE_IN_ALL
const char * g_struct_info_get_free_function (GIStructInfo *info);
const char * gi_struct_info_get_free_function (GIStructInfo *info);
G_END_DECLS