Restructure objects around generic_rw() accessor
[babeltrace.git] / formats / ctf / types / variant.c
index 4422f1088a4171a24bafc016c883861ef031f42f..13b97cf7ce50d279895221ecd307fb5e0db482c0 100644 (file)
 
 #include <babeltrace/ctf/types.h>
 
-void ctf_variant_begin(struct stream_pos *pos,
-                      const struct type_variant *variant_type)
+void ctf_variant_rw(struct stream_pos *ppos, struct definition *definition)
 {
-}
+       struct declaration *declaration = definition->declaration;
+       struct ctf_stream_pos *pos = ctf_pos(ppos);
 
-void ctf_variant_end(struct stream_pos *pos,
-                    const struct type_variant *variant_type)
-{
+       ctf_align_pos(pos, declaration->alignment);
+       variant_rw(ppos, definition);
 }
This page took 0.022502 seconds and 4 git commands to generate.