summaryrefslogtreecommitdiff
path: root/gdbus/example-watch-name.c
AgeCommit message (Collapse)AuthorFilesLines
2010-05-05Add copyright headers to all examplesDavid Zeuthen1-0/+13
2010-04-26Add GBusNameWatcherFlags enumerationDavid Zeuthen1-0/+8
This is mostly so it's easy to automatically launch services. E.g. $ ./example-watch-proxy -n com.redhat.virt.manager \ -o /com/redhat/virt/manager \ -i com.redhat.virt.manager \ -p -a +++ Acquired proxy object for remote object owned by :1.444 bus: Session Bus name: com.redhat.virt.manager object path: /com/redhat/virt/manager interface: com.redhat.virt.manager properties: will actually make the bus launch Virt Manager and wait for it to take the name com.redhat.virt.manage before on_proxy_appeared() is called. Also fix a bug where proxies weren't constructed if properties are unwanted and the object has no properties.
2009-10-20Fix thread-default main-loop for watching, owning names and proxiesDavid Zeuthen1-0/+1
Also take a GDestroyNotify for the user_data.
2009-09-05Add machinery for watching proxies and rework connection/proxiesDavid Zeuthen1-14/+28
The GDBusProxy type now requires a unique bus name and it no longer watches any name changes. Also make construction failable and asynchronous. This makes it the #GDBusProxy much simpler but also harder to use. To compensate, we add new machinery to watch for remote objects, returning proxies loaded with properties. Also rework how synchronous D-Bus calls are made. In particular, avoid using GSimpleAsyncResult since this will cause warnings using GLib 2.21.x (see #594148).
2009-05-05Move gdbus into a separate repo for nowDavid Zeuthen1-0/+65