From dbdf5558756bc1469e017d0f9b638affc9289bba Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Thu, 13 Sep 2007 10:38:43 +0000 Subject: Use NameLost instead of NameOwnerChanged Original git commit by Alexander Larsson at 1165844712 +0100 svn path=/trunk/; revision=223 --- dbus.txt | 32 +------------------------------- 1 file changed, 1 insertion(+), 31 deletions(-) (limited to 'dbus.txt') diff --git a/dbus.txt b/dbus.txt index 7b65d575..5f703d67 100644 --- a/dbus.txt +++ b/dbus.txt @@ -1,37 +1,7 @@ -The "main" daemon owns the org.gtk.vfs.Daemon bus name -When the main daemon looses org.gtk.vfs.Daemon, it quits. - -each "daemon" has a unique session bus id - -Each daemon registers /org/gtk/vfs/Daemon which supports -operations like GetConnection and CancelOp on iface org.gtk.vfs.Daemon. - -The main daemon supports ListMountpoints, iface org.gtk.vfs.MountpointTracker -at /org/gtk/vfs/MountpointTracker. It does this by tracking signals for availible -mountpoints and deaths of vfs daemons. - -Each "mountpoint" in a daemon registers a org.gtk.vfs.Mountpoint iface -at a path like /org/gtk/vfs/mountpoint/N. It also signals availibility of this -mountpoint (with the bus id and the "uri prefix") at startup and when there is -a new owner of "org.gtk.vfs.Daemon". - -At startup the client calls ListMountpoints to get a list of all active -mountpoints. It then continues to track changes by looking at signals for -availibility and daemon deaths. - ----------- - -ideas: -NameLost when you loose a name -GetNameOwner - gets the owners name - - ----- New version -------------------------------------------------------------------- - All info for mapping uri -> dbus name + remainder path is stored in config files read by the client at startup. Each "mountpoint" in a mountpoint daemon owns a name like "org.gtk.vfs.mount.smb.$server.$share". -It also instantiates a Mountpoint interface at /org/gtk/vfs/mount/smb.$server.$share which +It also instantiates a Mountpoint interface at /org/gtk/vfs/mount/smb/$server/$share which listens to operations. Each daemon that contains at least one mountpoint also registers a org.gtk.vfs.Daemon interface -- cgit v1.2.1