rust.vapi

This commit is contained in:
Erica Z 2024-10-31 08:20:36 +01:00
parent e5871e0bfc
commit d49c348781
4 changed files with 13 additions and 9 deletions

View file

@ -3,9 +3,9 @@ audrey_sources = [
'globalconf.vala',
'mpris.vala',
'playbin.vala',
'rust.vapi',
'subsonic.vala',
'ui/play_queue.vala',
'ui/playbar.vapi',
'ui/setup.vala',
'ui/window.vala',
]

12
src/rust.vapi Normal file
View file

@ -0,0 +1,12 @@
[CCode (cheader_filename = "rust.h")]
namespace Audrey {
public class Ui.Playbar : Adw.Bin {
public PlaybinSong? song { get; set; }
public Gdk.Paintable? playing_cover_art { get; set; }
public weak Playbin playbin { get; set; }
public bool show_cover_art { get; set; /*default = true;*/ }
public int volume { get; set; }
}
}

View file

@ -1,8 +0,0 @@
[CCode (cheader_filename = "ui/playbar.h")]
public class Audrey.Ui.Playbar : Adw.Bin {
public PlaybinSong? song { get; set; }
public Gdk.Paintable? playing_cover_art { get; set; }
public weak Playbin playbin { get; set; }
public bool show_cover_art { get; set; /*default = true;*/ }
public int volume { get; set; }
}