1
0
mirror of https://github.com/clementine-player/Clementine synced 2024-12-23 08:20:01 +01:00

dbus: Fix signal arg annotations

An earlier change attempted to fix qdbusxml2cpp parsing errors by adding
directions to arguments. However, signal arguments are always out and it
was the annotations that were incorrect.

Fixes: f17b79a10 (dbus: Fix qdbusxml2cpp unknown type warnings., 2021-04-19)
Reference: https://dbus.freedesktop.org/doc/dbus-specification.html
This commit is contained in:
Jim Broadus 2021-04-21 23:09:05 -07:00 committed by John Maguire
parent 59f6d95b80
commit 8258c78c0b
3 changed files with 8 additions and 8 deletions

View File

@ -8,8 +8,8 @@
</method> </method>
<signal name="InterfacesAdded"> <signal name="InterfacesAdded">
<arg name="object" type="o"/> <arg name="object" type="o"/>
<arg name="interfaces" type="a{sa{sv}}" direction="in"/> <arg name="interfaces" type="a{sa{sv}}"/>
<annotation name="org.qtproject.QtDBus.QtTypeName.In1" value="InterfacesAndProperties"/> <annotation name="org.qtproject.QtDBus.QtTypeName.Out1" value="InterfacesAndProperties"/>
</signal> </signal>
<signal name="InterfacesRemoved"> <signal name="InterfacesRemoved">
<arg type="o" name="object_path"/> <arg type="o" name="object_path"/>

View File

@ -20,8 +20,8 @@
<annotation name="org.qtproject.QtDBus.QtTypeName.Out0" value="MprisPlaylistList"/> <annotation name="org.qtproject.QtDBus.QtTypeName.Out0" value="MprisPlaylistList"/>
</method> </method>
<signal name='PlaylistChanged'> <signal name='PlaylistChanged'>
<arg direction='in' name='Playlist' type='(oss)' /> <arg name='Playlist' type='(oss)' />
<annotation name="org.qtproject.QtDBus.QtTypeName.In0" value="MprisPlaylist" /> <annotation name="org.qtproject.QtDBus.QtTypeName.Out0" value="MprisPlaylist" />
</signal> </signal>
<annotation name="org.qtproject.QtDBus.QtTypeName" value="MaybePlaylist" /> <annotation name="org.qtproject.QtDBus.QtTypeName" value="MaybePlaylist" />
</interface> </interface>

View File

@ -24,8 +24,8 @@
<arg name='CurrentTrack' type='o'/> <arg name='CurrentTrack' type='o'/>
</signal> </signal>
<signal name='TrackAdded'> <signal name='TrackAdded'>
<arg direction='in' name='Metadata' type='a{sv}'/> <arg name='Metadata' type='a{sv}'/>
<annotation name="org.qtproject.QtDBus.QtTypeName.In0" value="TrackMetadata"/> <annotation name="org.qtproject.QtDBus.QtTypeName.Out0" value="TrackMetadata"/>
<arg name='AfterTrack' type='o'/> <arg name='AfterTrack' type='o'/>
</signal> </signal>
<signal name='TrackRemoved'> <signal name='TrackRemoved'>
@ -33,8 +33,8 @@
</signal> </signal>
<signal name='TrackMetadataChanged'> <signal name='TrackMetadataChanged'>
<arg name='TrackId' type='o'/> <arg name='TrackId' type='o'/>
<arg direction='in' name='Metadata' type='a{sv}'/> <arg name='Metadata' type='a{sv}'/>
<annotation name="org.qtproject.QtDBus.QtTypeName.In1" value="TrackMetadata"/> <annotation name="org.qtproject.QtDBus.QtTypeName.Out1" value="TrackMetadata"/>
</signal> </signal>
<property name='Tracks' type='ao' access='read'/> <property name='Tracks' type='ao' access='read'/>
<property name='CanEditTracks' type='b' access='read'/> <property name='CanEditTracks' type='b' access='read'/>