0

GVariant is opaque data structure used in the GDBUS bindings for libDBus.

Its been mentioned that GVariant is a floating reference count system. What actually does a floating reference mean in this respect? Also, it is mentioned that the GVariant on calling g_variant_ref_sink() convert the floating reference into full reference.

May anyone explain what does this mean?

gpoo
  • 8,408
  • 3
  • 38
  • 53
Gaurav
  • 11
  • 1

1 Answers1

2

The GObject documentation on floating references explains the concept. GVariant can't depend on GObject (it would be a circular dependency since gobject depends on glib and GVariant is part of glib), so it's not the same implementation, but it is the same concept.

nemequ
  • 16,623
  • 1
  • 43
  • 62