Example of pending call notification
Ross Burton
ross at burtonini.com
Wed Apr 27 09:34:55 PDT 2005
Hi,
Attached is a small test program which lists the names on the bus, but
does it with a pending call so the main loop runs until the reply is
ready. Could someone have a look at it and make sure that it is sane,
and doesn't do anything stupid?
I was a little confused at first by having to pass the GProxy as
userdata to set_notify(), but I presume in a real-worse use case the
userdata would be a struct which various members, including the GProxy.
Thanks,
Ross
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.c
Type: text/x-csrc
Size: 2135 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/dbus/attachments/20050427/6a9b8837/test.c
More information about the dbus
mailing list