☰
Debian Codegraph
@
7.2.8-1
7.2.7-1
7.2.6-1
7.1.9-1
7.1.4-1
7.0.9-1
7.0.12-2
/
/
tools
/
net
/
sunrpc
/
xdrgen
/
templates
/
C
/
union
/
encoder
/
switch_spec.j2
☽
☼
tools/net/sunrpc/xdrgen/templates/C/union/encoder/switch_spec.j2
code
plain
raw
GPL-2
1991-2012 Linus Torvalds and many others
debian/copyright
1
{# SPDX-License-Identifier: GPL-2.0 #}
2
{% if annotate %}
3
/* discriminant {{ name }} */
4
{% endif %}
5
if (!xdrgen_encode_{{ type }}(xdr, ptr->{{ name }}))
6
return false;
7
switch (ptr->{{ name }}) {