handle "transfer-ownership" attribute
authorTommi Komulainen <tommi.komulainen@iki.fi>
Sun, 12 Oct 2008 21:07:33 +0000 (21:07 +0000)
committerTommi Komulainen <tko@src.gnome.org>
Sun, 12 Oct 2008 21:07:33 +0000 (21:07 +0000)
2008-10-12  Tommi Komulainen  <tommi.komulainen@iki.fi>

* girepository/girparser.c (start_return_value): handle
"transfer-ownership" attribute

svn path=/trunk/; revision=690

ChangeLog
girepository/girparser.c

index 2c74a70..176b447 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -7,6 +7,11 @@
 
 2008-10-12  Tommi Komulainen  <tommi.komulainen@iki.fi>
 
+       * girepository/girparser.c (start_return_value): handle
+       "transfer-ownership" attribute
+
+2008-10-12  Tommi Komulainen  <tommi.komulainen@iki.fi>
+
        * girepository/girparser.c (parse_param_transfer):
        * tools/generate.c (write_callable_info): use "container" for
        container/shallow ownership transfer (not "shallow")
index ead27f3..8e47ec9 100644 (file)
@@ -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: