[glib: 1/2] gclosure: Fix the invoke() return_value annotation




commit 9c01c1ebeee2dfcbafd410af3b84792fdc9fb02a
Author: Ole André Vadla Ravnås <oleavr gmail com>
Date:   Fri Jul 9 02:43:54 2021 +0200

    gclosure: Fix the invoke() return_value annotation
    
    The return value must be initialized by the caller, as is clear from
    GLib's internal callers, and e.g. dummy_closure_marshal() on the callee
    side.

 gobject/gclosure.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gobject/gclosure.c b/gobject/gclosure.c
index 6d41e6d8a..364f4aab1 100644
--- a/gobject/gclosure.c
+++ b/gobject/gclosure.c
@@ -761,7 +761,7 @@ g_closure_remove_finalize_notifier (GClosure      *closure,
 /**
  * g_closure_invoke:
  * @closure: a #GClosure
- * @return_value: (optional) (out): a #GValue to store the return
+ * @return_value: (optional) (inout): a #GValue to store the return
  *                value. May be %NULL if the callback of @closure
  *                doesn't return a value.
  * @n_param_values: the length of the @param_values array


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]