{% import 'common.j2' as common %} /* open packet for stream type `{{ stream_type.name }}` */ void {{ common.prefix }}{{ stream_type.name }}_open_packet( struct {{ common.prefix }}{{ stream_type.name }}_ctx *sctx{{ stream_type | open_func_params_str }})