From freedesktop-dbus Tue Nov 13 07:20:49 2007 From: Thiago Macieira Date: Tue, 13 Nov 2007 07:20:49 +0000 To: freedesktop-dbus Subject: Re: about the D-Bus C API. Message-Id: <200711130821.00867.thiago () kde ! org> X-MARC-Message: https://marc.info/?l=freedesktop-dbus&m=119493847126514 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--===============0600777528==" --===============0600777528== Content-Type: multipart/signed; boundary="nextPart4365991.ShUrNQ0jvg"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit --nextPart4365991.ShUrNQ0jvg Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Wang Jun wrote: >I am using D-Bus C API. Is it possible to make sure the well known names >are returned when dbus_message_get_sender(msg) >and dbus_message_get_destination(msg) are called? No. get_sender ALWAYS returns the unique name. get_destination returns what the sender chose. It can be either a unique=20 or a well-known name. >Currently, I am not using any matching rule for listening on dbus as >I want to catch both method_calls and signals. So I use the >=A0 dbus_message_get_sender(msg) to check the sender and then call >the relevant subroutines. But the function returns unique names >instead of well known name... That paragraph doesn't make sense. Without a matching rule, you don't=20 receive the message in the first place. =2D-=20 =A0 Thiago Macieira =A0- =A0thiago (AT) macieira.info - thiago (AT) kde.org =A0 =A0 PGP/GPG: 0x6EF45358; fingerprint: =A0 =A0 E067 918B B660 DBD1 105C =A0966C 33F5 F005 6EF4 5358 --nextPart4365991.ShUrNQ0jvg Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) iD8DBQBHOVBRM/XwBW70U1gRAkEsAKCigFRFqnF2deepxkCMuYbNWrm82wCeOlHQ fr+Fiouh1grX794I8qZ1YqQ= =Sykt -----END PGP SIGNATURE----- --nextPart4365991.ShUrNQ0jvg-- --===============0600777528== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ dbus mailing list dbus@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/dbus --===============0600777528==--