Skip to content

Commit

Permalink
Match C declaration for libremidi_midi*_available_apis
Browse files Browse the repository at this point in the history
  • Loading branch information
ejconlon authored and jcelerier committed Jan 8, 2025
1 parent f39f8a8 commit d818732
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/libremidi/libremidi-c.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@ const char* libremidi_get_version(void)
return LIBREMIDI_VERSION;
}

void libremidi_available_midi1_apis(void* ctx, void (*cb)(void* ctx, libremidi_api))
void libremidi_midi1_available_apis(void* ctx, void (*cb)(void* ctx, libremidi_api))
{
if (!cb)
return;
libremidi::midi1::for_all_backends([=](auto b) { cb(ctx, b.API); });
}

void libremidi_available_midi2_apis(void* ctx, void (*cb)(void* ctx, libremidi_api))
void libremidi_midi2_available_apis(void* ctx, void (*cb)(void* ctx, libremidi_api))
{
if (!cb)
return;
Expand Down

0 comments on commit d818732

Please sign in to comment.