audrey/src/playbin.rs

34 lines
588 B
Rust
Raw Normal View History

2024-10-30 09:06:10 +00:00
mod song;
pub use song::Song;
2024-10-30 11:45:50 +00:00
mod state;
pub use state::State;
2024-10-30 09:06:10 +00:00
mod ffi {
use gtk::glib;
#[repr(C)]
pub struct AudreyPlaybin {
parent_instance: glib::gobject_ffi::GObject,
}
#[repr(C)]
pub struct AudreyPlaybinClass {
parent_class: glib::gobject_ffi::GObjectClass,
}
extern "C" {
pub fn audrey_playbin_get_type() -> glib::ffi::GType;
}
}
use gtk::glib;
glib::wrapper! {
pub struct Playbin(Object<ffi::AudreyPlaybin, ffi::AudreyPlaybinClass>);
match fn {
type_ => || ffi::audrey_playbin_get_type(),
}
}