More efficient SongTuple D-Bus method
I'm working on a project that uses the
org.atheme.audacious D-Bus interface. In order to retrieve multiple song fields, multiple separate
org.atheme.audacious.SongTuple D-Bus requests have to be made, and this quickly becomes inefficient and slow for large playlists. I'd like to propose a new D-Bus method be added:
<!-- Get the value of multiple tuple fields of some song --> <method name="SongTuples"> <!-- Song position in the playlist --> <arg type="u" direction="in" name="pos"/> <!-- Array of tuple names --> <arg type="as" direction="in" name="tuples"/> <!-- Return array of tuple values --> <arg type="av" direction="out" name="values"/> </method>
This would allow a single request to be made per-song, rather than N for N-fields. The return values would be indexed in the same order as the tuple names.