Skip to content

Commit

Permalink
Add 80125
Browse files Browse the repository at this point in the history
  • Loading branch information
fanninpm committed Dec 17, 2020
1 parent 9ce8f74 commit ea3b4de
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions ices/80125.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
type ExternCallback = extern "C" fn(*const u8, u32, str);

pub struct Client {
// ...
conn_tx_bind: ExternCallback,
// ...
}

#[no_mangle]
pub extern fn register_something(bind: ExternCallback) -> Client {
Client{
conn_tx_bind: bind
}
}

fn main() {}

0 comments on commit ea3b4de

Please sign in to comment.