summaryrefslogtreecommitdiff
path: root/librpc
diff options
context:
space:
mode:
authorRalph Boehme <slow@samba.org>2017-06-02 13:05:22 +0200
committerRalph Boehme <slow@samba.org>2017-07-03 19:59:07 +0200
commitebee4589fbabe0ed6f8b1662481558ff784e0e92 (patch)
tree6e344f00e657f9d9069c5f43ffb80c9e0e056d4c /librpc
parentd10ca1a00550d8ca315f6f741d87c668d29faeb9 (diff)
downloadsamba-ebee4589fbabe0ed6f8b1662481558ff784e0e92.tar.gz
librpc/idl: convert offload flags to a bitmap
Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'librpc')
-rw-r--r--librpc/idl/ioctl.idl13
1 files changed, 8 insertions, 5 deletions
diff --git a/librpc/idl/ioctl.idl b/librpc/idl/ioctl.idl
index f72f9d2507b..17dfdf802a0 100644
--- a/librpc/idl/ioctl.idl
+++ b/librpc/idl/ioctl.idl
@@ -67,19 +67,22 @@ interface copychunk
hyper length;
} fsctl_offload_read_input;
- const uint32 OFFLOAD_READ_FLAG_FILE_TOO_SMALL = 0x00000001;
- const uint32 OFFLOAD_READ_FLAG_ALL_ZERO_BEYOND_RANGE = 0x00000002;
- const uint32 OFFLOAD_READ_FLAG_CANNOT_OFFLOAD_BEYOND_RANGE = 0x00000004;
+ typedef [public,bitmap32bit] bitmap {
+ OFFLOAD_READ_FLAG_FILE_TOO_SMALL = 0x01,
+ OFFLOAD_READ_FLAG_ALL_ZERO_BEYOND_RANGE = 0x02,
+ OFFLOAD_READ_FLAG_CANNOT_OFFLOAD_BEYOND_RANGE = 0x04
+ } offload_flags;
+
typedef [public] struct {
uint32 size;
- uint32 flags;
+ offload_flags flags;
hyper xfer_length;
uint8 token[512];
} fsctl_offload_read_output;
typedef [public] struct {
uint32 size;
- uint32 flags;
+ offload_flags flags;
hyper file_offset;
hyper copy_length;
hyper xfer_offset;