audrey/src/main.rs

22 lines
471 B
Rust
Raw Normal View History

2024-10-29 10:46:58 +00:00
use gtk::gio;
2024-10-29 10:37:15 +00:00
extern crate adw;
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 main() {
2024-10-29 10:46:58 +00:00
gio::resources_register_include!("audrey.gresource").expect("could not register resources");
2024-10-29 10:37:15 +00:00
unsafe {
std::process::exit(c_main(0, std::ptr::null_mut()))
}
}