Skip to content

Commit

Permalink
Fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
est31 committed Jun 30, 2019
1 parent 869efc3 commit be1869d
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -280,43 +280,45 @@ pub mod capi {
///
/// Returns either NULL or a newly allocated LewtonContext
#[no_mangle]
pub unsafe extern "C" fn lewton_context_from_extradata(data: *const u8, len: usize) -> *mut LewtonContext {
pub unsafe extern "C" fn lewton_context_from_extradata(
data :*const u8, len :usize) -> *mut LewtonContext {
unimplemented!()
}

/// Reset the Decoder to support seeking.
#[no_mangle]
pub unsafe extern "C" fn lewton_context_reset(ctx: *mut LewtonContext) {
pub unsafe extern "C" fn lewton_context_reset(ctx :*mut LewtonContext) {
unimplemented!()
}

/// Decode a packet to LewtonSamples when possible
///
/// Returns 0 on success, non-zero if no samples can be produced
#[no_mangle]
pub unsafe extern "C" fn lewton_decode_packet(ctx: *mut LewtonContext,
pkt: *const u8, len: usize, sample_out: *mut *mut LewtonSamples) -> c_int {
pub unsafe extern "C" fn lewton_decode_packet(ctx :*mut LewtonContext,
pkt :*const u8, len: usize,
sample_out :*mut *mut LewtonSamples) -> c_int {
unimplemented!()
}

/// Provide the number of samples present in each channel
#[no_mangle]
pub unsafe extern "C" fn lewton_samples_count(ctx: *const LewtonSamples) -> usize {
pub unsafe extern "C" fn lewton_samples_count(ctx :*const LewtonSamples) -> usize {
unimplemented!()
}

/// Provide a reference to the channel sample data
pub unsafe extern "C" fn lewton_samples_f32(samples: *mut LewtonSamples, channel: usize) -> *const f32 {
pub unsafe extern "C" fn lewton_samples_f32(samples :*mut LewtonSamples, channel :usize) -> *const f32 {
unimplemented!()
}

#[no_mangle]
pub unsafe extern "C" fn lewton_samples_drop(samples: *mut *mut LewtonSamples) {
pub unsafe extern "C" fn lewton_samples_drop(samples :*mut *mut LewtonSamples) {
unimplemented!()
}

#[no_mangle]
pub unsafe extern "C" fn lewton_context_drop(ctx: *mut *mut LewtonContext) {
#[no_mangle]
pub unsafe extern "C" fn lewton_context_drop(ctx :*mut *mut LewtonContext) {
unimplemented!()
}
}
Expand Down

0 comments on commit be1869d

Please sign in to comment.