gobject floating reference count



Hi, all! 

I have read documentation on GObject floating reference. I understand
why it`s needed and how it works. 

Can somebody explain me what shall I do if i want to get reference in
this situation:

void someFunc( GVariant * k )
{
	k = some_glib_method( );
}
....
GVariant * ref;
....

someFunc( ref );


ref is null after "someFunc" execution.


-- 
"No Civilization = Freedom"
------------------------------------------------------------------------
Yes, I am a criminal. My crime is that of curiosity.

My crime is that of judging people by what they say and think, not what
they look like.

 



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