File: open.j2

package info (click to toggle)
linux 6.16.7-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,724,496 kB
  • sloc: ansic: 26,561,024; asm: 271,316; sh: 144,033; python: 72,469; makefile: 57,129; perl: 36,821; xml: 19,553; cpp: 5,820; yacc: 4,915; lex: 2,955; awk: 1,667; sed: 28; ruby: 25
file content (22 lines) | stat: -rw-r--r-- 395 bytes parent folder | download | duplicates (17)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{# SPDX-License-Identifier: GPL-2.0 #}

{% if annotate %}
/* pointer {{ name }} */
{% endif %}
{% if name in public_apis %}
bool
{% else %}
static bool __maybe_unused
{% endif %}
xdrgen_decode_{{ name }}(struct xdr_stream *xdr, struct {{ name }} *ptr)
{
	bool opted;

{% if annotate %}
	/* opted */
{% endif %}
	if (!xdrgen_decode_bool(xdr, &opted))
		return false;
	if (!opted)
		return true;