Files
imhex/lib/libimhex-rs/src/imhex.rs
jam1garner 57e1f7ee10 Rework libimhex-rs to use autocxx (#451)
* Rework libimhex-rs to use autocxx

* Remove Bookmarks::add overload

* Remove manual usage of cxx-rs
2022-02-20 19:14:11 -05:00

12 lines
280 B
Rust

use crate::ffi::hex::ImHexApi::Common;
/// Close ImHex, optionally prompting the user if they'd like to quit
pub fn close_imhex(without_question: bool) {
Common::closeImHex(without_question)
}
/// Close and reopen ImHex
pub fn restart_imhex() {
Common::restartImHex()
}