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

« back to all changes in this revision

Viewing changes to source3/librpc/gen_ndr/com_dcom.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
#include "librpc/gen_ndr/orpc.h"
 
2
#include "librpc/gen_ndr/ndr_dcom.h"
 
3
 
 
4
struct IUnknown;
 
5
struct IClassFactory;
 
6
struct IRemUnknown;
 
7
struct IClassActivator;
 
8
struct ISCMLocalActivator;
 
9
struct ISystemActivator;
 
10
struct IRemUnknown2;
 
11
struct IDispatch;
 
12
struct IMarshal;
 
13
struct ICoffeeMachine;
 
14
struct IStream;
 
15
 
 
16
#ifndef _IUnknown_
 
17
#define _IUnknown_
 
18
 
 
19
 
 
20
/* IUnknown */
 
21
#define COM_IUNKNOWN_UUID "00000000-0000-0000-C000-000000000046"
 
22
 
 
23
struct IUnknown_vtable;
 
24
 
 
25
struct IUnknown {
 
26
        struct OBJREF obj;
 
27
        struct com_context *ctx;
 
28
        struct IUnknown_vtable *vtable;
 
29
        void *object_data;
 
30
};
 
31
 
 
32
#define IUNKNOWN_METHODS \
 
33
        WERROR (*QueryInterface) (struct IUnknown *d, TALLOC_CTX *mem_ctx, struct GUID *iid, struct IUnknown **data);\
 
34
        uint32_t (*AddRef) (struct IUnknown *d, TALLOC_CTX *mem_ctx);\
 
35
        uint32_t (*Release) (struct IUnknown *d, TALLOC_CTX *mem_ctx);\
 
36
 
 
37
struct IUnknown_vtable {
 
38
        struct GUID iid;
 
39
        IUNKNOWN_METHODS
 
40
};
 
41
 
 
42
#define IUnknown_QueryInterface(interface, mem_ctx, iid, data) ((interface)->vtable->QueryInterface(interface, mem_ctx, iid, data))
 
43
#define IUnknown_AddRef(interface, mem_ctx) ((interface)->vtable->AddRef(interface, mem_ctx))
 
44
#define IUnknown_Release(interface, mem_ctx) ((interface)->vtable->Release(interface, mem_ctx))
 
45
#endif
 
46
 
 
47
#ifndef _IClassFactory_
 
48
#define _IClassFactory_
 
49
 
 
50
 
 
51
/* IClassFactory */
 
52
#define COM_ICLASSFACTORY_UUID "00000001-0000-0000-C000-000000000046"
 
53
 
 
54
struct IClassFactory_vtable;
 
55
 
 
56
struct IClassFactory {
 
57
        struct OBJREF obj;
 
58
        struct com_context *ctx;
 
59
        struct IClassFactory_vtable *vtable;
 
60
        void *object_data;
 
61
};
 
62
 
 
63
#define ICLASSFACTORY_METHODS \
 
64
        IUNKNOWN_METHODS\
 
65
        WERROR (*CreateInstance) (struct IClassFactory *d, TALLOC_CTX *mem_ctx, struct MInterfacePointer *pUnknown, struct GUID *iid, struct MInterfacePointer *ppv);\
 
66
        WERROR (*RemoteCreateInstance) (struct IClassFactory *d, TALLOC_CTX *mem_ctx);\
 
67
        WERROR (*LockServer) (struct IClassFactory *d, TALLOC_CTX *mem_ctx, uint8_t lock);\
 
68
        WERROR (*RemoteLockServer) (struct IClassFactory *d, TALLOC_CTX *mem_ctx);\
 
69
 
 
70
struct IClassFactory_vtable {
 
71
        struct GUID iid;
 
72
        ICLASSFACTORY_METHODS
 
73
};
 
74
 
 
75
#define IClassFactory_CreateInstance(interface, mem_ctx, pUnknown, iid, ppv) ((interface)->vtable->CreateInstance(interface, mem_ctx, pUnknown, iid, ppv))
 
76
#define IClassFactory_RemoteCreateInstance(interface, mem_ctx) ((interface)->vtable->RemoteCreateInstance(interface, mem_ctx))
 
77
#define IClassFactory_LockServer(interface, mem_ctx, lock) ((interface)->vtable->LockServer(interface, mem_ctx, lock))
 
78
#define IClassFactory_RemoteLockServer(interface, mem_ctx) ((interface)->vtable->RemoteLockServer(interface, mem_ctx))
 
79
#endif
 
80
 
 
81
#ifndef _IRemUnknown_
 
82
#define _IRemUnknown_
 
83
 
 
84
 
 
85
/* IRemUnknown */
 
86
#define COM_IREMUNKNOWN_UUID "00000131-0000-0000-C000-000000000046"
 
87
 
 
88
struct IRemUnknown_vtable;
 
89
 
 
90
struct IRemUnknown {
 
91
        struct OBJREF obj;
 
92
        struct com_context *ctx;
 
93
        struct IRemUnknown_vtable *vtable;
 
94
        void *object_data;
 
95
};
 
96
 
 
97
#define IREMUNKNOWN_METHODS \
 
98
        IUNKNOWN_METHODS\
 
99
        WERROR (*RemQueryInterface) (struct IRemUnknown *d, TALLOC_CTX *mem_ctx, struct GUID *ripid, uint32_t cRefs, uint16_t cIids, struct GUID *iids, struct MInterfacePointer *ip);\
 
100
        WERROR (*RemAddRef) (struct IRemUnknown *d, TALLOC_CTX *mem_ctx, uint16_t cInterfaceRefs, struct REMINTERFACEREF *InterfaceRefs, WERROR *pResults);\
 
101
        WERROR (*RemRelease) (struct IRemUnknown *d, TALLOC_CTX *mem_ctx, uint16_t cInterfaceRefs, struct REMINTERFACEREF *InterfaceRefs);\
 
102
 
 
103
struct IRemUnknown_vtable {
 
104
        struct GUID iid;
 
105
        IREMUNKNOWN_METHODS
 
106
};
 
107
 
 
108
#define IRemUnknown_RemQueryInterface(interface, mem_ctx, ripid, cRefs, cIids, iids, ip) ((interface)->vtable->RemQueryInterface(interface, mem_ctx, ripid, cRefs, cIids, iids, ip))
 
109
#define IRemUnknown_RemAddRef(interface, mem_ctx, cInterfaceRefs, InterfaceRefs, pResults) ((interface)->vtable->RemAddRef(interface, mem_ctx, cInterfaceRefs, InterfaceRefs, pResults))
 
110
#define IRemUnknown_RemRelease(interface, mem_ctx, cInterfaceRefs, InterfaceRefs) ((interface)->vtable->RemRelease(interface, mem_ctx, cInterfaceRefs, InterfaceRefs))
 
111
#endif
 
112
 
 
113
#ifndef _IClassActivator_
 
114
#define _IClassActivator_
 
115
 
 
116
 
 
117
/* IClassActivator */
 
118
#define COM_ICLASSACTIVATOR_UUID "00000140-0000-0000-c000-000000000046"
 
119
 
 
120
struct IClassActivator_vtable;
 
121
 
 
122
struct IClassActivator {
 
123
        struct OBJREF obj;
 
124
        struct com_context *ctx;
 
125
        struct IClassActivator_vtable *vtable;
 
126
        void *object_data;
 
127
};
 
128
 
 
129
#define ICLASSACTIVATOR_METHODS \
 
130
        IUNKNOWN_METHODS\
 
131
        void (*GetClassObject) (struct IClassActivator *d, TALLOC_CTX *mem_ctx, struct GUID clsid, uint32_t context, uint32_t locale, struct GUID iid, struct MInterfacePointer *data);\
 
132
 
 
133
struct IClassActivator_vtable {
 
134
        struct GUID iid;
 
135
        ICLASSACTIVATOR_METHODS
 
136
};
 
137
 
 
138
#define IClassActivator_GetClassObject(interface, mem_ctx, clsid, context, locale, iid, data) ((interface)->vtable->GetClassObject(interface, mem_ctx, clsid, context, locale, iid, data))
 
139
#endif
 
140
 
 
141
#ifndef _ISCMLocalActivator_
 
142
#define _ISCMLocalActivator_
 
143
 
 
144
 
 
145
/* ISCMLocalActivator */
 
146
#define COM_ISCMLOCALACTIVATOR_UUID "00000136-0000-0000-c000-000000000046"
 
147
 
 
148
struct ISCMLocalActivator_vtable;
 
149
 
 
150
struct ISCMLocalActivator {
 
151
        struct OBJREF obj;
 
152
        struct com_context *ctx;
 
153
        struct ISCMLocalActivator_vtable *vtable;
 
154
        void *object_data;
 
155
};
 
156
 
 
157
#define ISCMLOCALACTIVATOR_METHODS \
 
158
        ICLASSACTIVATOR_METHODS\
 
159
        WERROR (*ISCMLocalActivator_CreateInstance) (struct ISCMLocalActivator *d, TALLOC_CTX *mem_ctx);\
 
160
 
 
161
struct ISCMLocalActivator_vtable {
 
162
        struct GUID iid;
 
163
        ISCMLOCALACTIVATOR_METHODS
 
164
};
 
165
 
 
166
#define ISCMLocalActivator_ISCMLocalActivator_CreateInstance(interface, mem_ctx) ((interface)->vtable->ISCMLocalActivator_CreateInstance(interface, mem_ctx))
 
167
#endif
 
168
 
 
169
#ifndef _ISystemActivator_
 
170
#define _ISystemActivator_
 
171
 
 
172
 
 
173
/* ISystemActivator */
 
174
#define COM_ISYSTEMACTIVATOR_UUID "000001a0-0000-0000-c000-000000000046"
 
175
 
 
176
struct ISystemActivator_vtable;
 
177
 
 
178
struct ISystemActivator {
 
179
        struct OBJREF obj;
 
180
        struct com_context *ctx;
 
181
        struct ISystemActivator_vtable *vtable;
 
182
        void *object_data;
 
183
};
 
184
 
 
185
#define ISYSTEMACTIVATOR_METHODS \
 
186
        ICLASSACTIVATOR_METHODS\
 
187
        WERROR (*ISystemActivatorRemoteCreateInstance) (struct ISystemActivator *d, TALLOC_CTX *mem_ctx, uint64_t unknown1, struct MInterfacePointer iface1, uint64_t unknown2, uint32_t *unknown3, struct MInterfacePointer *iface2);\
 
188
 
 
189
struct ISystemActivator_vtable {
 
190
        struct GUID iid;
 
191
        ISYSTEMACTIVATOR_METHODS
 
192
};
 
193
 
 
194
#define ISystemActivator_ISystemActivatorRemoteCreateInstance(interface, mem_ctx, unknown1, iface1, unknown2, unknown3, iface2) ((interface)->vtable->ISystemActivatorRemoteCreateInstance(interface, mem_ctx, unknown1, iface1, unknown2, unknown3, iface2))
 
195
#endif
 
196
 
 
197
#ifndef _IRemUnknown2_
 
198
#define _IRemUnknown2_
 
199
 
 
200
 
 
201
/* IRemUnknown2 */
 
202
#define COM_IREMUNKNOWN2_UUID "00000143-0000-0000-C000-000000000046"
 
203
 
 
204
struct IRemUnknown2_vtable;
 
205
 
 
206
struct IRemUnknown2 {
 
207
        struct OBJREF obj;
 
208
        struct com_context *ctx;
 
209
        struct IRemUnknown2_vtable *vtable;
 
210
        void *object_data;
 
211
};
 
212
 
 
213
#define IREMUNKNOWN2_METHODS \
 
214
        IREMUNKNOWN_METHODS\
 
215
        WERROR (*RemQueryInterface2) (struct IRemUnknown2 *d, TALLOC_CTX *mem_ctx, struct GUID *ripid, uint16_t cIids, struct GUID *iids, WERROR *phr, struct MInterfacePointer *ppMIF);\
 
216
 
 
217
struct IRemUnknown2_vtable {
 
218
        struct GUID iid;
 
219
        IREMUNKNOWN2_METHODS
 
220
};
 
221
 
 
222
#define IRemUnknown2_RemQueryInterface2(interface, mem_ctx, ripid, cIids, iids, phr, ppMIF) ((interface)->vtable->RemQueryInterface2(interface, mem_ctx, ripid, cIids, iids, phr, ppMIF))
 
223
#endif
 
224
 
 
225
#ifndef _IDispatch_
 
226
#define _IDispatch_
 
227
 
 
228
 
 
229
/* IDispatch */
 
230
#define COM_IDISPATCH_UUID "00020400-0000-0000-C000-000000000046"
 
231
 
 
232
struct IDispatch_vtable;
 
233
 
 
234
struct IDispatch {
 
235
        struct OBJREF obj;
 
236
        struct com_context *ctx;
 
237
        struct IDispatch_vtable *vtable;
 
238
        void *object_data;
 
239
};
 
240
 
 
241
#define IDISPATCH_METHODS \
 
242
        IUNKNOWN_METHODS\
 
243
        WERROR (*GetTypeInfoCount) (struct IDispatch *d, TALLOC_CTX *mem_ctx, uint16_t *pctinfo);\
 
244
        WERROR (*GetTypeInfo) (struct IDispatch *d, TALLOC_CTX *mem_ctx, uint16_t iTInfo, uint32_t lcid, struct REF_ITypeInfo *ppTInfo);\
 
245
        WERROR (*GetIDsOfNames) (struct IDispatch *d, TALLOC_CTX *mem_ctx, struct GUID *riid, uint16_t cNames, uint32_t lcid, uint32_t *rgDispId);\
 
246
        WERROR (*Invoke) (struct IDispatch *d, TALLOC_CTX *mem_ctx, uint32_t dispIdMember, struct GUID *riid, uint32_t lcid, uint16_t wFlags, struct DISPPARAMS *pDispParams, struct VARIANT *pVarResult, struct EXCEPINFO *pExcepInfo, uint16_t *puArgErr);\
 
247
 
 
248
struct IDispatch_vtable {
 
249
        struct GUID iid;
 
250
        IDISPATCH_METHODS
 
251
};
 
252
 
 
253
#define IDispatch_GetTypeInfoCount(interface, mem_ctx, pctinfo) ((interface)->vtable->GetTypeInfoCount(interface, mem_ctx, pctinfo))
 
254
#define IDispatch_GetTypeInfo(interface, mem_ctx, iTInfo, lcid, ppTInfo) ((interface)->vtable->GetTypeInfo(interface, mem_ctx, iTInfo, lcid, ppTInfo))
 
255
#define IDispatch_GetIDsOfNames(interface, mem_ctx, riid, cNames, lcid, rgDispId) ((interface)->vtable->GetIDsOfNames(interface, mem_ctx, riid, cNames, lcid, rgDispId))
 
256
#define IDispatch_Invoke(interface, mem_ctx, dispIdMember, riid, lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr) ((interface)->vtable->Invoke(interface, mem_ctx, dispIdMember, riid, lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr))
 
257
#endif
 
258
 
 
259
#ifndef _IMarshal_
 
260
#define _IMarshal_
 
261
 
 
262
 
 
263
/* IMarshal */
 
264
#define COM_IMARSHAL_UUID "00000003-0000-0000-C000-000000000046"
 
265
 
 
266
struct IMarshal_vtable;
 
267
 
 
268
struct IMarshal {
 
269
        struct OBJREF obj;
 
270
        struct com_context *ctx;
 
271
        struct IMarshal_vtable *vtable;
 
272
        void *object_data;
 
273
};
 
274
 
 
275
#define IMARSHAL_METHODS \
 
276
        IUNKNOWN_METHODS\
 
277
        WERROR (*MarshalInterface) (struct IMarshal *d, TALLOC_CTX *mem_ctx);\
 
278
        WERROR (*UnMarshalInterface) (struct IMarshal *d, TALLOC_CTX *mem_ctx);\
 
279
 
 
280
struct IMarshal_vtable {
 
281
        struct GUID iid;
 
282
        IMARSHAL_METHODS
 
283
};
 
284
 
 
285
#define IMarshal_MarshalInterface(interface, mem_ctx) ((interface)->vtable->MarshalInterface(interface, mem_ctx))
 
286
#define IMarshal_UnMarshalInterface(interface, mem_ctx) ((interface)->vtable->UnMarshalInterface(interface, mem_ctx))
 
287
#endif
 
288
 
 
289
#ifndef _ICoffeeMachine_
 
290
#define _ICoffeeMachine_
 
291
 
 
292
 
 
293
/* ICoffeeMachine */
 
294
#define COM_ICOFFEEMACHINE_UUID DA23F6DB-6F45-466C-9EED-0B65286F2D78
 
295
 
 
296
struct ICoffeeMachine_vtable;
 
297
 
 
298
struct ICoffeeMachine {
 
299
        struct OBJREF obj;
 
300
        struct com_context *ctx;
 
301
        struct ICoffeeMachine_vtable *vtable;
 
302
        void *object_data;
 
303
};
 
304
 
 
305
#define ICOFFEEMACHINE_METHODS \
 
306
        IUNKNOWN_METHODS\
 
307
        WERROR (*MakeCoffee) (struct ICoffeeMachine *d, TALLOC_CTX *mem_ctx, uint16_t *flavor);\
 
308
 
 
309
struct ICoffeeMachine_vtable {
 
310
        struct GUID iid;
 
311
        ICOFFEEMACHINE_METHODS
 
312
};
 
313
 
 
314
#define ICoffeeMachine_MakeCoffee(interface, mem_ctx, flavor) ((interface)->vtable->MakeCoffee(interface, mem_ctx, flavor))
 
315
#endif
 
316
#define CLSID_COFFEEMACHINE "db7c21f8-fe33-4c11-aea5-ceb56f076fbb"
 
317
 
 
318
 
 
319
#ifndef _IStream_
 
320
#define _IStream_
 
321
 
 
322
 
 
323
/* IStream */
 
324
#define COM_ISTREAM_UUID "0000000C-0000-0000-C000-000000000046"
 
325
 
 
326
struct IStream_vtable;
 
327
 
 
328
struct IStream {
 
329
        struct OBJREF obj;
 
330
        struct com_context *ctx;
 
331
        struct IStream_vtable *vtable;
 
332
        void *object_data;
 
333
};
 
334
 
 
335
#define ISTREAM_METHODS \
 
336
        IUNKNOWN_METHODS\
 
337
        WERROR (*Read) (struct IStream *d, TALLOC_CTX *mem_ctx, uint8_t *pv, uint32_t num_requested, uint32_t *num_readx, uint32_t *num_read);\
 
338
        WERROR (*Write) (struct IStream *d, TALLOC_CTX *mem_ctx, uint8_t *data, uint32_t num_requested, uint32_t *num_written);\
 
339
 
 
340
struct IStream_vtable {
 
341
        struct GUID iid;
 
342
        ISTREAM_METHODS
 
343
};
 
344
 
 
345
#define IStream_Read(interface, mem_ctx, pv, num_requested, num_readx, num_read) ((interface)->vtable->Read(interface, mem_ctx, pv, num_requested, num_readx, num_read))
 
346
#define IStream_Write(interface, mem_ctx, data, num_requested, num_written) ((interface)->vtable->Write(interface, mem_ctx, data, num_requested, num_written))
 
347
#endif
 
348
#define CLSID_SIMPLE "5e9ddec7-5767-11cf-beab-00aa006c3606"
 
349
#define PROGID_SIMPLE "Samba.Simple"
 
350