File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,8 @@ pub fn connect_to_srv(
24
24
}
25
25
26
26
/// Rust equivalent for `net_send_header` function in C. Uses Rust-native types as input and output.
27
- pub fn net_send_header ( data : & [ u8 ] ) {
27
+ pub fn net_send_header_rust ( data : & [ u8 ] ) {
28
+ // Rename back to `net_send_header` when C function is removed from encoder
28
29
let mut send_target = TARGET . write ( ) . unwrap ( ) ;
29
30
send_target. as_mut ( ) . unwrap ( ) . send_header ( data) ;
30
31
}
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ pub unsafe extern "C" fn ccxr_connect_to_srv(
65
65
#[ no_mangle]
66
66
pub unsafe extern "C" fn ccxr_net_send_header ( data : * const c_uchar , len : usize ) {
67
67
let buffer = std:: slice:: from_raw_parts ( data, len) ;
68
- net_send_header ( buffer) ;
68
+ net_send_header_rust ( buffer) ;
69
69
}
70
70
71
71
/// Rust equivalent for `net_send_cc` function in C. Uses C-native types as input and output.
You can’t perform that action at this time.
0 commit comments