Thiago Macieira thiago at kde.org
Thu Oct 12 10:08:10 PDT 2006

Peter Clifton wrote:
>One key question... do I have to implement introspection manually?

Yes. But I don't know if you need to add the sub-objects or if libdbus 
will take care of that.

>peer application (which is calling my methods) is written in Pyhton, and
>expects me to export an object. Presumably the introspection needs to
>work properly for python to Proxy my exported object.

Introspection needs to work for it to interoperate properly.

>The raw dbus tutorial uses:
>msg = dbus_message_new_method_call("test.method.server", // target for
>the method call
>         "/test/method/Object", // object to call on
>         "test.method.Type", // interface to call on
>         "Method"); // method name
>To call a method of an object, however it doesn't go into details of
>how you implement an "object" when exposing methods.

See dbus_connection_register_object_path to handle object registrations. 
It's got a VTable, which is how you get notified of external calls.

In order to receive signals, you need to use dbus_connection_add_filter.

>Can anyone point me at suitable example code?

  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/20061012/ac26eeb2/attachment.pgp

More information about the dbus mailing list