Skip to main content

gap_client_accept

Function gap_client_accept 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn gap_client_accept( ch: i32, current_epoch: u64, pt_ptr: *const u8, pt_len: usize, codec: u8, ) -> *mut c_char
Expand description

Accepts a GAP audio payload.

codec must match the value from the DeliveredPayload::codec field (0 = CBOR, 1 = Protobuf, 2 = FlatBuffers).

ยงSafety

pt_ptr MUST be valid for pt_len bytes.