31 lines
546 B
Rust
31 lines
546 B
Rust
|
mod player;
|
||
|
pub use player::Player;
|
||
|
|
||
|
mod ffi {
|
||
|
use gtk::glib;
|
||
|
|
||
|
#[repr(C)]
|
||
|
pub struct AudreyMpris {
|
||
|
parent_instance: glib::gobject_ffi::GObject,
|
||
|
}
|
||
|
|
||
|
#[repr(C)]
|
||
|
pub struct AudreyMprisClass {
|
||
|
parent_class: glib::gobject_ffi::GObjectClass,
|
||
|
}
|
||
|
|
||
|
extern "C" {
|
||
|
pub fn audrey_mpris_get_type() -> glib::ffi::GType;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
use gtk::glib;
|
||
|
|
||
|
glib::wrapper! {
|
||
|
pub struct Mpris(Object<ffi::AudreyMpris, ffi::AudreyMprisClass>);
|
||
|
|
||
|
match fn {
|
||
|
type_ => || ffi::audrey_mpris_get_type(),
|
||
|
}
|
||
|
}
|