git add -f bin/default/librpc/gen_ndr/*.[ch] bin/default/source*/librpc/gen_ndr/...
[metze/samba/wip.git] / bin.gen_ndr / default / librpc / gen_ndr / ioctl.h
1 /* header auto-generated by pidl */
2
3 #ifndef _PIDL_HEADER_copychunk
4 #define _PIDL_HEADER_copychunk
5
6 #include <stdint.h>
7
8 #include "libcli/util/ntstatus.h"
9
10 #ifndef _HEADER_copychunk
11 #define _HEADER_copychunk
12
13 #define STORAGE_OFFLOAD_TOKEN_TYPE_ZERO_DATA    ( 0x00000001 )
14 #define OFFLOAD_READ_FLAG_FILE_TOO_SMALL        ( 0x00000001 )
15 #define OFFLOAD_READ_FLAG_ALL_ZERO_BEYOND_RANGE ( 0x00000002 )
16 #define OFFLOAD_READ_FLAG_CANNOT_OFFLOAD_BEYOND_RANGE   ( 0x00000004 )
17 struct req_resume_key_rsp {
18         uint8_t resume_key[24];
19         uint32_t context_len;
20         uint8_t context[4];
21 }/* [public] */;
22
23 struct srv_copychunk {
24         uint64_t source_off;
25         uint64_t target_off;
26         uint32_t length;
27         uint32_t reserved;
28 };
29
30 struct srv_copychunk_copy {
31         uint8_t source_key[24];
32         uint32_t chunk_count;
33         uint32_t reserved;
34         struct srv_copychunk *chunks;
35 }/* [public] */;
36
37 struct srv_copychunk_rsp {
38         uint32_t chunks_written;
39         uint32_t chunk_bytes_written;
40         uint32_t total_bytes_written;
41 }/* [public] */;
42
43 struct device_copy_offload_descriptor {
44         uint32_t version;
45         uint32_t size;
46         uint32_t maximum_token_lifetime;
47         uint32_t default_token_lifetime;
48         uint64_t maximum_xfer_size;
49         uint64_t optimal_xfer_count;
50         uint32_t maximum_data_descriptors;
51         uint32_t maximum_xfer_length_per_descriptor;
52         uint32_t optimal_xfer_length_per_descriptor;
53         uint16_t optimal_xfer_length_granularity;
54         uint8_t reserved[2];
55 }/* [public] */;
56
57 struct storage_offload_token {
58         uint32_t token_type;
59         uint8_t reserved[2];
60         uint16_t token_id_len;
61         uint8_t *token;/* [size_is(token_id_len)] */
62 }/* [public] */;
63
64 struct fsctl_offload_read_input {
65         uint32_t size;
66         uint32_t flags;
67         uint32_t token_time_to_live;
68         uint32_t reserved;
69         uint64_t file_offset;
70         uint64_t length;
71 }/* [public] */;
72
73 struct fsctl_offload_read_output {
74         uint32_t size;
75         uint32_t flags;
76         uint64_t xfer_length;
77         uint8_t token[512];
78 }/* [public] */;
79
80 struct fsctl_offload_write_input {
81         uint32_t size;
82         uint32_t flags;
83         uint64_t file_offset;
84         uint64_t copy_length;
85         uint64_t xfer_offset;
86         uint8_t token[512];
87 }/* [public] */;
88
89 struct fsctl_offload_write_output {
90         uint32_t size;
91         uint32_t flags;
92         uint64_t length_written;
93 }/* [public] */;
94
95 #endif /* _HEADER_copychunk */
96 #ifndef _HEADER_compression
97 #define _HEADER_compression
98
99 #define COMPRESSION_FORMAT_NONE ( 0x0000 )
100 #define COMPRESSION_FORMAT_DEFAULT      ( 0x0001 )
101 #define COMPRESSION_FORMAT_LZNT1        ( 0x0002 )
102 struct compression_state {
103         uint16_t format;
104 }/* [public] */;
105
106 #endif /* _HEADER_compression */
107 #endif /* _PIDL_HEADER_copychunk */