From a940cef8c721fa55f9d8a9199b5ba4f6b6e4bd61 Mon Sep 17 00:00:00 2001 From: Tommi Komulainen Date: Sun, 12 Oct 2008 21:07:33 +0000 Subject: [PATCH] handle "transfer-ownership" attribute 2008-10-12 Tommi Komulainen * girepository/girparser.c (start_return_value): handle "transfer-ownership" attribute svn path=/trunk/; revision=690 --- girparser.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/girparser.c b/girparser.c index ead27f37a..8e47ec91b 100644 --- a/girparser.c +++ b/girparser.c @@ -1664,6 +1664,7 @@ start_return_value (GMarkupParseContext *context, ctx->state == STATE_FUNCTION) { GIrNodeParam *param; + const gchar *transfer; param = (GIrNodeParam *)g_ir_node_new (G_IR_NODE_PARAM); param->in = FALSE; @@ -1674,6 +1675,9 @@ start_return_value (GMarkupParseContext *context, state_switch (ctx, STATE_FUNCTION_RETURN); + transfer = find_attribute ("transfer-ownership", attribute_names, attribute_values); + parse_param_transfer (param, transfer); + switch (ctx->current_node->type) { case G_IR_NODE_FUNCTION: