Adding/Removing/Changing Dbus methods/signals on an already available dbus service.

Matthew Johnson dbus at matthew.ath.cx
Tue Feb 16 15:43:16 PST 2010


On Tue Feb 16 17:39, Colin Walters wrote:
> On Tue, Feb 16, 2010 at 3:27 PM, James <purpleidea at gmail.com> wrote:
> > Hi all,
> > Is it possible (or even a good idea) for a dbus service to be able to
> > add/remove/change dbus exported methods or signals on an already
> > running dbus service.
> 
> This is not a good idea, most DBus consumers expect static interfaces.
>  You can achieve a lot of dynamism by passing around a{sv} types
> however.

I think it might be acceptable to add or remove interfaces (but not change the
contents of them) but others disagree. Bindings can cache the introspection
replies for efficiency. There should probably be some well-defined signal that
it has added an interface so that clients can update their reference.

Matt

-- 
www.matthew.ath.cx
D-Bus Java
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: Digital signature
Url : http://lists.freedesktop.org/archives/dbus/attachments/20100216/7cd5f96f/attachment.pgp 


More information about the dbus mailing list