Skip to content

Commit f7cb94f

Browse files
committed
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>
1 parent 14282cc commit f7cb94f

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

  • tools/net/sunrpc/xdrgen/templates/C/union/declaration
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{# SPDX-License-Identifier: GPL-2.0 #}
2+
3+
bool xdrgen_decode_{{ name }}(struct xdr_stream *xdr, struct {{ name }} *ptr);
4+
bool xdrgen_encode_{{ name }}(struct xdr_stream *xdr, const struct {{ name }} *value);

0 commit comments

Comments
 (0)