Skip to content

Commit a1a66ca

Browse files
dpotmaneboasson
authored andcommitted
Re-generate xt typeinfo/lookup/map with correct ops-count
and dds_alignof for top-level type aligment Signed-off-by: Dennis Potman <[email protected]>
1 parent 4344ada commit a1a66ca

File tree

3 files changed

+18
-18
lines changed

3 files changed

+18
-18
lines changed

src/core/ddsi/src/ddsi_xt_typeinfo.c

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -101,12 +101,12 @@ static const uint32_t DDS_XTypes_TypeIdentifier_ops [] =
101101
const dds_topic_descriptor_t DDS_XTypes_TypeIdentifier_desc =
102102
{
103103
.m_size = sizeof (DDS_XTypes_TypeIdentifier),
104-
.m_align = sizeof (char *),
105-
.m_flagset = DDS_TOPIC_NO_OPTIMIZE | DDS_TOPIC_CONTAINS_UNION,
104+
.m_align = dds_alignof (DDS_XTypes_TypeIdentifier),
105+
.m_flagset = DDS_TOPIC_CONTAINS_UNION,
106106
.m_nkeys = 0u,
107107
.m_typename = "DDS::XTypes::TypeIdentifier",
108108
.m_keys = NULL,
109-
.m_nops = 52,
109+
.m_nops = 63,
110110
.m_ops = DDS_XTypes_TypeIdentifier_ops,
111111
.m_meta = ""
112112
};
@@ -711,12 +711,12 @@ static const uint32_t DDS_XTypes_TypeObject_ops [] =
711711
const dds_topic_descriptor_t DDS_XTypes_TypeObject_desc =
712712
{
713713
.m_size = sizeof (DDS_XTypes_TypeObject),
714-
.m_align = 8u,
715-
.m_flagset = DDS_TOPIC_NO_OPTIMIZE | DDS_TOPIC_CONTAINS_UNION,
714+
.m_align = dds_alignof (DDS_XTypes_TypeObject),
715+
.m_flagset = DDS_TOPIC_CONTAINS_UNION,
716716
.m_nkeys = 0u,
717717
.m_typename = "DDS::XTypes::TypeObject",
718718
.m_keys = NULL,
719-
.m_nops = 368,
719+
.m_nops = 404,
720720
.m_ops = DDS_XTypes_TypeObject_ops,
721721
.m_meta = ""
722722
};
@@ -837,12 +837,12 @@ static const uint32_t DDS_XTypes_TypeInformation_ops [] =
837837
const dds_topic_descriptor_t DDS_XTypes_TypeInformation_desc =
838838
{
839839
.m_size = sizeof (DDS_XTypes_TypeInformation),
840-
.m_align = sizeof (char *),
841-
.m_flagset = DDS_TOPIC_NO_OPTIMIZE | DDS_TOPIC_CONTAINS_UNION,
840+
.m_align = dds_alignof (DDS_XTypes_TypeInformation),
841+
.m_flagset = DDS_TOPIC_CONTAINS_UNION,
842842
.m_nkeys = 0u,
843843
.m_typename = "DDS::XTypes::TypeInformation",
844844
.m_keys = NULL,
845-
.m_nops = 67,
845+
.m_nops = 78,
846846
.m_ops = DDS_XTypes_TypeInformation_ops,
847847
.m_meta = ""
848848
};

src/core/ddsi/src/ddsi_xt_typelookup.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -156,12 +156,12 @@ static const uint32_t DDS_Builtin_TypeLookup_Request_ops [] =
156156
const dds_topic_descriptor_t DDS_Builtin_TypeLookup_Request_desc =
157157
{
158158
.m_size = sizeof (DDS_Builtin_TypeLookup_Request),
159-
.m_align = sizeof (char *),
160-
.m_flagset = DDS_TOPIC_NO_OPTIMIZE | DDS_TOPIC_CONTAINS_UNION,
159+
.m_align = dds_alignof (DDS_Builtin_TypeLookup_Request),
160+
.m_flagset = DDS_TOPIC_CONTAINS_UNION,
161161
.m_nkeys = 0u,
162162
.m_typename = "DDS::Builtin::TypeLookup_Request",
163163
.m_keys = NULL,
164-
.m_nops = 83,
164+
.m_nops = 96,
165165
.m_ops = DDS_Builtin_TypeLookup_Request_ops,
166166
.m_meta = ""
167167
};
@@ -851,12 +851,12 @@ static const uint32_t DDS_Builtin_TypeLookup_Reply_ops [] =
851851
const dds_topic_descriptor_t DDS_Builtin_TypeLookup_Reply_desc =
852852
{
853853
.m_size = sizeof (DDS_Builtin_TypeLookup_Reply),
854-
.m_align = 8u,
855-
.m_flagset = DDS_TOPIC_NO_OPTIMIZE | DDS_TOPIC_CONTAINS_UNION,
854+
.m_align = dds_alignof (DDS_Builtin_TypeLookup_Reply),
855+
.m_flagset = DDS_TOPIC_CONTAINS_UNION,
856856
.m_nkeys = 0u,
857857
.m_typename = "DDS::Builtin::TypeLookup_Reply",
858858
.m_keys = NULL,
859-
.m_nops = 417,
859+
.m_nops = 457,
860860
.m_ops = DDS_Builtin_TypeLookup_Reply_ops,
861861
.m_meta = ""
862862
};

src/core/ddsi/src/ddsi_xt_typemap.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -624,12 +624,12 @@ static const uint32_t DDS_XTypes_TypeMapping_ops [] =
624624
const dds_topic_descriptor_t DDS_XTypes_TypeMapping_desc =
625625
{
626626
.m_size = sizeof (DDS_XTypes_TypeMapping),
627-
.m_align = 8u,
628-
.m_flagset = DDS_TOPIC_NO_OPTIMIZE | DDS_TOPIC_CONTAINS_UNION,
627+
.m_align = dds_alignof (DDS_XTypes_TypeMapping),
628+
.m_flagset = DDS_TOPIC_CONTAINS_UNION,
629629
.m_nkeys = 0u,
630630
.m_typename = "DDS::XTypes::TypeMapping",
631631
.m_keys = NULL,
632-
.m_nops = 378,
632+
.m_nops = 414,
633633
.m_ops = DDS_XTypes_TypeMapping_ops,
634634
.m_meta = ""
635635
};

0 commit comments

Comments
 (0)