static_struct_gen: Made plain functions private