gistructinfo: Rename get_*_function() methods to get_*_function_name()

Because they return the function name, not a `GIFunctionInfo` or
anything else.

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

Helps: #3155
This commit is contained in:
Philip Withnall 2023-12-12 18:18:51 +00:00
parent cacf8cc93b
commit e138287769
3 changed files with 8 additions and 8 deletions

View File

@ -680,11 +680,11 @@ write_struct_info (const gchar *ns,
if (is_gtype_struct) if (is_gtype_struct)
xml_printf (file, " glib:is-gtype-struct=\"1\""); xml_printf (file, " glib:is-gtype-struct=\"1\"");
func = gi_struct_info_get_copy_function (info); func = gi_struct_info_get_copy_function_name (info);
if (func) if (func)
xml_printf (file, " copy-function=\"%s\"", func); xml_printf (file, " copy-function=\"%s\"", func);
func = gi_struct_info_get_free_function (info); func = gi_struct_info_get_free_function_name (info);
if (func) if (func)
xml_printf (file, " free-function=\"%s\"", func); xml_printf (file, " free-function=\"%s\"", func);

View File

@ -286,7 +286,7 @@ gi_struct_info_is_gtype_struct (GIStructInfo *info)
} }
/** /**
* gi_struct_info_get_copy_function: * gi_struct_info_get_copy_function_name:
* @info: a struct information blob * @info: a struct information blob
* *
* Retrieves the name of the copy function for @info, if any is set. * Retrieves the name of the copy function for @info, if any is set.
@ -296,7 +296,7 @@ gi_struct_info_is_gtype_struct (GIStructInfo *info)
* Since: 2.80 * Since: 2.80
*/ */
const char * const char *
gi_struct_info_get_copy_function (GIStructInfo *info) gi_struct_info_get_copy_function_name (GIStructInfo *info)
{ {
GIRealInfo *rinfo = (GIRealInfo *)info; GIRealInfo *rinfo = (GIRealInfo *)info;
StructBlob *blob; StructBlob *blob;
@ -313,7 +313,7 @@ gi_struct_info_get_copy_function (GIStructInfo *info)
} }
/** /**
* gi_struct_info_get_free_function: * gi_struct_info_get_free_function_name:
* @info: a struct information blob * @info: a struct information blob
* *
* Retrieves the name of the free function for @info, if any is set. * Retrieves the name of the free function for @info, if any is set.
@ -323,7 +323,7 @@ gi_struct_info_get_copy_function (GIStructInfo *info)
* Since: 2.80 * Since: 2.80
*/ */
const char * const char *
gi_struct_info_get_free_function (GIStructInfo *info) gi_struct_info_get_free_function_name (GIStructInfo *info)
{ {
GIRealInfo *rinfo = (GIRealInfo *)info; GIRealInfo *rinfo = (GIRealInfo *)info;
StructBlob *blob; StructBlob *blob;

View File

@ -77,9 +77,9 @@ GI_AVAILABLE_IN_ALL
gboolean gi_struct_info_is_foreign (GIStructInfo *info); gboolean gi_struct_info_is_foreign (GIStructInfo *info);
GI_AVAILABLE_IN_ALL GI_AVAILABLE_IN_ALL
const char * gi_struct_info_get_copy_function (GIStructInfo *info); const char * gi_struct_info_get_copy_function_name (GIStructInfo *info);
GI_AVAILABLE_IN_ALL GI_AVAILABLE_IN_ALL
const char * gi_struct_info_get_free_function (GIStructInfo *info); const char * gi_struct_info_get_free_function_name (GIStructInfo *info);
G_END_DECLS G_END_DECLS