printf: Remove unused 'bprintf'
[drm/drm-misc.git] / include / linux / sunrpc / xdrgen / _defs.h
blob20c7270aa64d256554058d5814970c6e74ca5d57
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3 * Copyright (c) 2024 Oracle and/or its affiliates.
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 */
10 #ifndef _SUNRPC_XDRGEN__DEFS_H_
11 #define _SUNRPC_XDRGEN__DEFS_H_
13 #define TRUE (true)
14 #define FALSE (false)
16 typedef struct {
17 u32 len;
18 unsigned char *data;
19 } string;
21 typedef struct {
22 u32 len;
23 u8 *data;
24 } opaque;
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)
35 #endif /* _SUNRPC_XDRGEN__DEFS_H_ */