1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* 3 * Copyright (c) 2024 Oracle and/or its affiliates. 4 * 5 * This header defines XDR data type primitives specified in 6 * Section 4 of RFC 4506, used by RPC programs implemented 7 * in the Linux kernel. 8 */ 9 10 #ifndef _SUNRPC_XDRGEN__DEFS_H_ 11 #define _SUNRPC_XDRGEN__DEFS_H_ 12 13 #define TRUE (true) 14 #define FALSE (false) 15 16 typedef struct { 17 u32 len; 18 unsigned char *data; 19 } string; 20 21 typedef struct { 22 u32 len; 23 u8 *data; 24 } opaque; 25 26 #endif /* _SUNRPC_XDRGEN__DEFS_H_ */ 27