| 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 | #define XDR_void		(0) | 
|---|
| 27 | #define XDR_bool		(1) | 
|---|
| 28 | #define XDR_int			(1) | 
|---|
| 29 | #define XDR_unsigned_int	(1) | 
|---|
| 30 | #define XDR_long		(1) | 
|---|
| 31 | #define XDR_unsigned_long	(1) | 
|---|
| 32 | #define XDR_hyper		(2) | 
|---|
| 33 | #define XDR_unsigned_hyper	(2) | 
|---|
| 34 |  | 
|---|
| 35 | #endif /* _SUNRPC_XDRGEN__DEFS_H_ */ | 
|---|
| 36 |  | 
|---|