Skip to content

Commit

Permalink
[CoreMidi] Sprinkle a few more NativeName attributes for various stru…
Browse files Browse the repository at this point in the history
…cts. (#18139)

Otherwise the static registrar won't know that the native name is different
from the managed name in generated registrar code (and the generated registrar
code won't compile).
  • Loading branch information
rolfbjarne authored Apr 26, 2023
1 parent edd9881 commit 15c384d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/CoreMidi/MidiThruConnectionParams.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ public enum MidiTransformControlType : byte {
[SupportedOSPlatform ("maccatalyst")]
[SupportedOSPlatform ("macos")]
#endif
[NativeName ("MIDITransform")]
[StructLayout (LayoutKind.Sequential)]
public struct MidiTransform {
public MidiTransformType Transform;
Expand All @@ -62,6 +63,7 @@ public MidiTransform (MidiTransformType transform, short param)
[SupportedOSPlatform ("maccatalyst")]
[SupportedOSPlatform ("macos")]
#endif
[NativeName ("MIDIValueMap")]
[StructLayout (LayoutKind.Sequential)]
public unsafe struct MidiValueMap {
byte [] map_value;
Expand All @@ -84,6 +86,7 @@ public byte [] Value {
[SupportedOSPlatform ("maccatalyst")]
[SupportedOSPlatform ("macos")]
#endif
[NativeName ("MIDIControlTransform")]
[StructLayout (LayoutKind.Sequential)]
public struct MidiControlTransform {
public MidiTransformControlType ControlType;
Expand All @@ -110,6 +113,7 @@ public MidiControlTransform (MidiTransformControlType controlType,
[SupportedOSPlatform ("maccatalyst")]
[SupportedOSPlatform ("macos")]
#endif
[NativeName ("MIDIThruConnectionEndpoint")]
[StructLayout (LayoutKind.Sequential)]
public struct MidiThruConnectionEndpoint {
public MidiEndpointRef EndpointRef;
Expand Down

6 comments on commit 15c384d

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

Please sign in to comment.