audrey/src/main.rs

21 lines
448 B
Rust
Raw Normal View History

2024-10-29 10:37:15 +00:00
extern crate adw;
extern crate gtk;
extern crate libsecret;
#[link(name = "audrey")]
#[link(name = "gcrypt")]
#[link(name = "json-glib-1.0")]
#[link(name = "mpv")]
#[link(name = "soup-3.0")]
extern {
fn c_main(argc: libc::c_int, argv: *mut *mut libc::c_char) -> libc::c_int;
fn audrey_get_resource() -> *mut ();
}
fn main() {
unsafe {
audrey_get_resource();
std::process::exit(c_main(0, std::ptr::null_mut()))
}
}