source: trunk/server/source3/librpc/gen_ndr/xattr.h@ 873

Last change on this file since 873 was 873, checked in by Silvan Scherrer, 11 years ago

samba server 3.6: change EOL style of a lot files. This hurts on every patch

File size: 3.6 KB
Line 
1/* header auto-generated by pidl */
2
3#ifndef _PIDL_HEADER_xattr
4#define _PIDL_HEADER_xattr
5
6#include <stdint.h>
7
8#include "libcli/util/ntstatus.h"
9
10#include "librpc/gen_ndr/security.h"
11#ifndef _HEADER_xattr
12#define _HEADER_xattr
13
14#define XATTR_DOSATTRIB_NAME ( "user.DosAttrib" )
15#define XATTR_DOSATTRIB_ESTIMATED_SIZE ( 64 )
16#define XATTR_DOSEAS_NAME ( "user.DosEAs" )
17#define XATTR_DOSSTREAMS_NAME ( "user.DosStreams" )
18#define XATTR_STREAM_FLAG_INTERNAL ( 0x00000001 )
19#define XATTR_DOSSTREAM_PREFIX ( "user.DosStream." )
20#define XATTR_MAX_STREAM_SIZE ( 0x4000 )
21#define XATTR_MAX_STREAM_SIZE_TDB ( 0x100000 )
22#define XATTR_NTACL_NAME ( "security.NTACL" )
23#define XATTR_SD_HASH_SIZE ( 64 )
24#define XATTR_SD_HASH_TYPE_NONE ( 0x0 )
25#define XATTR_SD_HASH_TYPE_SHA256 ( 0x1 )
26struct xattr_DosInfoFFFFCompat {
27 uint32_t attrib;
28};
29
30struct xattr_DosInfo1 {
31 uint32_t attrib;
32 uint32_t ea_size;
33 uint64_t size;
34 uint64_t alloc_size;
35 NTTIME create_time;
36 NTTIME change_time;
37};
38
39struct xattr_DosInfo2Old {
40 uint32_t flags;
41 uint32_t attrib;
42 uint32_t ea_size;
43 uint64_t size;
44 uint64_t alloc_size;
45 NTTIME create_time;
46 NTTIME change_time;
47 NTTIME write_time;
48 const char * name;/* [flag(LIBNDR_FLAG_STR_UTF8|LIBNDR_FLAG_STR_NULLTERM)] */
49};
50
51/* bitmap xattr_DosInfoValidFlags */
52#define XATTR_DOSINFO_ATTRIB ( 0x00000001 )
53#define XATTR_DOSINFO_EA_SIZE ( 0x00000002 )
54#define XATTR_DOSINFO_SIZE ( 0x00000004 )
55#define XATTR_DOSINFO_ALLOC_SIZE ( 0x00000008 )
56#define XATTR_DOSINFO_CREATE_TIME ( 0x00000010 )
57#define XATTR_DOSINFO_CHANGE_TIME ( 0x00000020 )
58
59struct xattr_DosInfo3 {
60 uint32_t valid_flags;
61 uint32_t attrib;
62 uint32_t ea_size;
63 uint64_t size;
64 uint64_t alloc_size;
65 NTTIME create_time;
66 NTTIME change_time;
67};
68
69union xattr_DosInfo {
70 struct xattr_DosInfoFFFFCompat compatinfoFFFF;/* [case(0xFFFF)] */
71 struct xattr_DosInfo1 info1;/* [case] */
72 struct xattr_DosInfo2Old oldinfo2;/* [case(2)] */
73 struct xattr_DosInfo3 info3;/* [case(3)] */
74}/* [public,switch_type(uint16)] */;
75
76struct xattr_DosAttrib {
77 uint16_t version;
78 union xattr_DosInfo info;/* [switch_is(version)] */
79}/* [public] */;
80
81struct xattr_DOSATTRIB {
82 const char * attrib_hex;/* [flag(LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM)] */
83 uint16_t version;
84 union xattr_DosInfo info;/* [switch_is(version)] */
85}/* [noprint,nopull,public,nopush] */;
86
87struct xattr_EA {
88 const char * name;/* [flag(LIBNDR_FLAG_STR_UTF8|LIBNDR_FLAG_STR_NULLTERM)] */
89 DATA_BLOB value;
90};
91
92struct xattr_DosEAs {
93 uint16_t num_eas;
94 struct xattr_EA *eas;/* [unique,size_is(num_eas)] */
95}/* [public] */;
96
97struct tdb_xattrs {
98 uint32_t num_eas;
99 struct xattr_EA *eas;
100}/* [public] */;
101
102struct xattr_DosStream {
103 uint32_t flags;
104 uint64_t size;
105 uint64_t alloc_size;
106 const char * name;/* [flag(LIBNDR_FLAG_STR_UTF8|LIBNDR_FLAG_STR_NULLTERM)] */
107};
108
109struct xattr_DosStreams {
110 uint32_t num_streams;
111 struct xattr_DosStream *streams;/* [unique,size_is(num_streams)] */
112}/* [public] */;
113
114struct security_descriptor_hash_v2 {
115 struct security_descriptor *sd;/* [unique] */
116 uint8_t hash[16];
117}/* [public] */;
118
119struct security_descriptor_hash_v3 {
120 struct security_descriptor *sd;/* [unique] */
121 uint16_t hash_type;
122 uint8_t hash[64];
123}/* [public] */;
124
125union xattr_NTACL_Info {
126 struct security_descriptor *sd;/* [unique,case] */
127 struct security_descriptor_hash_v2 *sd_hs2;/* [unique,case(2)] */
128 struct security_descriptor_hash_v3 *sd_hs3;/* [unique,case(3)] */
129}/* [switch_type(uint16)] */;
130
131struct xattr_NTACL {
132 uint16_t version;
133 union xattr_NTACL_Info info;/* [switch_is(version)] */
134}/* [public] */;
135
136
137struct xattr_parse_DOSATTRIB {
138 struct {
139 struct xattr_DOSATTRIB x;
140 } in;
141
142};
143
144#endif /* _HEADER_xattr */
145#endif /* _PIDL_HEADER_xattr */
Note: See TracBrowser for help on using the repository browser.