mirror of
https://github.com/albfan/miraclecast.git
synced 2025-03-09 23:38:56 +00:00
demo/miracle-wfdctl: log more info about DBus operation
Change-Id: Ic44a6a2ca4585e6aa1983885b4730ccee6fd3d33
This commit is contained in:
parent
f4d1e4fb1b
commit
700c5fad9b
1 changed files with 6 additions and 0 deletions
|
@ -277,6 +277,7 @@ private class WfdCtl : GLib.Application
|
||||||
|
|
||||||
private void fetch_info_from_dbus() throws Error
|
private void fetch_info_from_dbus() throws Error
|
||||||
{
|
{
|
||||||
|
info("connecting to wifid...");
|
||||||
wifi = new DBusObjectManagerClient.for_bus_sync(
|
wifi = new DBusObjectManagerClient.for_bus_sync(
|
||||||
BusType.SYSTEM,
|
BusType.SYSTEM,
|
||||||
DBusObjectManagerClientFlags.NONE,
|
DBusObjectManagerClientFlags.NONE,
|
||||||
|
@ -287,6 +288,7 @@ private class WfdCtl : GLib.Application
|
||||||
wifi.object_added.connect(on_object_added);
|
wifi.object_added.connect(on_object_added);
|
||||||
wifi.object_removed.connect(on_object_removed);
|
wifi.object_removed.connect(on_object_removed);
|
||||||
|
|
||||||
|
info("connecting to nm...");
|
||||||
nm = new DBusObjectManagerClient.for_bus_sync(
|
nm = new DBusObjectManagerClient.for_bus_sync(
|
||||||
BusType.SYSTEM,
|
BusType.SYSTEM,
|
||||||
DBusObjectManagerClientFlags.NONE,
|
DBusObjectManagerClientFlags.NONE,
|
||||||
|
@ -297,6 +299,7 @@ private class WfdCtl : GLib.Application
|
||||||
nm.object_added.connect(on_object_added);
|
nm.object_added.connect(on_object_added);
|
||||||
nm.object_removed.connect(on_object_removed);
|
nm.object_removed.connect(on_object_removed);
|
||||||
|
|
||||||
|
info("connecting to dispd...");
|
||||||
wfd = new DBusObjectManagerClient.for_bus_sync(
|
wfd = new DBusObjectManagerClient.for_bus_sync(
|
||||||
BusType.SYSTEM,
|
BusType.SYSTEM,
|
||||||
DBusObjectManagerClientFlags.NONE,
|
DBusObjectManagerClientFlags.NONE,
|
||||||
|
@ -307,14 +310,17 @@ private class WfdCtl : GLib.Application
|
||||||
wfd.object_added.connect(on_object_added);
|
wfd.object_added.connect(on_object_added);
|
||||||
wfd.object_removed.connect(on_object_removed);
|
wfd.object_removed.connect(on_object_removed);
|
||||||
|
|
||||||
|
info("fetching from wifid...");
|
||||||
foreach(var o in wifi.get_objects()) {
|
foreach(var o in wifi.get_objects()) {
|
||||||
add_object(o.get_object_path());
|
add_object(o.get_object_path());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
info("fetching from nm...");
|
||||||
foreach(var o in nm.get_objects()) {
|
foreach(var o in nm.get_objects()) {
|
||||||
add_object(o.get_object_path());
|
add_object(o.get_object_path());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
info("fetching from wfd...");
|
||||||
foreach(var o in wfd.get_objects()) {
|
foreach(var o in wfd.get_objects()) {
|
||||||
add_object(o.get_object_path());
|
add_object(o.get_object_path());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue