mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-24 18:20:07 +01:00
tests: rework handling of D-Bus properties in NetworkManager stub service
Instead of registering a __get_props() function which constructs the entire hash anew each time, register a props dictionary. This dictionary is used as cache for the properies. In most cases, we don't need to additionally cache the properties outside the props dictionary. Also, add _dbus_property_set() which sets the property and emits the notification. Also, cleanup the property names by giving them a PRP_ prefix.
This commit is contained in:
parent
fc475f25f2
commit
b1ff82eba5
1 changed files with 319 additions and 364 deletions
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue