Compare commits
2 commits
e02bc10ebc
...
bb097cd3d5
Author | SHA1 | Date | |
---|---|---|---|
bb097cd3d5 | |||
4ca473eb11 |
2 changed files with 11 additions and 9 deletions
|
@ -47,5 +47,6 @@ audrey_c = static_library(
|
||||||
'--gresources',
|
'--gresources',
|
||||||
meson.project_source_root() / 'resources/audrey.gresource.xml',
|
meson.project_source_root() / 'resources/audrey.gresource.xml',
|
||||||
],
|
],
|
||||||
|
vala_header: 'audrey.h',
|
||||||
vala_gir: 'audrey-0.gir',
|
vala_gir: 'audrey-0.gir',
|
||||||
)
|
)
|
||||||
|
|
17
src/mpv.rs
17
src/mpv.rs
|
@ -4,7 +4,8 @@
|
||||||
#[allow(unreachable_code)]
|
#[allow(unreachable_code)]
|
||||||
mod ffi;
|
mod ffi;
|
||||||
|
|
||||||
#[link(name = "mpv")] extern "C" {}
|
#[link(name = "mpv")]
|
||||||
|
extern "C" {}
|
||||||
|
|
||||||
pub struct Error(std::ffi::c_int);
|
pub struct Error(std::ffi::c_int);
|
||||||
|
|
||||||
|
@ -73,7 +74,7 @@ impl Handle {
|
||||||
22 => todo!("Event::PropertyChange"),
|
22 => todo!("Event::PropertyChange"),
|
||||||
24 => todo!("Event::QueueOverflow"),
|
24 => todo!("Event::QueueOverflow"),
|
||||||
25 => todo!("Event::Hook"),
|
25 => todo!("Event::Hook"),
|
||||||
_ => Event::Ignore(event.event_id),
|
_ => Some(Event::Ignore(event.event_id)),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -132,15 +133,15 @@ impl<'a> FormatData<'a> {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub struct EventProperty<'a> {
|
pub struct EventProperty<'a> {
|
||||||
name: &'a str,
|
pub name: &'a str,
|
||||||
value: FormatData<'a>,
|
pub value: FormatData<'a>,
|
||||||
}
|
}
|
||||||
|
|
||||||
pub struct EventLogMessage<'a> {
|
pub struct EventLogMessage<'a> {
|
||||||
prefix: &'a str,
|
pub prefix: &'a str,
|
||||||
level: &'a str,
|
pub level: &'a str,
|
||||||
text: &'a str,
|
pub text: &'a str,
|
||||||
log_level: i32,
|
pub log_level: i32,
|
||||||
}
|
}
|
||||||
|
|
||||||
pub enum EndFileReason {
|
pub enum EndFileReason {
|
||||||
|
|
Loading…
Reference in a new issue