Re: guidance for org.freedesktop.DBus interfaces
Lawrence D'Oliveiro <ldo-kC51rjc0cqs1dNLGKZg6taU/[email protected]>
| Newsgroups | gmane.comp.freedesktop.dbus |
|---|---|
| Organization | Geek Central |
| Message-ID | <[email protected]> |
On Tue, 5 Jan 2021 20:39:06 +0100, Nyirő Gergő wrote: > Why threre isn't a SetAll method? Would it be a bad idea to update > all the properties with one call? Maybe you really mean a “SetMany” method. This could take a dict of property name-value mappings, and set them all at once. (Any defined properties that are not set keep their existing value.) If you really want to, this can probably be implemented via the existing “Set” method. Remember that the property name can be any string. You could, say, use “*” or the empty string to represent the object itself, and the value would be such a dict. > 2. The org.freedesktop.DBus.ObjectManager interface seems to support > the idea to add and remove objects. > Is it a common practice to handle objects dynamically or should I > avoid that? I would say, that depends entirely on your application. This makes sense for some applications, not for others. _______________________________________________ dbus mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dbus