1: /*
2: * Definitions for Clearinghouse VERSION 2 NUMBER 2.
3: */
4: #ifndef __Clearinghouse2
5: #define __Clearinghouse2
6: #include <xnscourier/courier.h>
7: #include <xnscourier/courierconnection.h>
8:
9:
10: /*
11: * Definitions from DEPENDS UPON BulkData inclusion
12: * (must be linked with BulkData1_support.c also)
13: */
14: #include <xnscourier/BulkData1.h>
15:
16: /*
17: * Definitions from DEPENDS UPON Authentication inclusion
18: * (must be linked with Authentication1_support.c also)
19: */
20: #include <xnscourier/Authentication1.h>
21: typedef String Clearinghouse2_Organization;
22: #define sizeof_Clearinghouse2_Organization sizeof_String
23: #define clear_Clearinghouse2_Organization clear_String
24: #define externalize_Clearinghouse2_Organization externalize_String
25: #define internalize_Clearinghouse2_Organization internalize_String
26:
27: typedef String Clearinghouse2_Domain;
28: #define sizeof_Clearinghouse2_Domain sizeof_String
29: #define clear_Clearinghouse2_Domain clear_String
30: #define externalize_Clearinghouse2_Domain externalize_String
31: #define internalize_Clearinghouse2_Domain internalize_String
32:
33: typedef String Clearinghouse2_Object;
34: #define sizeof_Clearinghouse2_Object sizeof_String
35: #define clear_Clearinghouse2_Object clear_String
36: #define externalize_Clearinghouse2_Object externalize_String
37: #define internalize_Clearinghouse2_Object internalize_String
38:
39:
40: static Cardinal Clearinghouse2_maxOrganizationsLength = {20};
41:
42: static Cardinal Clearinghouse2_maxDomainLength = {20};
43:
44: static Cardinal Clearinghouse2_maxObjectLength = {40};
45: typedef String Clearinghouse2_OrganizationName;
46: #define sizeof_Clearinghouse2_OrganizationName sizeof_String
47: #define clear_Clearinghouse2_OrganizationName clear_String
48: #define externalize_Clearinghouse2_OrganizationName externalize_String
49: #define internalize_Clearinghouse2_OrganizationName internalize_String
50:
51:
52: typedef struct {
53: String organization;
54: String domain;
55: } Clearinghouse2_TwoPartName;
56: typedef Clearinghouse2_TwoPartName Clearinghouse2_DomainName;
57: #define sizeof_Clearinghouse2_DomainName sizeof_Clearinghouse2_TwoPartName
58: #define clear_Clearinghouse2_DomainName clear_Clearinghouse2_TwoPartName
59: #define externalize_Clearinghouse2_DomainName externalize_Clearinghouse2_TwoPartName
60: #define internalize_Clearinghouse2_DomainName internalize_Clearinghouse2_TwoPartName
61:
62:
63: typedef struct {
64: String organization;
65: String domain;
66: String object;
67: } Clearinghouse2_ThreePartName;
68: typedef Clearinghouse2_ThreePartName Clearinghouse2_ObjectName;
69: #define sizeof_Clearinghouse2_ObjectName sizeof_Clearinghouse2_ThreePartName
70: #define clear_Clearinghouse2_ObjectName clear_Clearinghouse2_ThreePartName
71: #define externalize_Clearinghouse2_ObjectName externalize_Clearinghouse2_ThreePartName
72: #define internalize_Clearinghouse2_ObjectName internalize_Clearinghouse2_ThreePartName
73:
74: typedef Clearinghouse2_ThreePartName Clearinghouse2_Name;
75: #define sizeof_Clearinghouse2_Name sizeof_Clearinghouse2_ThreePartName
76: #define clear_Clearinghouse2_Name clear_Clearinghouse2_ThreePartName
77: #define externalize_Clearinghouse2_Name externalize_Clearinghouse2_ThreePartName
78: #define internalize_Clearinghouse2_Name internalize_Clearinghouse2_ThreePartName
79:
80: typedef String Clearinghouse2_OrganizationNamePattern;
81: #define sizeof_Clearinghouse2_OrganizationNamePattern sizeof_String
82: #define clear_Clearinghouse2_OrganizationNamePattern clear_String
83: #define externalize_Clearinghouse2_OrganizationNamePattern externalize_String
84: #define internalize_Clearinghouse2_OrganizationNamePattern internalize_String
85:
86: typedef Clearinghouse2_TwoPartName Clearinghouse2_DomainNamePattern;
87: #define sizeof_Clearinghouse2_DomainNamePattern sizeof_Clearinghouse2_TwoPartName
88: #define clear_Clearinghouse2_DomainNamePattern clear_Clearinghouse2_TwoPartName
89: #define externalize_Clearinghouse2_DomainNamePattern externalize_Clearinghouse2_TwoPartName
90: #define internalize_Clearinghouse2_DomainNamePattern internalize_Clearinghouse2_TwoPartName
91:
92: typedef Clearinghouse2_ThreePartName Clearinghouse2_ObjectNamePattern;
93: #define sizeof_Clearinghouse2_ObjectNamePattern sizeof_Clearinghouse2_ThreePartName
94: #define clear_Clearinghouse2_ObjectNamePattern clear_Clearinghouse2_ThreePartName
95: #define externalize_Clearinghouse2_ObjectNamePattern externalize_Clearinghouse2_ThreePartName
96: #define internalize_Clearinghouse2_ObjectNamePattern internalize_Clearinghouse2_ThreePartName
97:
98:
99: extern struct Clearinghouse2_StreamOfDomain;
100: typedef struct Clearinghouse2_StreamOfDomain Clearinghouse2_StreamOfDomain;
101:
102: typedef struct {
103: Cardinal length;
104: String *sequence;
105: } Clearinghouse2_T_r2_9;
106:
107: typedef struct {
108: Clearinghouse2_T_r2_9 segment;
109: NilRecord restOfStream;
110: } Clearinghouse2_T_c2_8;
111:
112: typedef struct {
113: Cardinal length;
114: String *sequence;
115: } Clearinghouse2_T_c2_10;
116:
117: struct Clearinghouse2_StreamOfDomain {
118: StreamEnumerator designator;
119: union {
120: Clearinghouse2_T_c2_8 u_nextSegment;
121: #define nextSegment_case u.u_nextSegment
122: Clearinghouse2_T_c2_10 u_lastSegment;
123: #define lastSegment_case u.u_lastSegment
124: } u;
125: };
126:
127: extern struct Clearinghouse2_StreamOfDomainName;
128: typedef struct Clearinghouse2_StreamOfDomainName Clearinghouse2_StreamOfDomainName;
129:
130: typedef struct {
131: Cardinal length;
132: Clearinghouse2_TwoPartName *sequence;
133: } Clearinghouse2_T_r2_12;
134:
135: typedef struct {
136: Clearinghouse2_T_r2_12 segment;
137: NilRecord restOfStream;
138: } Clearinghouse2_T_c2_11;
139:
140: typedef struct {
141: Cardinal length;
142: Clearinghouse2_TwoPartName *sequence;
143: } Clearinghouse2_T_c2_13;
144:
145: struct Clearinghouse2_StreamOfDomainName {
146: StreamEnumerator designator;
147: union {
148: Clearinghouse2_T_c2_11 u_nextSegment;
149: #define nextSegment_case u.u_nextSegment
150: Clearinghouse2_T_c2_13 u_lastSegment;
151: #define lastSegment_case u.u_lastSegment
152: } u;
153: };
154:
155: extern struct Clearinghouse2_StreamOfObject;
156: typedef struct Clearinghouse2_StreamOfObject Clearinghouse2_StreamOfObject;
157:
158: typedef struct {
159: Cardinal length;
160: String *sequence;
161: } Clearinghouse2_T_r2_15;
162:
163: typedef struct {
164: Clearinghouse2_T_r2_15 segment;
165: NilRecord restOfStream;
166: } Clearinghouse2_T_c2_14;
167:
168: typedef struct {
169: Cardinal length;
170: String *sequence;
171: } Clearinghouse2_T_c2_16;
172:
173: struct Clearinghouse2_StreamOfObject {
174: StreamEnumerator designator;
175: union {
176: Clearinghouse2_T_c2_14 u_nextSegment;
177: #define nextSegment_case u.u_nextSegment
178: Clearinghouse2_T_c2_16 u_lastSegment;
179: #define lastSegment_case u.u_lastSegment
180: } u;
181: };
182:
183: extern struct Clearinghouse2_StreamOfObjectName;
184: typedef struct Clearinghouse2_StreamOfObjectName Clearinghouse2_StreamOfObjectName;
185:
186: typedef struct {
187: Cardinal length;
188: Clearinghouse2_ThreePartName *sequence;
189: } Clearinghouse2_T_r2_18;
190:
191: typedef struct {
192: Clearinghouse2_T_r2_18 segment;
193: NilRecord restOfStream;
194: } Clearinghouse2_T_c2_17;
195:
196: typedef struct {
197: Cardinal length;
198: Clearinghouse2_ThreePartName *sequence;
199: } Clearinghouse2_T_c2_19;
200:
201: struct Clearinghouse2_StreamOfObjectName {
202: StreamEnumerator designator;
203: union {
204: Clearinghouse2_T_c2_17 u_nextSegment;
205: #define nextSegment_case u.u_nextSegment
206: Clearinghouse2_T_c2_19 u_lastSegment;
207: #define lastSegment_case u.u_lastSegment
208: } u;
209: };
210:
211: extern struct Clearinghouse2_StreamOfOrganization;
212: typedef struct Clearinghouse2_StreamOfOrganization Clearinghouse2_StreamOfOrganization;
213:
214: typedef struct {
215: Cardinal length;
216: String *sequence;
217: } Clearinghouse2_T_r2_21;
218:
219: typedef struct {
220: Clearinghouse2_T_r2_21 segment;
221: NilRecord restOfStream;
222: } Clearinghouse2_T_c2_20;
223:
224: typedef struct {
225: Cardinal length;
226: String *sequence;
227: } Clearinghouse2_T_c2_22;
228:
229: struct Clearinghouse2_StreamOfOrganization {
230: StreamEnumerator designator;
231: union {
232: Clearinghouse2_T_c2_20 u_nextSegment;
233: #define nextSegment_case u.u_nextSegment
234: Clearinghouse2_T_c2_22 u_lastSegment;
235: #define lastSegment_case u.u_lastSegment
236: } u;
237: };
238:
239: extern struct Clearinghouse2_StreamOfThreePartName;
240: typedef struct Clearinghouse2_StreamOfThreePartName Clearinghouse2_StreamOfThreePartName;
241:
242: typedef struct {
243: Cardinal length;
244: Clearinghouse2_ThreePartName *sequence;
245: } Clearinghouse2_T_r2_24;
246:
247: typedef struct {
248: Clearinghouse2_T_r2_24 segment;
249: NilRecord restOfStream;
250: } Clearinghouse2_T_c2_23;
251:
252: typedef struct {
253: Cardinal length;
254: Clearinghouse2_ThreePartName *sequence;
255: } Clearinghouse2_T_c2_25;
256:
257: struct Clearinghouse2_StreamOfThreePartName {
258: StreamEnumerator designator;
259: union {
260: Clearinghouse2_T_c2_23 u_nextSegment;
261: #define nextSegment_case u.u_nextSegment
262: Clearinghouse2_T_c2_25 u_lastSegment;
263: #define lastSegment_case u.u_lastSegment
264: } u;
265: };
266: typedef LongCardinal Clearinghouse2_Property;
267: #define sizeof_Clearinghouse2_Property sizeof_LongCardinal
268: #define clear_Clearinghouse2_Property clear_LongCardinal
269: #define externalize_Clearinghouse2_Property externalize_LongCardinal
270: #define internalize_Clearinghouse2_Property internalize_LongCardinal
271:
272:
273: typedef struct {
274: Cardinal length;
275: LongCardinal *sequence;
276: } Clearinghouse2_Properties;
277:
278: #define sizeof_Clearinghouse2_Properties(p) (1 + (p)->length * 2)
279:
280: static LongCardinal Clearinghouse2_all = {0};
281:
282: static LongCardinal Clearinghouse2_nullProperty = {037777777777};
283:
284: typedef struct {
285: Cardinal length;
286: Unspecified *sequence;
287: } Clearinghouse2_Item;
288:
289: #define sizeof_Clearinghouse2_Item(p) (1 + (p)->length * 1)
290:
291: typedef Unspecified Clearinghouse2_T_r2_26[2];
292:
293: #define sizeof_Clearinghouse2_T_r2_26(p) 2
294:
295: #define clear_Clearinghouse2_T_r2_26(p)
296:
297: typedef Unspecified Clearinghouse2_T_r2_27[3];
298:
299: #define sizeof_Clearinghouse2_T_r2_27(p) 3
300:
301: #define clear_Clearinghouse2_T_r2_27(p)
302:
303: typedef struct {
304: Clearinghouse2_T_r2_26 network;
305: Clearinghouse2_T_r2_27 host;
306: Unspecified socket;
307: } Clearinghouse2_NetworkAddress;
308:
309: #define sizeof_Clearinghouse2_NetworkAddress(p) 6
310:
311: #define clear_Clearinghouse2_NetworkAddress(p)
312:
313: typedef struct {
314: Cardinal length;
315: Clearinghouse2_NetworkAddress *sequence;
316: } Clearinghouse2_NetworkAddressList;
317:
318: #define sizeof_Clearinghouse2_NetworkAddressList(p) (1 + (p)->length * 6)
319:
320: typedef struct {
321: Authentication1_Credentials credentials;
322: Authentication1_Verifier verifier;
323: } Clearinghouse2_Authenticator;
324:
325: static String Clearinghouse2_wildcard = {"*"};
326:
327: typedef enum {
328: first = 1,
329: second = 2
330: } Clearinghouse2_WhichArgument;
331: #define sizeof_Clearinghouse2_WhichArgument sizeof_enumeration
332: #define clear_Clearinghouse2_WhichArgument clear_enumeration
333: #define externalize_Clearinghouse2_WhichArgument externalize_enumeration
334: #define internalize_Clearinghouse2_WhichArgument internalize_enumeration
335:
336:
337: typedef enum {
338: illegalProperty = 10,
339: illegalOrganizationName = 11,
340: illegalDomainName = 12,
341: illegalObjectName = 13,
342: noSuchOrganization = 14,
343: noSuchDomain = 15,
344: noSuchObject = 16
345: } Clearinghouse2_ArgumentProblem;
346: #define sizeof_Clearinghouse2_ArgumentProblem sizeof_enumeration
347: #define clear_Clearinghouse2_ArgumentProblem clear_enumeration
348: #define externalize_Clearinghouse2_ArgumentProblem externalize_enumeration
349: #define internalize_Clearinghouse2_ArgumentProblem internalize_enumeration
350:
351:
352: typedef struct {
353: Clearinghouse2_ArgumentProblem problem;
354: Clearinghouse2_WhichArgument which;
355: } T_cn2_28;
356:
357: #define sizeof_T_cn2_28(p) 2
358:
359: #define clear_T_cn2_28(p)
360:
361: #define Clearinghouse2_ArgumentError (ERROR_OFFSET+2)
362: #define Clearinghouse2_ArgumentErrorArgs T_cn2_28
363:
364: typedef struct {
365: Authentication1_Problem problem;
366: } T_cn2_29;
367:
368: #define sizeof_T_cn2_29(p) 1
369:
370: #define clear_T_cn2_29(p)
371:
372: #define Clearinghouse2_AuthenticationError (ERROR_OFFSET+6)
373: #define Clearinghouse2_AuthenticationErrorArgs T_cn2_29
374:
375: typedef enum {
376: accessRightsInsufficient = 1,
377: tooBusy = 2,
378: serverDown = 3,
379: useCourier = 4,
380: other = 5
381: } Clearinghouse2_CallProblem;
382: #define sizeof_Clearinghouse2_CallProblem sizeof_enumeration
383: #define clear_Clearinghouse2_CallProblem clear_enumeration
384: #define externalize_Clearinghouse2_CallProblem externalize_enumeration
385: #define internalize_Clearinghouse2_CallProblem internalize_enumeration
386:
387:
388: typedef struct {
389: Clearinghouse2_CallProblem problem;
390: } T_cn2_30;
391:
392: #define sizeof_T_cn2_30(p) 1
393:
394: #define clear_T_cn2_30(p)
395:
396: #define Clearinghouse2_CallError (ERROR_OFFSET+1)
397: #define Clearinghouse2_CallErrorArgs T_cn2_30
398:
399: typedef enum {
400: missing = 20,
401: wrongType = 21
402: } Clearinghouse2_PropertyProblem;
403: #define sizeof_Clearinghouse2_PropertyProblem sizeof_enumeration
404: #define clear_Clearinghouse2_PropertyProblem clear_enumeration
405: #define externalize_Clearinghouse2_PropertyProblem externalize_enumeration
406: #define internalize_Clearinghouse2_PropertyProblem internalize_enumeration
407:
408:
409: typedef struct {
410: Clearinghouse2_PropertyProblem problem;
411: Clearinghouse2_ThreePartName distinguishedObject;
412: } T_cn2_31;
413:
414: #define Clearinghouse2_PropertyError (ERROR_OFFSET+3)
415: #define Clearinghouse2_PropertyErrorArgs T_cn2_31
416:
417: typedef enum {
418: noChange = 30,
419: outOfDate = 31,
420: objectOverflow = 32,
421: databaseOverflow = 33
422: } Clearinghouse2_UpdateProblem;
423: #define sizeof_Clearinghouse2_UpdateProblem sizeof_enumeration
424: #define clear_Clearinghouse2_UpdateProblem clear_enumeration
425: #define externalize_Clearinghouse2_UpdateProblem externalize_enumeration
426: #define internalize_Clearinghouse2_UpdateProblem internalize_enumeration
427:
428:
429: typedef struct {
430: Clearinghouse2_UpdateProblem problem;
431: Boolean found;
432: Clearinghouse2_WhichArgument which;
433: Clearinghouse2_ThreePartName distinguishedObject;
434: } T_cn2_32;
435:
436: #define Clearinghouse2_UpdateError (ERROR_OFFSET+4)
437: #define Clearinghouse2_UpdateErrorArgs T_cn2_32
438:
439: typedef struct {
440: Clearinghouse2_ThreePartName hint;
441: } T_cn2_33;
442:
443: #define Clearinghouse2_WrongServer (ERROR_OFFSET+5)
444: #define Clearinghouse2_WrongServerArgs T_cn2_33
445:
446: extern void Clearinghouse2_CreateObject();
447:
448: extern void Clearinghouse2_DeleteObject();
449:
450: typedef struct {
451: Clearinghouse2_ThreePartName distinguishedObject;
452: } Clearinghouse2_LookupObjectResults;
453:
454: extern Clearinghouse2_LookupObjectResults Clearinghouse2_LookupObject();
455:
456: extern void Clearinghouse2_ListOrganizations();
457:
458: extern void Clearinghouse2_ListDomain();
459:
460: extern void Clearinghouse2_ListObjects();
461:
462: typedef struct {
463: Clearinghouse2_ThreePartName distinguishedObject;
464: } Clearinghouse2_ListAliasesOfResults;
465:
466: extern Clearinghouse2_ListAliasesOfResults Clearinghouse2_ListAliasesOf();
467:
468: typedef struct {
469: Clearinghouse2_ThreePartName distinguishedObject;
470: } Clearinghouse2_CreateAliasResults;
471:
472: extern Clearinghouse2_CreateAliasResults Clearinghouse2_CreateAlias();
473:
474: typedef struct {
475: Clearinghouse2_ThreePartName distinguishedObject;
476: } Clearinghouse2_DeleteAliasResults;
477:
478: extern Clearinghouse2_DeleteAliasResults Clearinghouse2_DeleteAlias();
479:
480: extern void Clearinghouse2_ListAliases();
481:
482: typedef struct {
483: Clearinghouse2_ThreePartName distinguishedObject;
484: } Clearinghouse2_DeletePropertyResults;
485:
486: extern Clearinghouse2_DeletePropertyResults Clearinghouse2_DeleteProperty();
487:
488: typedef struct {
489: Clearinghouse2_ThreePartName distinguishedObject;
490: Clearinghouse2_Properties properties;
491: } Clearinghouse2_ListPropertiesResults;
492:
493: extern Clearinghouse2_ListPropertiesResults Clearinghouse2_ListProperties();
494:
495: typedef struct {
496: Clearinghouse2_ThreePartName distinguishedObject;
497: } Clearinghouse2_AddItemPropertyResults;
498:
499: extern Clearinghouse2_AddItemPropertyResults Clearinghouse2_AddItemProperty();
500:
501: typedef struct {
502: Clearinghouse2_ThreePartName distinguishedObject;
503: Clearinghouse2_Item value;
504: } Clearinghouse2_RetrieveItemResults;
505:
506: extern Clearinghouse2_RetrieveItemResults Clearinghouse2_RetrieveItem();
507:
508: typedef struct {
509: Clearinghouse2_ThreePartName distinguishedObject;
510: } Clearinghouse2_ChangeItemResults;
511:
512: extern Clearinghouse2_ChangeItemResults Clearinghouse2_ChangeItem();
513:
514: typedef struct {
515: Clearinghouse2_ThreePartName distinguishedObject;
516: } Clearinghouse2_AddGroupPropertyResults;
517:
518: extern Clearinghouse2_AddGroupPropertyResults Clearinghouse2_AddGroupProperty();
519:
520: typedef struct {
521: Clearinghouse2_ThreePartName distinguishedObject;
522: } Clearinghouse2_RetrieveMembersResults;
523:
524: extern Clearinghouse2_RetrieveMembersResults Clearinghouse2_RetrieveMembers();
525:
526: typedef struct {
527: Clearinghouse2_ThreePartName distinguishedObject;
528: } Clearinghouse2_AddMemberResults;
529:
530: extern Clearinghouse2_AddMemberResults Clearinghouse2_AddMember();
531:
532: typedef struct {
533: Clearinghouse2_ThreePartName distinguishedObject;
534: } Clearinghouse2_AddSelfResults;
535:
536: extern Clearinghouse2_AddSelfResults Clearinghouse2_AddSelf();
537:
538: typedef struct {
539: Clearinghouse2_ThreePartName distinguishedObject;
540: } Clearinghouse2_DeleteMemberResults;
541:
542: extern Clearinghouse2_DeleteMemberResults Clearinghouse2_DeleteMember();
543:
544: typedef struct {
545: Clearinghouse2_ThreePartName distinguishedObject;
546: } Clearinghouse2_DeleteSelfResults;
547:
548: extern Clearinghouse2_DeleteSelfResults Clearinghouse2_DeleteSelf();
549:
550: typedef struct {
551: Boolean isMember;
552: Clearinghouse2_ThreePartName distinguishedObject;
553: } Clearinghouse2_IsMemberResults;
554:
555: extern Clearinghouse2_IsMemberResults Clearinghouse2_IsMember();
556:
557: typedef struct {
558: Clearinghouse2_NetworkAddressList address;
559: } Clearinghouse2_RetrieveAddressesResults;
560:
561: extern Clearinghouse2_RetrieveAddressesResults Clearinghouse2_RetrieveAddresses();
562:
563: extern void Clearinghouse2_ListDomainServed();
564:
565: #endif __Clearinghouse
Defined struct's
Defined typedef's
Defined macros
Usage of this include