blob: 096d553b2a1e47b2ac91f3f407b770a15a8525ba [file]
{# SPDX-License-Identifier: GPL-2.0 #}
/**
* {{ program }}_svc_decode_{{ argument }} - Decode a {{ argument }} argument
* @rqstp: RPC transaction context
* @xdr: source XDR data stream
*
* Return values:
* %true: procedure arguments decoded successfully
* %false: decode failed
*/
bool {{ program }}_svc_decode_{{ argument }}(struct svc_rqst *rqstp, struct xdr_stream *xdr)
{
{% if argument in structs %}
struct {{ argument }} *argp = rqstp->rq_argp;
{% else %}
{{ argument }} *argp = rqstp->rq_argp;
{% endif %}
return xdrgen_decode_{{ argument }}(xdr, argp);
}