diff --git a/src/meson.build b/src/meson.build index e34728e..ec7a7eb 100644 --- a/src/meson.build +++ b/src/meson.build @@ -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', ] diff --git a/src/ui/playbar.h b/src/rust.h similarity index 100% rename from src/ui/playbar.h rename to src/rust.h diff --git a/src/rust.vapi b/src/rust.vapi new file mode 100644 index 0000000..11abf34 --- /dev/null +++ b/src/rust.vapi @@ -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; } + } + +} diff --git a/src/ui/playbar.vapi b/src/ui/playbar.vapi deleted file mode 100644 index cac75fb..0000000 --- a/src/ui/playbar.vapi +++ /dev/null @@ -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; } -}