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