Make the closure variants of name owning and watching actually work
authorMatthias Clasen <mclasen@redhat.com>
Sat, 7 Aug 2010 20:27:38 +0000 (16:27 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 7 Aug 2010 21:10:17 +0000 (17:10 -0400)
commit402ad1958ccdb4586da9614ec4276396fd4c0faf
tree895727ab6b5428b5cec840c7ee0da4acca40e961
parentc15d20e53a9fdccd4fbe17c6a51c57e6b34410fd
Make the closure variants of name owning and watching actually work

The GClosure API is a bit funky (and badly documented), and requires
you to set a marshaller on the closure, and the marshaller has an
implicit 'this' argument, and the caller is reponsible for unsetting
the values after invoking the closure.

I've added some calls of the _with_closures variants to the
gdbus-names test now.
gio/gdbusnameowning.c
gio/gdbusnamewatching.c
gio/gio-marshal.list
gio/tests/gdbus-names.c