update integer text output formatting
[babeltrace.git] / formats / ctf / types / struct.c
index 70c08219953200be6baa3931659ca3f505fbb51b..7c0a249bf03812e1730370e4f30920df2f9285e8 100644 (file)
 
 #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);
 }
This page took 0.024064 seconds and 4 git commands to generate.