org.freedesktop.DBus.Introspectable

Thiago Macieira thiago at kde.org
Sat May 26 07:51:47 PDT 2007


Steve Kreyer wrote:
>Thiago Macieira wrote:
>> However, bindings have borrows the concept of "registering" to
>> objects. In bindings, you register an object so that it is available
>> under a given object path over D-Bus. But mind you, the action of
>> registering an object in a binding carries out absolutely no action at
>> the protocol level: neither the bus daemon nor other programs get to
>> know what happens.
>
>So does this mean that the addressing of an object via the object path
>depends on the binding which is used, and is not a part of the lower
>based protocol?

I don't understand the question.

The message format is defined in the specification. The object paths are 
also restricted to something defined in the specification.

If that doesn't answer, please rephrase the question.

>> Now, you did not mention any binding in your original email or your
>> new one. But given that you're so lost, yet your objects seem to be
>> introspectable, you are probably using a binding. Which one, you have
>> to tell us.
>> In any case, a binding's job is to provide many of the facilities
>> required to interoperate properly with other D-Bus clients. One of
>> such tasks is to reply to Introspect requests with the proper XML,
>> generated from the object's actual content.
>
>Sorry, I wasn't aware about the neccessary differentiation of binding
>vs. protocol on this issue. Iam using the glib-binding.
>So if I understand you right, the binding makes my object introspectable
>and does the job for me. So this is comfortable to me, because I haven't
>take care about it :-)

Well, if you don't know which one is at issue, you should assume it can be 
any part of the chain. So you should volunteer all information.

Yes, using bindings takes care of generating introspections. I highly 
recommend using a binding, never to use libdbus-1 directly.

-- 
  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: not available
Url : http://lists.freedesktop.org/archives/dbus/attachments/20070526/f09046c5/attachment.pgp 


More information about the dbus mailing list