Restructure objects around generic_rw() accessor
[babeltrace.git] / formats / ctf / types / variant.c
index 78adca3da54d7506970231ec53802aa2486f73bf..13b97cf7ce50d279895221ecd307fb5e0db482c0 100644 (file)
 
 #include <babeltrace/ctf/types.h>
 
-void ctf_variant_begin(struct stream_pos *pos,
-                      const struct type_class_variant *variant_class)
+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_class_variant *variant_class)
-{
+       ctf_align_pos(pos, declaration->alignment);
+       variant_rw(ppos, definition);
 }
This page took 0.022424 seconds and 4 git commands to generate.