summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2025-11-05 10:26:06 -0500
committerChuck Lever <chuck.lever@oracle.com>2025-11-25 09:09:42 -0500
commitf7cb94fad4e6cec354a3ea779f91fe5560fb72b6 (patch)
treecd0af516941afa7b7f010094c7dd8f2a5caa6b34
parent14282cc3cfa25b7c137fb2f63ea0db61311d45e3 (diff)
xdrgen: Fix union declarations
Add a missing template file. This file is used when a union is defined as a public API (ie, "pragma public <union name>;"). Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
-rw-r--r--tools/net/sunrpc/xdrgen/templates/C/union/declaration/close.j24
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/net/sunrpc/xdrgen/templates/C/union/declaration/close.j2 b/tools/net/sunrpc/xdrgen/templates/C/union/declaration/close.j2
new file mode 100644
index 000000000000..816291184e8c
--- /dev/null
+++ b/tools/net/sunrpc/xdrgen/templates/C/union/declaration/close.j2
@@ -0,0 +1,4 @@
+{# SPDX-License-Identifier: GPL-2.0 #}
+
+bool xdrgen_decode_{{ name }}(struct xdr_stream *xdr, struct {{ name }} *ptr);
+bool xdrgen_encode_{{ name }}(struct xdr_stream *xdr, const struct {{ name }} *value);