30 lines
554 B
Rust
30 lines
554 B
Rust
mod song;
|
|
pub use song::Song;
|
|
|
|
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(),
|
|
}
|
|
}
|