handle "transfer-ownership" attribute

2008-10-12  Tommi Komulainen  <tommi.komulainen@iki.fi>

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

svn path=/trunk/; revision=690
This commit is contained in:
Tommi Komulainen 2008-10-12 21:07:33 +00:00 committed by Tommi Komulainen
parent 25e43d53d1
commit a940cef8c7

View 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: