Commit | Line | Data |
---|---|---|
53102063 C |
1 | /* llib-lftam - lint library for -lftam */ |
2 | ||
3 | /* | |
4 | * $Header: /f/osi/ftam/RCS/llib-lftam,v 7.1 91/02/22 09:23:21 mrose Interim $ | |
5 | * | |
6 | * | |
7 | * $Log: llib-lftam,v $ | |
8 | * Revision 7.1 91/02/22 09:23:21 mrose | |
9 | * Interim 6.8 | |
10 | * | |
11 | * Revision 7.0 89/11/23 21:53:58 mrose | |
12 | * Release 6.0 | |
13 | * | |
14 | */ | |
15 | ||
16 | /* | |
17 | * NOTICE | |
18 | * | |
19 | * Acquisition, use, and distribution of this module and related | |
20 | * materials are subject to the restrictions of a license agreement. | |
21 | * Consult the Preface in the User's Manual for the full terms of | |
22 | * this agreement. | |
23 | * | |
24 | */ | |
25 | ||
26 | ||
27 | /* LINTLIBRARY */ | |
28 | ||
29 | #include "ftam.h" | |
30 | ||
31 | /* \f */ | |
32 | ||
33 | /* F-INITIALIZE.INDICATION */ | |
34 | ||
35 | int FInit (vecp, vec, fts, tracing, fti) | |
36 | int vecp; | |
37 | char **vec; | |
38 | struct FTAMstart *fts; | |
39 | IFP tracing; | |
40 | struct FTAMindication *fti; | |
41 | { | |
42 | return FInit (vecp, vec, fts, tracing, fti); | |
43 | } | |
44 | ||
45 | ||
46 | /* F-INITIALIZE.RESPONSE */ | |
47 | ||
48 | int FInitializeResponse (sd, state, action, context, respondtitle, | |
49 | respondaddr, manage, class, units, attrs, sharedASE, fqos, contents, | |
50 | diag, ndiag, fti) | |
51 | int sd; | |
52 | int state, | |
53 | action, | |
54 | manage, | |
55 | class, | |
56 | units, | |
57 | attrs, | |
58 | fqos; | |
59 | OID context; | |
60 | AEI respondtitle; | |
61 | struct PSAPaddr *respondaddr; | |
62 | PE sharedASE; | |
63 | struct FTAMcontentlist *contents; | |
64 | struct FTAMdiagnostic diag[]; | |
65 | int ndiag; | |
66 | struct FTAMindication *fti; | |
67 | { | |
68 | return FInitializeResponse (sd, state, action, context, respondtitle, | |
69 | respondaddr, manage, class, units, attrs, sharedASE, fqos, contents, | |
70 | diag, ndiag, fti); | |
71 | } | |
72 | ||
73 | ||
74 | /* F-INITIALIZE.REQUEST */ | |
75 | ||
76 | int FInitializeRequest (context, callingtitle, calledtitle, callingaddr, | |
77 | calledaddr, manage, class, units, attrs, sharedASE, fqos, contents, | |
78 | initiator, account, password, passlen, qos, tracing, ftc, fti) | |
79 | OID context; | |
80 | AEI callingtitle, | |
81 | calledtitle; | |
82 | struct PSAPaddr *callingaddr, | |
83 | *calledaddr; | |
84 | int manage, | |
85 | class, | |
86 | units, | |
87 | attrs, | |
88 | fqos, | |
89 | passlen; | |
90 | PE sharedASE; | |
91 | struct FTAMcontentlist *contents; | |
92 | char *initiator, | |
93 | *account, | |
94 | *password; | |
95 | struct QOStype *qos; | |
96 | IFP tracing; | |
97 | struct FTAMconnect *ftc; | |
98 | struct FTAMindication *fti; | |
99 | { | |
100 | return FInitializeRequest (context, callingtitle, calledtitle, callingaddr, | |
101 | calledaddr, manage, class, units, attrs, sharedASE, fqos, | |
102 | contents, initiator, account, password, passlen, qos, tracing, | |
103 | ftc, fti); | |
104 | } | |
105 | ||
106 | ||
107 | /* F-TERMINATE.REQUEST */ | |
108 | ||
109 | int FTerminateRequest (sd, sharedASE, ftr, fti) | |
110 | int sd; | |
111 | PE sharedASE; | |
112 | struct FTAMrelease *ftr; | |
113 | struct FTAMindication *fti; | |
114 | { | |
115 | return FTerminateRequest (sd, sharedASE, ftr, fti); | |
116 | } | |
117 | ||
118 | ||
119 | /* F-TERMINATE.RESPONSE */ | |
120 | ||
121 | int FTerminateResponse (sd, sharedASE, charging, fti) | |
122 | int sd; | |
123 | PE sharedASE; | |
124 | struct FTAMcharging *charging; | |
125 | struct FTAMindication *fti; | |
126 | { | |
127 | return FTerminateResponse (sd, sharedASE, charging, fti); | |
128 | } | |
129 | ||
130 | ||
131 | /* F-U-ABORT.REQUEST */ | |
132 | ||
133 | int FUAbortRequest (sd, action, diag, ndiag, fti) | |
134 | int sd; | |
135 | int action; | |
136 | struct FTAMdiagnostic diag[]; | |
137 | int ndiag; | |
138 | struct FTAMindication *fti; | |
139 | { | |
140 | return FUAbortRequest (sd, action, diag, ndiag, fti); | |
141 | } | |
142 | ||
143 | ||
144 | /* F-WAIT.REQUEST (pseudo) */ | |
145 | ||
146 | int FWaitRequest (sd, secs, fti) | |
147 | int sd; | |
148 | int secs; | |
149 | struct FTAMindication *fti; | |
150 | { | |
151 | return FWaitRequest (sd, secs, fti); | |
152 | } | |
153 | ||
154 | ||
155 | /* F-MANAGE.REQUEST (group) */ | |
156 | ||
157 | int FManageRequest (sd, ftg, fti) | |
158 | int sd; | |
159 | struct FTAMgroup *ftg; | |
160 | struct FTAMindication *fti; | |
161 | { | |
162 | return FManageRequest (sd, ftg, fti); | |
163 | } | |
164 | ||
165 | ||
166 | /* F-MANAGE.RESPONSE (group) */ | |
167 | ||
168 | int FManageResponse (sd, ftg, fti) | |
169 | int sd; | |
170 | struct FTAMgroup *ftg; | |
171 | struct FTAMindication *fti; | |
172 | { | |
173 | return FManageResponse (sd, ftg, fti); | |
174 | } | |
175 | ||
176 | ||
177 | /* F-BULK-BEGIN.REQUEST (group) */ | |
178 | ||
179 | int FBulkBeginRequest (sd, ftg, fti) | |
180 | int sd; | |
181 | struct FTAMgroup *ftg; | |
182 | struct FTAMindication *fti; | |
183 | { | |
184 | return FBulkBeginRequest (sd, ftg, fti); | |
185 | } | |
186 | ||
187 | ||
188 | /* F-BULK-BEGIN.RESPONSE (group) */ | |
189 | ||
190 | int FBulkBeginResponse (sd, ftg, fti) | |
191 | int sd; | |
192 | struct FTAMgroup *ftg; | |
193 | struct FTAMindication *fti; | |
194 | { | |
195 | return FBulkBeginResponse (sd, ftg, fti); | |
196 | } | |
197 | ||
198 | ||
199 | /* F-BULK-END.REQUEST (group) */ | |
200 | ||
201 | int FBulkEndRequest (sd, ftg, fti) | |
202 | int sd; | |
203 | struct FTAMgroup *ftg; | |
204 | struct FTAMindication *fti; | |
205 | { | |
206 | return FBulkEndRequest (sd, ftg, fti); | |
207 | } | |
208 | ||
209 | ||
210 | /* F-BULK-END.RESPONSE (group) */ | |
211 | ||
212 | int FBulkEndResponse (sd, ftg, fti) | |
213 | int sd; | |
214 | struct FTAMgroup *ftg; | |
215 | struct FTAMindication *fti; | |
216 | { | |
217 | return FBulkEndResponse (sd, ftg, fti); | |
218 | } | |
219 | ||
220 | ||
221 | /* F-{LOCATE,ERASE}.REQUEST */ | |
222 | ||
223 | int FAccessRequest (sd, operation, identity, fti) | |
224 | int sd; | |
225 | int operation; | |
226 | struct FADUidentity *identity; | |
227 | struct FTAMindication *fti; | |
228 | { | |
229 | return FAccessRequest (sd, operation, identity, fti); | |
230 | } | |
231 | ||
232 | ||
233 | /* F-{LOCATE,ERASE}.RESPONSE */ | |
234 | ||
235 | int FAccessResponse (sd, action, identity, diag, ndiag, fti) | |
236 | int sd; | |
237 | int action; | |
238 | struct FADUidentity *identity; /* F-LOCATE.RESPONSE only */ | |
239 | struct FTAMdiagnostic diag[]; | |
240 | int ndiag; | |
241 | struct FTAMindication *fti; | |
242 | { | |
243 | return FAccessResponse (sd, action, identity, diag, ndiag, fti); | |
244 | } | |
245 | ||
246 | ||
247 | /* F-{READ,WRITE}.REQUEST */ | |
248 | ||
249 | int FReadWriteRequest (sd, operation, identity, context, level, lock, fti) | |
250 | int sd; | |
251 | int operation; | |
252 | struct FADUidentity *identity; | |
253 | int context, /* F-READ.REQUEST only */ | |
254 | level, /* .. */ | |
255 | lock; | |
256 | struct FTAMindication *fti; | |
257 | { | |
258 | return FReadWriteRequest (sd, operation, identity, context, level, lock, | |
259 | fti); | |
260 | } | |
261 | ||
262 | ||
263 | /* F-DATA.REQUEST */ | |
264 | ||
265 | int FDataRequest (sd, fadus, nfadu, fti) | |
266 | int sd; | |
267 | PE fadus[]; | |
268 | int nfadu; | |
269 | struct FTAMindication *fti; | |
270 | { | |
271 | return FDataRequest (sd, fadus, nfadu, fti); | |
272 | } | |
273 | ||
274 | ||
275 | /* F-DATA-END.REQUEST */ | |
276 | ||
277 | int FDataEndRequest (sd, action, diag, ndiag, fti) | |
278 | int sd; | |
279 | int action; | |
280 | struct FTAMdiagnostic diag[]; | |
281 | int ndiag; | |
282 | struct FTAMindication *fti; | |
283 | { | |
284 | return FDataEndRequest (sd, action, diag, ndiag, fti); | |
285 | } | |
286 | ||
287 | ||
288 | /* F-CANCEL.REQUEST */ | |
289 | ||
290 | int FCancelRequest (sd, action, sharedASE, diag, ndiag, fti) | |
291 | int sd; | |
292 | int action; | |
293 | PE sharedASE; | |
294 | struct FTAMdiagnostic diag[]; | |
295 | int ndiag; | |
296 | struct FTAMindication *fti; | |
297 | { | |
298 | return FCancelRequest (sd, action, sharedASE, diag, ndiag, fti); | |
299 | } | |
300 | ||
301 | ||
302 | /* F-CANCEL.RESPONSE */ | |
303 | ||
304 | int FCancelResponse (sd, action, sharedASE, diag, ndiag, fti) | |
305 | int sd; | |
306 | int action; | |
307 | PE sharedASE; | |
308 | struct FTAMdiagnostic diag[]; | |
309 | int ndiag; | |
310 | struct FTAMindication *fti; | |
311 | { | |
312 | return FCancelResponse (sd, action, sharedASE, diag, ndiag, fti); | |
313 | } | |
314 | ||
315 | ||
316 | /* F-TRANSFER-END.REQUEST */ | |
317 | ||
318 | int FTransEndRequest (sd, sharedASE, fti) | |
319 | int sd; | |
320 | PE sharedASE; | |
321 | struct FTAMindication *fti; | |
322 | { | |
323 | return FTransEndRequest (sd, sharedASE, fti); | |
324 | } | |
325 | ||
326 | ||
327 | /* F-TRANSFER-END.RESPONSE */ | |
328 | ||
329 | int FTransEndResponse (sd, action, sharedASE, diag, ndiag, fti) | |
330 | int sd; | |
331 | int action; | |
332 | PE sharedASE; | |
333 | struct FTAMdiagnostic diag[]; | |
334 | int ndiag; | |
335 | struct FTAMindication *fti; | |
336 | { | |
337 | return FTransEndResponse (sd, action, sharedASE, diag, ndiag, fti); | |
338 | } | |
339 | ||
340 | ||
341 | /* define vector for INDICATION events */ | |
342 | ||
343 | int FSetIndications (sd, indication, fti) | |
344 | int sd; | |
345 | IFP indication; | |
346 | struct FTAMindication *fti; | |
347 | { | |
348 | return FSetIndications (sd, indication, fti); | |
349 | } | |
350 | ||
351 | ||
352 | /* map ftam descriptors for select() */ | |
353 | ||
354 | int FSelectMask (sd, mask, nfds, fti) | |
355 | int sd; | |
356 | fd_set *mask; | |
357 | int *nfds; | |
358 | struct FTAMindication *fti; | |
359 | { | |
360 | return FSelectMask (sd, mask, nfds, fti); | |
361 | } | |
362 | ||
363 | ||
364 | /* set tracing */ | |
365 | ||
366 | int FHookRequest (sd, tracing, fti) | |
367 | int sd; | |
368 | IFP tracing; | |
369 | struct FTAMindication *fti; | |
370 | { | |
371 | return FHookRequest (sd, tracing, fti); | |
372 | } | |
373 | ||
374 | ||
375 | /* user-defined tracing */ | |
376 | ||
377 | int FTraceHook (sd, event, fpdu, pe, rw) | |
378 | int sd; | |
379 | char *event, | |
380 | *fpdu; | |
381 | PE pe; | |
382 | int rw; | |
383 | { | |
384 | return FTraceHook (sd, event, fpdu, pe, rw); | |
385 | } | |
386 | ||
387 | ||
388 | /* return FTAM error code in string form */ | |
389 | ||
390 | char *FErrString (code) | |
391 | int code; | |
392 | { | |
393 | return FErrString (code); | |
394 | } | |
395 | ||
396 | ||
397 | /* free list of attributes */ | |
398 | ||
399 | void FAFREE (fa) | |
400 | struct FTAMattributes *fa; | |
401 | { | |
402 | FAFREE (fa); | |
403 | } | |
404 | ||
405 | /* isodocuments routines */ | |
406 | ||
407 | ||
408 | int setisodocument (f) | |
409 | int f; | |
410 | { | |
411 | return setisodocument (f); | |
412 | } | |
413 | ||
414 | ||
415 | int endisodocument () | |
416 | { | |
417 | return endisodocument (); | |
418 | } | |
419 | ||
420 | ||
421 | struct isodocument *getisodocument () | |
422 | { | |
423 | return getisodocument (); | |
424 | } | |
425 | ||
426 | ||
427 | struct isodocument *getisodocumentbyentry (entry) | |
428 | char *entry; | |
429 | { | |
430 | return getisodocumentbyentry (entry); | |
431 | } | |
432 | ||
433 | ||
434 | struct isodocument *getisodocumentbytype (type) | |
435 | OID type; | |
436 | { | |
437 | return getisodocumentbytype (type); | |
438 | } |