linux/tools/net/sunrpc/xdrgen/templates/C/struct/encoder/basic.j2

{# SPDX-License-Identifier: GPL-2.0 #}
{% if annotate %}
	/* member {{ name }} (basic) */
{% endif %}
{% if type in pass_by_reference %}
	if (!xdrgen_encode_{{ type }}(xdr, &value->{{ name }}))
{% else %}
	if (!xdrgen_encode_{{ type }}(xdr, value->{{ name }}))
{% endif %}
		return false;