Skip to content

Commit

Permalink
Add 80125
Browse files Browse the repository at this point in the history
  • Loading branch information
fanninpm committed Dec 19, 2020
1 parent bae89cd commit 2e5b704
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 2e5b704

Please sign in to comment.