Skip to content

Commit ea3b4de

Browse files
committed
Add 80125
Issue: rust-lang/rust#80125
1 parent 9ce8f74 commit ea3b4de

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

ices/80125.rs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
type ExternCallback = extern "C" fn(*const u8, u32, str);
2+
3+
pub struct Client {
4+
// ...
5+
conn_tx_bind: ExternCallback,
6+
// ...
7+
}
8+
9+
#[no_mangle]
10+
pub extern fn register_something(bind: ExternCallback) -> Client {
11+
Client{
12+
conn_tx_bind: bind
13+
}
14+
}
15+
16+
fn main() {}

0 commit comments

Comments
 (0)