Skip to content

Commit

Permalink
auto: fix struct definition clash with sync
Browse files Browse the repository at this point in the history
  • Loading branch information
larpon committed Oct 25, 2023
1 parent ea7a1c4 commit 3594e83
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions miniaudio.auto.c.v
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,19 @@ pub type Channel = u8
// ma_thread -> ma_pthread_t -> C.ma_pthread_t
pub type C.ma_thread = voidptr // C.ma_pthread_t -> C.ma_handle

// ma_mutex -> ma_pthread_mutex_t -> C.ma_pthread_mutex_t
pub type C.ma_mutex = C.pthread_mutex_t

[typedef]
pub struct C.pthread_mutex_t {}

pub type C.ma_pthread_mutex_t = C.pthread_mutex_t

[typedef]
pub struct C.pthread_cond_t {}

pub type C.ma_pthread_cond_t = C.pthread_cond_t

// ma_mutex -> ma_pthread_mutex_t -> C.ma_pthread_mutex_t
pub type C.ma_mutex = C.pthread_mutex_t

// ma_event -> ma_handle -> C.ma_handle
// ma_semaphore -> ma_handle -> C.ma_handle
// ma_resampling_backend -> void ->
Expand All @@ -61,7 +63,7 @@ pub type C.ma_sound_group = C.ma_sound
pub struct C.va_list {}

[typedef]
struct C.ma_data_source {}
pub struct C.ma_data_source {}

pub type DataSource = C.ma_data_source

Expand Down

0 comments on commit 3594e83

Please sign in to comment.