You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This could be achieved by changing the D-Bus API to a{sa(ssssssouso)} - where the dict has the node name as key (basic D-Bus type string) and the unit information as value (container D-Bus type). This way the node name isn't repeated n times for n units.
Notes:
* The same applies for ListUnitFiles (added in #889)
** This is a breaking API change
The text was updated successfully, but these errors were encountered:
mkemel
changed the title
Change API of ListUnits and ListUnitFiles
Improve the structure of ListUnits and ListUnitFiles API
Jul 22, 2024
mkemel
changed the title
Improve the structure of ListUnits and ListUnitFiles API
Remove node name duplication in the ListUnits and ListUnitFiles API
Jul 22, 2024
Please describe what you would like to see
For the API method
ListUnits
the returned structure is a list of all unit (files) and the name of the respective node
a(sssssssouso)
, for example:The node name is duplicated quite a lot in this structure. It would be more efficient to use a dict and store it only once, e.g.:
This could be achieved by changing the D-Bus API to
a{sa(ssssssouso)}
- where the dict has the node name as key (basic D-Bus type string) and the unit information as value (container D-Bus type). This way the node name isn't repeated n times for n units.Notes:
* The same applies for
ListUnitFiles
(added in #889)** This is a breaking API change
The text was updated successfully, but these errors were encountered: