flashsync / src /flashsync_native.gleam
Dhurgh's picture
Permanently remove build artifacts from history
d0b8e8f
Raw
History Blame Contribute Delete
356 Bytes
@external(erlang, "erlang", "load_nif")
fn load_nif(path: String, load_info: Int) -> Nil
pub fn save_card(_id: String, _body: String) -> String { "NIF_NOT_LOADED" }
pub fn get_card(_id: String) -> String { "NIF_NOT_LOADED" }
pub fn load() {
// We use the relative path that works on Windows BEAM
let _ = load_nif("priv/flashsync_native", 0)
Nil
}