Project

General

Profile

Feature #818

More efficient SongTuple D-Bus method

Added by Tom Thorogood 5 months ago.

Status:
New
Priority:
Minor
Assignee:
-
Category:
-
Target version:
Start date:
August 09, 2018
Due date:
% Done:

0%

Estimated time:
Affects version:

Description

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.

Also available in: Atom PDF