Skip to content

Commit

Permalink
Fix C compatibility in AMidi.h.
Browse files Browse the repository at this point in the history
Bug: android/ndk#1739
Test: treehugger
Change-Id: I1ab7fabeaa592a2c7011daddff8661bdc3950da1
  • Loading branch information
DanAlbert committed Oct 4, 2022
1 parent 4fe1ed8 commit 06b1134
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions media/native/midi/include/amidi/AMidi.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ enum {
*
* Introduced in API 33.
*/
enum AMidiDevice_Protocol : int32_t {
typedef enum AMidiDevice_Protocol : int32_t {
/**
* Constant representing a default protocol with Universal MIDI Packets (UMP).
* UMP is defined in "Universal MIDI Packet (UMP) Format and MIDI 2.0 Protocol" spec.
Expand Down Expand Up @@ -131,7 +131,7 @@ enum AMidiDevice_Protocol : int32_t {
* MIDI-CI is defined in "MIDI Capability Inquiry (MIDI-CI)" spec.
*/
AMIDI_DEVICE_PROTOCOL_UNKNOWN = -1
};
} AMidiDevice_Protocol;

/*
* Device API
Expand Down

0 comments on commit 06b1134

Please sign in to comment.