[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freedesktop-dbus
Subject:    Re: about the D-Bus C API.
From:       Thiago Macieira <thiago () kde ! org>
Date:       2007-11-13 7:20:49
Message-ID: 200711130821.00867.thiago () kde ! org
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


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

["signature.asc" (application/pgp-signature)]

_______________________________________________
dbus mailing list
dbus@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dbus


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic