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
Signed-off-by: Pranav Vashi <[email protected]>
  • Loading branch information
DanAlbert authored and MJPollard committed Oct 23, 2024
1 parent fd0af36 commit 30ae8ef
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 30ae8ef

Please sign in to comment.