~ubuntu-branches/ubuntu/vivid/samba/vivid

« back to all changes in this revision

Viewing changes to source3/librpc/gen_ndr/frstrans.h

  • Committer: Package Import Robot
  • Author(s): Chuck Short
  • Date: 2011-12-21 13:18:04 UTC
  • mfrom: (0.39.21 sid)
  • Revision ID: package-import@ubuntu.com-20111221131804-xtlr39wx6njehxxr
Tags: 2:3.6.1-3ubuntu1
* Merge from Debian testing.  Remaining changes:
  + debian/patches/VERSION.patch:
    - set SAMBA_VERSION_SUFFIX to Ubuntu.
  + debian/patches/error-trans.fix-276472:
    - Add the translation of Unix Error code -ENOTSUP to NT Error Code
    - NT_STATUS_NOT_SUPPORTED to prevent the Permission denied error.
  + debian/smb.conf:
    - add "(Samba, Ubuntu)" to server string.
    - comment out the default [homes] share, and add a comment about
      "valid users = %S" to show users how to restrict access to
      \\server\username to only username.
    - Set 'usershare allow guests', so that usershare admins are 
      allowed to create public shares in addition to authenticated
      ones.
    - add map to guest = Bad user, maps bad username to guest access.
  + debian/samba-common.config:
    - Do not change priority to high if dhclient3 is installed.
    - Use priority medium instead of high for the workgroup question.
  + debian/control:
    - Don't build against or suggest ctdb.
    - Add dependency on samba-common-bin to samba.
  + Add ufw integration:
    - Created debian/samba.ufw.profile
    - debian/rules, debian/samba.dirs, debian/samba.files: install
      profile
    - debian/control: have samba suggest ufw
  + Add apport hook:
    - Created debian/source_samba.py.
    - debian/rules, debian/samba.dirs, debian/samba-common-bin.files: install
  + Switch to upstart:
    - Add debian/samba.{nmbd,smbd}.upstart.
  + debian/samba.logrotate, debian/samba-common.dhcp, debian/samba.if-up:
    - Make them upstart compatible
  + debian/samba.postinst: 
    - Avoid scary pdbedit warnings on first import.
  + debian/samba-common.postinst: Add more informative error message for
    the case where smb.conf was manually deleted
  + debian/patches/fix-debuglevel-name-conflict.patch: don't use 'debug_level'
    as a global variable name in an NSS module 
  + Dropped:
    - debian/patches/error-trans.fix-276472
    - debian/patches/fix-debuglevel-name-conflict.patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* header auto-generated by pidl */
 
2
 
 
3
#ifndef _PIDL_HEADER_frstrans
 
4
#define _PIDL_HEADER_frstrans
 
5
 
 
6
#include <stdint.h>
 
7
 
 
8
#include "libcli/util/ntstatus.h"
 
9
 
 
10
#include "librpc/gen_ndr/misc.h"
 
11
#ifndef _HEADER_frstrans
 
12
#define _HEADER_frstrans
 
13
 
 
14
enum frstrans_ProtocolVersion
 
15
#ifndef USE_UINT_ENUMS
 
16
 {
 
17
        FRSTRANS_PROTOCOL_VERSION_W2K3R2=(int)(0x00050000),
 
18
        FRSTRANS_PROTOCOL_VERSION_LONGHORN_SERVER=(int)(0x00050002)
 
19
}
 
20
#else
 
21
 { __donnot_use_enum_frstrans_ProtocolVersion=0x7FFFFFFF}
 
22
#define FRSTRANS_PROTOCOL_VERSION_W2K3R2 ( 0x00050000 )
 
23
#define FRSTRANS_PROTOCOL_VERSION_LONGHORN_SERVER ( 0x00050002 )
 
24
#endif
 
25
;
 
26
 
 
27
/* bitmap frstrans_TransportFlags */
 
28
#define FRSTRANS_TRANSPORT_SUPPORTS_RDC_SIMILARITY ( 0x00000001 )
 
29
 
 
30
enum frstrans_UpdateRequestType
 
31
#ifndef USE_UINT_ENUMS
 
32
 {
 
33
        FRSTRANS_UPDATE_REQUEST_ALL=(int)(0x0000),
 
34
        FRSTRANS_UPDATE_REQUEST_TOMBSTONES=(int)(0x0001),
 
35
        FRSTRANS_UPDATE_REQUEST_LIVE=(int)(0x0002)
 
36
}
 
37
#else
 
38
 { __donnot_use_enum_frstrans_UpdateRequestType=0x7FFFFFFF}
 
39
#define FRSTRANS_UPDATE_REQUEST_ALL ( 0x0000 )
 
40
#define FRSTRANS_UPDATE_REQUEST_TOMBSTONES ( 0x0001 )
 
41
#define FRSTRANS_UPDATE_REQUEST_LIVE ( 0x0002 )
 
42
#endif
 
43
;
 
44
 
 
45
enum frstrans_UpdateStatus
 
46
#ifndef USE_UINT_ENUMS
 
47
 {
 
48
        FRSTRANS_UPDATE_STATUS_DONE=(int)(0x0002),
 
49
        FRSTRANS_UPDATE_STATUS_MORE=(int)(0x0003)
 
50
}
 
51
#else
 
52
 { __donnot_use_enum_frstrans_UpdateStatus=0x7FFFFFFF}
 
53
#define FRSTRANS_UPDATE_STATUS_DONE ( 0x0002 )
 
54
#define FRSTRANS_UPDATE_STATUS_MORE ( 0x0003 )
 
55
#endif
 
56
;
 
57
 
 
58
struct frstrans_VersionVector {
 
59
        struct GUID db_guid;
 
60
        uint64_t low;
 
61
        uint64_t high;
 
62
};
 
63
 
 
64
struct frstrans_Update {
 
65
        uint32_t present;
 
66
        uint32_t name_conflict;
 
67
        uint32_t attributes;
 
68
        NTTIME fence;
 
69
        NTTIME clock;
 
70
        NTTIME create_time;
 
71
        struct GUID content_set_guid;
 
72
        uint8_t sha1_hash[20];
 
73
        uint8_t rdc_similarity[16];
 
74
        struct GUID uid_db_guid;
 
75
        uint64_t uid_version;
 
76
        struct GUID gsvn_db_guid;
 
77
        uint64_t gsvn_version;
 
78
        struct GUID parent_db_guid;
 
79
        uint64_t parent_version;
 
80
        const char *name;/* [charset(UTF16)] */
 
81
        uint32_t flags;
 
82
}/* [flag(LIBNDR_PRINT_ARRAY_HEX)] */;
 
83
 
 
84
enum frstrans_VersionRequestType
 
85
#ifndef USE_UINT_ENUMS
 
86
 {
 
87
        FRSTRANS_VERSION_REQUEST_NORNAL_SYNC=(int)(0x0000),
 
88
        FRSTRANS_VERSION_REQUEST_SLOW_SYNC=(int)(0x0001),
 
89
        FRSTRANS_VERSION_REQUEST_SLAVE_SYNC=(int)(0x0002)
 
90
}
 
91
#else
 
92
 { __donnot_use_enum_frstrans_VersionRequestType=0x7FFFFFFF}
 
93
#define FRSTRANS_VERSION_REQUEST_NORNAL_SYNC ( 0x0000 )
 
94
#define FRSTRANS_VERSION_REQUEST_SLOW_SYNC ( 0x0001 )
 
95
#define FRSTRANS_VERSION_REQUEST_SLAVE_SYNC ( 0x0002 )
 
96
#endif
 
97
;
 
98
 
 
99
enum frstrans_VersionChangeType
 
100
#ifndef USE_UINT_ENUMS
 
101
 {
 
102
        FRSTRANS_VERSION_CHANGE_NOTIFY=(int)(0x0000),
 
103
        FRSTRANS_VERSION_CHANGE_ALL=(int)(0x0002)
 
104
}
 
105
#else
 
106
 { __donnot_use_enum_frstrans_VersionChangeType=0x7FFFFFFF}
 
107
#define FRSTRANS_VERSION_CHANGE_NOTIFY ( 0x0000 )
 
108
#define FRSTRANS_VERSION_CHANGE_ALL ( 0x0002 )
 
109
#endif
 
110
;
 
111
 
 
112
struct frstrans_EpoqueVector {
 
113
        struct GUID machine_guid;
 
114
        uint32_t year;
 
115
        uint32_t month;
 
116
        uint32_t day_of_week;
 
117
        uint32_t day;
 
118
        uint32_t hour;
 
119
        uint32_t minute;
 
120
        uint32_t second;
 
121
        uint32_t milli_seconds;
 
122
};
 
123
 
 
124
struct frstrans_AsyncVersionVectorResponse {
 
125
        uint64_t vv_generation;
 
126
        uint32_t version_vector_count;
 
127
        struct frstrans_VersionVector *version_vector;/* [unique,size_is(version_vector_count)] */
 
128
        uint32_t epoque_vector_count;
 
129
        struct frstrans_EpoqueVector *epoque_vector;/* [unique,size_is(epoque_vector_count)] */
 
130
};
 
131
 
 
132
struct frstrans_AsyncResponseContext {
 
133
        uint32_t sequence_number;
 
134
        WERROR status;
 
135
        struct frstrans_AsyncVersionVectorResponse response;
 
136
};
 
137
 
 
138
enum frstrans_RequestedStagingPolicy
 
139
#ifndef USE_UINT_ENUMS
 
140
 {
 
141
        FRSTRANS_STAGING_POLICY_SERVER_DEFAULTY=(int)(0x0000),
 
142
        FRSTRANS_STAGING_POLICY_STATGING_REQUIRED=(int)(0x0001),
 
143
        FRSTRANS_STAGING_POLICY_RESTATGING_REQUIRED=(int)(0x0002)
 
144
}
 
145
#else
 
146
 { __donnot_use_enum_frstrans_RequestedStagingPolicy=0x7FFFFFFF}
 
147
#define FRSTRANS_STAGING_POLICY_SERVER_DEFAULTY ( 0x0000 )
 
148
#define FRSTRANS_STAGING_POLICY_STATGING_REQUIRED ( 0x0001 )
 
149
#define FRSTRANS_STAGING_POLICY_RESTATGING_REQUIRED ( 0x0002 )
 
150
#endif
 
151
;
 
152
 
 
153
enum frstrans_RdcChunckerAlgorithm
 
154
#ifndef USE_UINT_ENUMS
 
155
 {
 
156
        FRSTRANS_RDC_FILTER_GENERIC=(int)(0x0000),
 
157
        FRSTRANS_RDC_FILTER_MAX=(int)(0x0001),
 
158
        FRSTRANS_RDC_FILTER_POINT=(int)(0x0002),
 
159
        FRSTRANS_RDC_MAX_ALGORITHM=(int)(0x0003)
 
160
}
 
161
#else
 
162
 { __donnot_use_enum_frstrans_RdcChunckerAlgorithm=0x7FFFFFFF}
 
163
#define FRSTRANS_RDC_FILTER_GENERIC ( 0x0000 )
 
164
#define FRSTRANS_RDC_FILTER_MAX ( 0x0001 )
 
165
#define FRSTRANS_RDC_FILTER_POINT ( 0x0002 )
 
166
#define FRSTRANS_RDC_MAX_ALGORITHM ( 0x0003 )
 
167
#endif
 
168
;
 
169
 
 
170
struct frstrans_RdcParameterGeneric {
 
171
        enum frstrans_RdcChunckerAlgorithm chunker_type;
 
172
        uint8_t chunker_parameters[64];
 
173
};
 
174
 
 
175
struct frstrans_RdcParameterFilterMax {
 
176
        uint16_t min_horizon_size;/* [range(128,1024*16)] */
 
177
        uint16_t max_window_size;/* [range(2,96)] */
 
178
};
 
179
 
 
180
struct frstrans_RdcParameterFilterPoint {
 
181
        uint16_t min_chunk_size;
 
182
        uint16_t max_chunk_size;
 
183
};
 
184
 
 
185
union frstrans_RdcParameterUnion {
 
186
        struct frstrans_RdcParameterGeneric filter_generic;/* [case(FRSTRANS_RDC_FILTER_GENERIC)] */
 
187
        struct frstrans_RdcParameterFilterMax filter_max;/* [case(FRSTRANS_RDC_FILTER_MAX)] */
 
188
        struct frstrans_RdcParameterFilterPoint filter_point;/* [case(FRSTRANS_RDC_FILTER_POINT)] */
 
189
}/* [switch_type(frstrans_RdcChunckerAlgorithm)] */;
 
190
 
 
191
struct frstrans_RdcParameters {
 
192
        enum frstrans_RdcChunckerAlgorithm rdc_chunker_algorithm;
 
193
        union frstrans_RdcParameterUnion u;/* [switch_is(rdc_chunker_algorithm)] */
 
194
};
 
195
 
 
196
enum frstrans_RdcVersion
 
197
#ifndef USE_UINT_ENUMS
 
198
 {
 
199
        FRSTRANS_RDC_VERSION=(int)(0x0001)
 
200
}
 
201
#else
 
202
 { __donnot_use_enum_frstrans_RdcVersion=0x7FFFFFFF}
 
203
#define FRSTRANS_RDC_VERSION ( 0x0001 )
 
204
#endif
 
205
;
 
206
 
 
207
enum frstrans_RdcVersionCompatible
 
208
#ifndef USE_UINT_ENUMS
 
209
 {
 
210
        FRSTRANS_RDC_VERSION_COMPATIBLE=(int)(0x0001)
 
211
}
 
212
#else
 
213
 { __donnot_use_enum_frstrans_RdcVersionCompatible=0x7FFFFFFF}
 
214
#define FRSTRANS_RDC_VERSION_COMPATIBLE ( 0x0001 )
 
215
#endif
 
216
;
 
217
 
 
218
enum frstrans_RdcCompressionAlgorithm
 
219
#ifndef USE_UINT_ENUMS
 
220
 {
 
221
        FRSTRANS_RDC_UNCOMPRESSED=(int)(0x0000),
 
222
        FRSTRANS_RDC_XPRESS=(int)(0x0001)
 
223
}
 
224
#else
 
225
 { __donnot_use_enum_frstrans_RdcCompressionAlgorithm=0x7FFFFFFF}
 
226
#define FRSTRANS_RDC_UNCOMPRESSED ( 0x0000 )
 
227
#define FRSTRANS_RDC_XPRESS ( 0x0001 )
 
228
#endif
 
229
;
 
230
 
 
231
struct frstrans_RdcFileInfo {
 
232
        uint64_t on_disk_file_size;
 
233
        uint64_t file_size_estimate;
 
234
        enum frstrans_RdcVersion rdc_version;
 
235
        enum frstrans_RdcVersionCompatible rdc_minimum_compatible_version;
 
236
        uint8_t rdc_signature_levels;/* [range(0,8)] */
 
237
        enum frstrans_RdcCompressionAlgorithm compression_algorithm;
 
238
        struct frstrans_RdcParameters *rdc_filter_parameters;/* [size_is(rdc_signature_levels)] */
 
239
};
 
240
 
 
241
struct frstrans_BytePipe;
 
242
struct frstrans_BytePipe_chunk {
 
243
        uint32_t count;
 
244
        uint8_t *array;
 
245
};
 
246
 
 
247
 
 
248
struct frstrans_CheckConnectivity {
 
249
        struct {
 
250
                struct GUID replica_set_guid;
 
251
                struct GUID connection_guid;
 
252
        } in;
 
253
 
 
254
        struct {
 
255
                WERROR result;
 
256
        } out;
 
257
 
 
258
};
 
259
 
 
260
 
 
261
struct frstrans_EstablishConnection {
 
262
        struct {
 
263
                struct GUID replica_set_guid;
 
264
                struct GUID connection_guid;
 
265
                enum frstrans_ProtocolVersion downstream_protocol_version;
 
266
                uint32_t downstream_flags;
 
267
        } in;
 
268
 
 
269
        struct {
 
270
                enum frstrans_ProtocolVersion *upstream_protocol_version;/* [ref] */
 
271
                uint32_t *upstream_flags;/* [ref] */
 
272
                WERROR result;
 
273
        } out;
 
274
 
 
275
};
 
276
 
 
277
 
 
278
struct frstrans_EstablishSession {
 
279
        struct {
 
280
                struct GUID connection_guid;
 
281
                struct GUID content_set_guid;
 
282
        } in;
 
283
 
 
284
        struct {
 
285
                WERROR result;
 
286
        } out;
 
287
 
 
288
};
 
289
 
 
290
 
 
291
struct frstrans_RequestUpdates {
 
292
        struct {
 
293
                struct GUID connection_guid;
 
294
                struct GUID content_set_guid;
 
295
                uint32_t credits_available;/* [range(0,256)] */
 
296
                uint32_t hash_requested;/* [range(0,1)] */
 
297
                enum frstrans_UpdateRequestType update_request_type;/* [range(0,2)] */
 
298
                uint32_t version_vector_diff_count;
 
299
                struct frstrans_VersionVector *version_vector_diff;/* [ref,size_is(version_vector_diff_count)] */
 
300
        } in;
 
301
 
 
302
        struct {
 
303
                struct frstrans_Update *frs_update;/* [ref,length_is(*update_count),size_is(credits_available)] */
 
304
                uint32_t *update_count;/* [ref] */
 
305
                enum frstrans_UpdateStatus *update_status;/* [ref] */
 
306
                struct GUID *gvsn_db_guid;/* [ref] */
 
307
                uint64_t *gvsn_version;/* [ref] */
 
308
                WERROR result;
 
309
        } out;
 
310
 
 
311
};
 
312
 
 
313
 
 
314
struct frstrans_RequestVersionVector {
 
315
        struct {
 
316
                uint32_t sequence_number;
 
317
                struct GUID connection_guid;
 
318
                struct GUID content_set_guid;
 
319
                enum frstrans_VersionRequestType request_type;/* [range(0,2)] */
 
320
                enum frstrans_VersionChangeType change_type;/* [range(0,2)] */
 
321
                uint64_t vv_generation;
 
322
        } in;
 
323
 
 
324
        struct {
 
325
                WERROR result;
 
326
        } out;
 
327
 
 
328
};
 
329
 
 
330
 
 
331
struct frstrans_AsyncPoll {
 
332
        struct {
 
333
                struct GUID connection_guid;
 
334
        } in;
 
335
 
 
336
        struct {
 
337
                struct frstrans_AsyncResponseContext *response;/* [ref] */
 
338
                WERROR result;
 
339
        } out;
 
340
 
 
341
};
 
342
 
 
343
 
 
344
struct FRSTRANS_REQUEST_RECORDS {
 
345
        int _dummy_element;
 
346
};
 
347
 
 
348
 
 
349
struct FRSTRANS_UPDATE_CANCEL {
 
350
        int _dummy_element;
 
351
};
 
352
 
 
353
 
 
354
struct FRSTRANS_RAW_GET_FILE_DATA {
 
355
        int _dummy_element;
 
356
};
 
357
 
 
358
 
 
359
struct FRSTRANS_RDC_GET_SIGNATURES {
 
360
        int _dummy_element;
 
361
};
 
362
 
 
363
 
 
364
struct FRSTRANS_RDC_PUSH_SOURCE_NEEDS {
 
365
        int _dummy_element;
 
366
};
 
367
 
 
368
 
 
369
struct FRSTRANS_RDC_GET_FILE_DATA {
 
370
        int _dummy_element;
 
371
};
 
372
 
 
373
 
 
374
struct FRSTRANS_RDC_CLOSE {
 
375
        int _dummy_element;
 
376
};
 
377
 
 
378
 
 
379
struct frstrans_InitializeFileTransferAsync {
 
380
        struct {
 
381
                struct GUID connection_guid;
 
382
                uint32_t rdc_desired;/* [range(0,1)] */
 
383
                uint32_t buffer_size;/* [range(0,262144)] */
 
384
                struct frstrans_Update *frs_update;/* [ref] */
 
385
                enum frstrans_RequestedStagingPolicy *staging_policy;/* [ref] */
 
386
        } in;
 
387
 
 
388
        struct {
 
389
                struct policy_handle *server_context;/* [ref] */
 
390
                struct frstrans_RdcFileInfo **rdc_file_info;/* [ref] */
 
391
                uint8_t *data_buffer;/* [ref,length_is(*size_read),size_is(buffer_size)] */
 
392
                uint32_t *size_read;/* [ref] */
 
393
                uint32_t *is_end_of_file;/* [ref] */
 
394
                struct frstrans_Update *frs_update;/* [ref] */
 
395
                enum frstrans_RequestedStagingPolicy *staging_policy;/* [ref] */
 
396
                WERROR result;
 
397
        } out;
 
398
 
 
399
};
 
400
 
 
401
 
 
402
struct FRSTRANS_OPNUM_0E_NOT_USED_ON_THE_WIRE {
 
403
        int _dummy_element;
 
404
};
 
405
 
 
406
 
 
407
struct frstrans_RawGetFileDataAsync {
 
408
        struct {
 
409
                struct policy_handle *server_context;/* [ref] */
 
410
        } in;
 
411
 
 
412
        struct {
 
413
                struct frstrans_BytePipe *byte_pipe;/* [ref] */
 
414
                WERROR result;
 
415
        } out;
 
416
 
 
417
};
 
418
 
 
419
 
 
420
struct frstrans_RdcGetFileDataAsync {
 
421
        struct {
 
422
                struct policy_handle *server_context;/* [ref] */
 
423
        } in;
 
424
 
 
425
        struct {
 
426
                struct frstrans_BytePipe *byte_pipe;/* [ref] */
 
427
                WERROR result;
 
428
        } out;
 
429
 
 
430
};
 
431
 
 
432
#endif /* _HEADER_frstrans */
 
433
#endif /* _PIDL_HEADER_frstrans */