Object path values - which service do they belong to?

Daniel Reed n at ml.org
Wed May 18 12:31:32 PDT 2005


On Wed, 18 May 2005, Colin Walters wrote:
> On the server side you don't get to choose, but so far I don't think
> I've seen anyone passing object paths as input values, only return
> values.

interface org.ml.n.naim.file {
 	boolean read(in UINT64 count, out ARRAY of BYTE buf);
 	boolean write(in UINT64 count, in ARRAY of BYTE buf);
 	boolean sendfile(in OBJECT_PATH object_path);
 	boolean close(void);
};

interface org.ml.n.naim.connection.target {
  // ...
 	boolean file_offer(in OBJECT_PATH object_path);
 	signal  file_offered(OBJECT_PATH object_path);
};


:1.123 creates /org/ml/n/naim/files/mylocalfile
:1.123 calls org.ml.n.naim.connections.EFnet/org/ml/n/naim/connections/EFnet/targets/n_->org.ml.n.naim.connection.target.file_offer("/org/ml/n/naim/files/mylocalfile")
org.ml.n.naim.connections.EFnet calls :1.123/org/ml/n/naim/files/mylocalfile->org.ml.n.naim.file.read(512, buf)
org.ml.n.naim.connections.EFnet calls :1.123/org/ml/n/naim/files/mylocalfile->org.ml.n.naim.file.read(512, buf)
org.ml.n.naim.connections.EFnet calls :1.123/org/ml/n/naim/files/mylocalfile->org.ml.n.naim.file.read(512, buf)
org.ml.n.naim.connections.EFnet calls :1.123/org/ml/n/naim/files/mylocalfile->org.ml.n.naim.file.close()


org.ml.n.naim.connections.AIM creates /org/ml/n/naim/files/_2Dhome_2Ddan_2D_2Ebashrc
org.ml.n.naim.connections.AIM emits org.ml.n.naim.connections.AIM/org/ml/n/naim/connections/AIM/targets/nmlorg->org.ml.n.naim.connection.target.file_offered("/org/ml/n/naim/files/_2Dhome_2Ddan_2D_2Ebashrc")
:1.456 creates /org/ml/n/naim/files/anotherlocal
:1.456 calls org.ml.n.naim.connections.AIM/org/ml/n/naim/files/_2Dhome_2Ddan_2D_2Ebashrc->sendfile("/org/ml/n/naim/files/anotherlocal")
org.ml.n.naim.connections.AIM calls :1.456/org/ml/n/naim/files/anotherlocal->org.ml.n.file.write(1024, buf)
org.ml.n.naim.connections.AIM calls :1.456/org/ml/n/naim/files/anotherlocal->org.ml.n.file.write(1024, buf)
org.ml.n.naim.connections.AIM calls :1.456/org/ml/n/naim/files/anotherlocal->org.ml.n.file.write(722, buf)
org.ml.n.naim.connections.AIM calls :1.456/org/ml/n/naim/files/anotherlocal->org.ml.n.file.close()

-- 
Daniel Reed <n at ml.org>	http://naim-users.org/nmlorg/	http://naim.n.ml.org/
If nature has made you a giver, your hands are born open, and so is
your heart. And though there may be times when your hands are empty,
your heart is always full, and you can give things out of that. --
Frances Hodgson Burnett, Novelist


More information about the dbus mailing list