mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-02 07:23:41 +02:00
girffi: Rename gi_function_invoker_destroy() to …_clear()
This brings its naming more in line with modern GLib conventions. This is an API break, but libgirepository is not API frozen yet. Signed-off-by: Philip Withnall <pwithnall@gnome.org>
This commit is contained in:
@@ -269,7 +269,7 @@ gi_callable_info_get_ffi_return_type (GICallableInfo *callable_info)
|
||||
* by a language binding could contain a [type@GIRepository.FunctionInvoker]
|
||||
* structure inside the binding’s function mapping.
|
||||
*
|
||||
* @invoker must be freed using [method@GIRepository.FunctionInvoker.destroy]
|
||||
* @invoker must be freed using [method@GIRepository.FunctionInvoker.clear]
|
||||
* when it’s finished with.
|
||||
*
|
||||
* Returns: `TRUE` on success, `FALSE` otherwise with @error set.
|
||||
@@ -342,7 +342,7 @@ gi_function_invoker_new_for_address (void *addr,
|
||||
}
|
||||
|
||||
/**
|
||||
* gi_function_invoker_destroy:
|
||||
* gi_function_invoker_clear:
|
||||
* @invoker: (transfer none): A #GIFunctionInvoker
|
||||
*
|
||||
* Release all resources allocated for the internals of @invoker.
|
||||
@@ -353,7 +353,7 @@ gi_function_invoker_new_for_address (void *addr,
|
||||
* Since: 2.80
|
||||
*/
|
||||
void
|
||||
gi_function_invoker_destroy (GIFunctionInvoker *invoker)
|
||||
gi_function_invoker_clear (GIFunctionInvoker *invoker)
|
||||
{
|
||||
g_free (invoker->cif.arg_types);
|
||||
}
|
||||
|
Reference in New Issue
Block a user