#include <babeltrace/ctf/types.h>
-void ctf_struct_begin(struct stream_pos *pos,
- const struct type_class_struct *struct_class)
+void ctf_struct_rw(struct stream_pos *ppos, struct definition *definition)
{
- align_pos(pos, struct_class->p.alignment);
-}
+ struct declaration *declaration = definition->declaration;
+ struct ctf_stream_pos *pos = ctf_pos(ppos);
-void ctf_struct_end(struct stream_pos *pos,
- const struct type_class_struct *struct_class)
-{
+ ctf_align_pos(pos, declaration->alignment);
+ struct_rw(ppos, definition);
}