From 5589687a1fa5d4c7f15213ee3cd6860a03587ced Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Wed, 16 Dec 2009 11:47:19 -0500 Subject: Support (out caller-allocates) People have wanted support for marking (out) on functions of the form: /** * clutter_color_from_pixel: * @pixel: A pixel * @color: (out): Color to initialize with value of @pixel */ void clutter_color_from_pixel (guint32 pixel, ClutterColor *color); Where the caller is supposed to have allocated the argument; the C function just initializes it. This patch adds support for this argument passing style to introspection. In this case, we see the (out), and notice that there's only a single indirection (*) on the argument, and assume that this means (out caller-allocates). https://bugzilla.gnome.org/show_bug.cgi?id=604749 --- girepository/girepository.h | 1 + 1 file changed, 1 insertion(+) (limited to 'girepository/girepository.h') diff --git a/girepository/girepository.h b/girepository/girepository.h index 66afbffa..f3225640 100644 --- a/girepository/girepository.h +++ b/girepository/girepository.h @@ -551,6 +551,7 @@ GIDirection g_arg_info_get_direction (GIArgInfo *info); gboolean g_arg_info_is_dipper (GIArgInfo *info); gboolean g_arg_info_is_return_value (GIArgInfo *info); gboolean g_arg_info_is_optional (GIArgInfo *info); +gboolean g_arg_info_is_caller_allocates (GIArgInfo *info); gboolean g_arg_info_may_be_null (GIArgInfo *info); GITransfer g_arg_info_get_ownership_transfer (GIArgInfo *info); GIScopeType g_arg_info_get_scope (GIArgInfo *info); -- cgit v1.2.1