Skip to content

Commit b90b1f3

Browse files
committed
Make more jazzy related type support structs internal
1 parent 484a23b commit b90b1f3

3 files changed

Lines changed: 6 additions & 7 deletions

File tree

src/Rcl.NET/Introspection/JazzyMessageIntrospection.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ internal unsafe class JazzyMessageIntrospection : IMessageIntrospection
1111
private readonly MessageMember_Jazzy* _members;
1212

1313
public JazzyMessageIntrospection(TypeSupportHandle typeSupport)
14-
: this((MessageTypeSupport_Jazzy*)typeSupport.GetMessageTypeSupport())
14+
: this(typeSupport.GetMessageTypeSupport())
1515
{
1616
}
1717

18-
public JazzyMessageIntrospection(MessageTypeSupport_Jazzy* ts)
18+
public JazzyMessageIntrospection(MessageTypeSupport* ts)
1919
{
2020
fixed (byte* id = TypeSupportIdentifier.Introspection)
2121
{

src/Rcl.NET/Introspection/MessageIntrospection.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,10 @@ public unsafe static IMessageIntrospection Create(MessageTypeSupport* typesuppor
4141
}
4242
else if (RosEnvironment.IsJazzy)
4343
{
44-
return new JazzyMessageIntrospection((MessageTypeSupport_Jazzy*)typesupport);
44+
return new JazzyMessageIntrospection(typesupport);
4545
}
4646
else
4747
{
48-
4948
throw new NotSupportedException();
5049
}
5150
}

src/Rosidl.Runtime/Interop/TypeSupport.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public unsafe readonly struct MessageTypeSupport
2929
/// Contains rosidl message type support data
3030
/// </summary>
3131
[StructLayout(LayoutKind.Sequential)]
32-
public unsafe readonly struct MessageTypeSupport_Jazzy
32+
internal unsafe readonly struct MessageTypeSupport_Jazzy
3333
{
3434
/// <summary>
3535
/// String identifier for the type_support.
@@ -78,7 +78,7 @@ public unsafe readonly struct ServiceTypeSupport
7878
/// Contains rosidl service type support data
7979
/// </summary>
8080
[StructLayout(LayoutKind.Sequential)]
81-
public unsafe readonly struct ServiceTypeSupport_Jazzy
81+
internal unsafe readonly struct ServiceTypeSupport_Jazzy
8282
{
8383
/// <summary>
8484
/// String identifier for the type_support.
@@ -143,7 +143,7 @@ public unsafe readonly struct ActionTypeSupport
143143
/// Contains rosidl action type support data
144144
/// </summary>
145145
[StructLayout(LayoutKind.Sequential)]
146-
public unsafe readonly struct ActionTypeSupport_Jazzy
146+
internal unsafe readonly struct ActionTypeSupport_Jazzy
147147
{
148148
/// <summary>
149149
/// The native type support handle of the goal service.

0 commit comments

Comments
 (0)