about the D-Bus C API.

Thiago Macieira thiago at kde.org
Mon Nov 12 23:20:49 PST 2007


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 
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
>  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 
receive the message in the first place.

-- 
  Thiago Macieira  -  thiago (AT) macieira.info - thiago (AT) kde.org
    PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.freedesktop.org/archives/dbus/attachments/20071113/9551a744/attachment.pgp 


More information about the dbus mailing list