From d49c348781c8840d7791fb10ad5e0d1009b9d7e5 Mon Sep 17 00:00:00 2001 From: Erica Z Date: Thu, 31 Oct 2024 08:20:36 +0100 Subject: [PATCH] rust.vapi --- src/meson.build | 2 +- src/{ui/playbar.h => rust.h} | 0 src/rust.vapi | 12 ++++++++++++ src/ui/playbar.vapi | 8 -------- 4 files changed, 13 insertions(+), 9 deletions(-) rename src/{ui/playbar.h => rust.h} (100%) create mode 100644 src/rust.vapi delete mode 100644 src/ui/playbar.vapi 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; } -}