mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-12 15:36:17 +01:00
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:
parent
cacf8cc93b
commit
e138287769
@ -680,11 +680,11 @@ write_struct_info (const gchar *ns,
|
||||
if (is_gtype_struct)
|
||||
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)
|
||||
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)
|
||||
xml_printf (file, " free-function=\"%s\"", func);
|
||||
|
||||
|
@ -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
|
||||
*
|
||||
* 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
|
||||
*/
|
||||
const char *
|
||||
gi_struct_info_get_copy_function (GIStructInfo *info)
|
||||
gi_struct_info_get_copy_function_name (GIStructInfo *info)
|
||||
{
|
||||
GIRealInfo *rinfo = (GIRealInfo *)info;
|
||||
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
|
||||
*
|
||||
* 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
|
||||
*/
|
||||
const char *
|
||||
gi_struct_info_get_free_function (GIStructInfo *info)
|
||||
gi_struct_info_get_free_function_name (GIStructInfo *info)
|
||||
{
|
||||
GIRealInfo *rinfo = (GIRealInfo *)info;
|
||||
StructBlob *blob;
|
||||
|
@ -77,9 +77,9 @@ GI_AVAILABLE_IN_ALL
|
||||
gboolean gi_struct_info_is_foreign (GIStructInfo *info);
|
||||
|
||||
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
|
||||
const char * gi_struct_info_get_free_function (GIStructInfo *info);
|
||||
const char * gi_struct_info_get_free_function_name (GIStructInfo *info);
|
||||
|
||||
G_END_DECLS
|
||||
|
Loading…
Reference in New Issue
Block a user