linux/tools/net/sunrpc/xdrgen/templates/C/union/encoder/switch_spec.j2

{# SPDX-License-Identifier: GPL-2.0 #}
{% if annotate %}
	/* discriminant {{ name }} */
{% endif %}
	if (!xdrgen_encode_{{ type }}(xdr, ptr->{{ name }}))
		return false;
	switch (ptr->{{ name }}) {