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
{{ message }}
This repository has been archived by the owner on May 11, 2023. It is now read-only.
Hi, I've been trying to use zbus_xmlgen to generate interfaces for MPRIS, and I've ran into several things in their respective XMLs that have caused errors!
Docstrings
<propertyname="Fullscreen"type="b"tp:name-for-bindings="Fullscreen"access="readwrite">
<tp:addedversion="2.2" />
<annotationname="org.mpris.MediaPlayer2.property.optional"value="true"/>
<tp:docstringxmlns="http://www.w3.org/1999/xhtml">
<p>Whether the media player is occupying the fullscreen.</p>
<p>
This is typically used for videos. A value of <strong>true</strong>
indicates that the media player is taking up the full screen.
</p>
<p>
Media centre software may well have this value fixed to <strong>true</strong>
</p>
<p>
If <tp:member-ref>CanSetFullscreen</tp:member-ref> is <strong>true</strong>,
clients may set this property to <strong>true</strong> to tell the media player
to enter fullscreen mode, or to <strong>false</strong> to return to windowed
mode.
</p>
<p>
If <tp:member-ref>CanSetFullscreen</tp:member-ref> is <strong>false</strong>,
then attempting to set this property should have no effect, and may raise
an error. However, even if it is <strong>true</strong>, the media player
may still be unable to fulfil the request, in which case attempting to set
this property will have no effect (but should not raise an error).
</p>
<tp:rationale>
<p>
This allows remote control interfaces, such as LIRC or mobile devices like
phones, to control whether a video is shown in fullscreen.
</p>
</tp:rationale>
</tp:docstring>
</property>
Structs
<tp:structname="Playlist"array-name="Playlist_List">
<tp:docstringxmlns="http://www.w3.org/1999/xhtml">
<p>A data structure describing a playlist.</p>
</tp:docstring>
<tp:membertype="o"tp:type="Playlist_Id"name="Id">
<tp:docstringxmlns="http://www.w3.org/1999/xhtml">
<p>A unique identifier for the playlist.</p>
<p>This should remain the same if the playlist is renamed.</p>
</tp:docstring>
</tp:member>
<tp:membertype="s"name="Name">
<tp:docstringxmlns="http://www.w3.org/1999/xhtml">
<p>The name of the playlist, typically given by the user.</p>
</tp:docstring>
</tp:member>
<tp:membertype="s"tp:type="Uri"name="Icon">
<tp:docstringxmlns="http://www.w3.org/1999/xhtml">
<p>The URI of an (optional) icon.</p>
</tp:docstring>
</tp:member>
</tp:struct>
Enums
<tp:enumname="Playback_Status"tp:name-for-bindings="Playback_Status"type="s">
<tp:enumvaluesuffix="Playing"value="Playing">
<tp:docstringxmlns="http://www.w3.org/1999/xhtml">
<p>A track is currently playing.</p>
</tp:docstring>
</tp:enumvalue>
<tp:enumvaluesuffix="Paused"value="Paused">
<tp:docstringxmlns="http://www.w3.org/1999/xhtml">
<p>A track is currently paused.</p>
</tp:docstring>
</tp:enumvalue>
<tp:enumvaluesuffix="Stopped"value="Stopped">
<tp:docstringxmlns="http://www.w3.org/1999/xhtml">
<p>There is no track currently playing.</p>
</tp:docstring>
</tp:enumvalue>
<tp:docstringxmlns="http://www.w3.org/1999/xhtml">
<p>A playback state.</p>
</tp:docstring>
</tp:enum>
Simple Types
<tp:simple-typename="Playlist_Id"type="o"array-name="Playlist_Id_List">
<tp:docstringxmlns="http://www.w3.org/1999/xhtml">
<p>Unique playlist identifier.</p>
<tp:rationale>
<p>
Multiple playlists may have the same name.
</p>
<p>
This is a D-Bus object id as that is the definitive way to have
unique identifiers on D-Bus. It also allows for future optional
expansions to the specification where tracks are exported to D-Bus
with an interface similar to org.gnome.UPnP.MediaItem2.
</p>
</tp:rationale>
</tp:docstring>
</tp:simple-type>
<tp:simple-typename="Uri"type="s"array-name="Uri_List">
<tp:docstringxmlns="http://www.w3.org/1999/xhtml">
<p>A URI.</p>
</tp:docstring>
</tp:simple-type>
The text was updated successfully, but these errors were encountered:
@Absolucy Hi and thanks for reporting this. The snippets you provided are not the standard D-Bus interface XML but rather the telepathy extension, which xmlgen currently does not support.
In GitLab by @Absolucy on Mar 29, 2022, 22:54
Hi, I've been trying to use zbus_xmlgen to generate interfaces for MPRIS, and I've ran into several things in their respective XMLs that have caused errors!
Docstrings
Structs
Enums
Simple Types
The text was updated successfully, but these errors were encountered: