summaryrefslogtreecommitdiff
path: root/tools/net/sunrpc/xdrgen/templates/C/struct/encoder/basic.j2
blob: a7d3695c5a6a8e076e2439b8c792fa0e732a7c6e (plain)
1
2
3
4
5
6
7
8
9
10
{# 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;