connman.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* Manager::ServicesChanged properties
@ 2021-06-03 12:04 Andrei Datcu
  2021-06-09  6:54 ` Daniel Wagner
  0 siblings, 1 reply; 2+ messages in thread
From: Andrei Datcu @ 2021-06-03 12:04 UTC (permalink / raw)
  To: connman

Currently, the documentation states that

The dictionary with the properties might be empty in case none of
the properties have changed. Or only contains the
properties that have changed.
For newly added services the whole set of properties will be present.


Yet, the final paragraph also says:

This signal will only be triggered when the sort
order of the service list or the number of services
changes. It will not be emitted if only a property
of the service object changes.


Combining the two rules, I understand that the props dictionary is
either empty (for existing services) or it either contains the entire
props dict of the newly added service.

My question:

Since by inspecting the code (service.c::service_send_changed) this
seems to currently be the case, is there any particular reason why the
documentation doesn't state it explicitly? Was there ever the
possibility to get a partial dictionary? If not, would you consider a
patch to the documentation to make it clearer for the future?

Thanks,

Andrei Datcu

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-06-09  6:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-03 12:04 Manager::ServicesChanged properties Andrei Datcu
2021-06-09  6:54 ` Daniel Wagner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).