Copy purify.fvwm2rc to /tmp - add instructions in README.
[fvwm.git] / libs / FSMlib.h
blob2bbe73474c29cb068cd0e61b4d7413f831bcf1c4
1 /* -*-c-*- */
3 #ifndef FSMlib_H
4 #define FSMlib_H
6 /* ---------------------------- included header files ---------------------- */
7 #include "config.h"
9 #ifdef SESSION
10 #define SessionSupport 1
11 #else
12 #define SessionSupport 0
13 #endif
15 #if SessionSupport
16 #include <X11/SM/SMlib.h>
17 #include <X11/ICE/ICEutil.h>
18 #endif
20 /* ---------------------------- global definitions ------------------------- */
22 /* ---------------------------- global macros ------------------------------ */
24 #if SessionSupport
26 /* SM.h */
27 #define FSmProtoMajor SmProtoMajor
28 #define FSmProtoMinor SmProtoMinor
30 #define FSmInteractStyleNone SmInteractStyleNone
31 #define FSmInteractStyleErrors SmInteractStyleErrors
32 #define FSmInteractStyleAny SmInteractStyleAny
34 #define FSmDialogError SmDialogError
35 #define FSmDialogNormal SmDialogNormal
37 #define FSmSaveGlobal SmSaveGlobal
38 #define FSmSaveLocal SmSaveLocal
39 #define FSmSaveBoth SmSaveBoth
41 #define FSmRestartIfRunning SmRestartIfRunning
42 #define FSmRestartAnyway SmRestartAnyway
43 #define FSmRestartImmediately SmRestartImmediately
44 #define FSmRestartNever SmRestartNever
46 #define FSmCloneCommand SmCloneCommand
47 #define FSmCurrentDirectory SmCurrentDirectory
48 #define FSmDiscardCommand SmDiscardCommand
49 #define FSmEnvironment SmEnvironment
50 #define FSmProcessID SmProcessID
51 #define FSmProgram SmProgram
52 #define FSmRestartCommand SmRestartCommand
53 #define FSmResignCommand SmResignCommand
54 #define FSmRestartStyleHint SmRestartStyleHint
55 #define FSmShutdownCommand SmShutdownCommand
56 #define FSmUserID SmUserID
58 #define FSmCARD8 SmCARD8
59 #define FSmARRAY8 SmARRAY8
60 #define FSmLISTofARRAY8 SmLISTofARRAY8
62 #define FSM_Error SM_Error
63 #define FSM_RegisterClient SM_RegisterClient
64 #define FSM_RegisterClientReply SM_RegisterClientReply
65 #define FSM_SaveYourself SM_SaveYourself
66 #define FSM_SaveYourselfRequest SM_SaveYourselfRequest
67 #define FSM_InteractRequest SM_InteractRequest
68 #define FSM_Interact SM_Interact
69 #define FSM_InteractDone SM_InteractDone
70 #define FSM_SaveYourselfDone SM_SaveYourselfDone
71 #define FSM_Die SM_Die
72 #define FSM_ShutdownCancelled SM_ShutdownCancelled
73 #define FSM_CloseConnection SM_CloseConnection
74 #define FSM_SetProperties SM_SetProperties
75 #define FSM_DeleteProperties SM_DeleteProperties
76 #define FSM_GetProperties SM_GetProperties
77 #define FSM_PropertiesReply SM_PropertiesReply
78 #define FSM_SaveYourselfPhase2Request SM_SaveYourselfPhase2Request
79 #define FSM_SaveYourselfPhase2 SM_SaveYourselfPhase2
80 #define FSM_SaveComplete SM_SaveComplete
82 /* ICE.h */
83 #define FIceProtoMajor IceProtoMajor
84 #define FIceProtoMinor IceProtoMinor
86 #define FIceLSBfirst IceLSBfirst
87 #define FIceMSBfirst IceMSBfirst
89 #define FICE_Error ICE_Error
90 #define FICE_ByteOrder ICE_ByteOrder
91 #define FICE_ConnectionSetup ICE_ConnectionSetup
92 #define FICE_AuthRequired ICE_AuthRequired
93 #define FICE_AuthReply ICE_AuthReply
94 #define FICE_AuthNextPhase ICE_AuthNextPhase
95 #define FICE_ConnectionReply ICE_ConnectionReply
96 #define FICE_ProtocolSetup ICE_ProtocolSetup
97 #define FICE_ProtocolReply ICE_ProtocolReply
98 #define FICE_Ping ICE_Ping
99 #define FICE_PingReply ICE_PingReply
100 #define FICE_WantToClose ICE_WantToClose
101 #define FICE_NoClose ICE_NoClose
103 #define FIceCanContinue IceCanContinue
104 #define FIceFatalToProtocol IceFatalToProtocol
105 #define FIceFatalToConnection IceFatalToConnection
107 #define FIceBadMinor IceBadMinor
108 #define FIceBadState IceBadState
109 #define FIceBadLength IceBadLength
110 #define FIceBadValue IceBadValue
112 #define FIceBadMajor IceBadMajor
113 #define FIceNoAuth IceNoAuth
114 #define FIceNoVersion IceNoVersion
115 #define FIceSetupFailed IceSetupFailed
116 #define FIceAuthRejected IceAuthRejected
117 #define FIceAuthFailed IceAuthFailed
118 #define FIceProtocolDuplicate IceProtocolDuplicate
119 #define FIceMajorOpcodeDuplicate IceMajorOpcodeDuplicate
120 #define FIceUnknownProtocol IceUnknownProtocol
122 /* SMlib.h */
123 #define FSmsRegisterClientProcMask SmsRegisterClientProcMask
124 #define FSmsInteractRequestProcMask SmsInteractRequestProcMask
125 #define FSmsInteractDoneProcMask SmsInteractDoneProcMask
126 #define FSmsSaveYourselfRequestProcMask SmsSaveYourselfRequestProcMask
127 #define FSmsSaveYourselfP2RequestProcMask SmsSaveYourselfP2RequestProcMask
128 #define FSmsSaveYourselfDoneProcMask SmsSaveYourselfDoneProcMask
129 #define FSmsCloseConnectionProcMask SmsCloseConnectionProcMask
130 #define FSmsSetPropertiesProcMask SmsSetPropertiesProcMask
131 #define FSmsDeletePropertiesProcMask SmsDeletePropertiesProcMask
132 #define FSmsGetPropertiesProcMask SmsGetPropertiesProcMask
134 #define FSmcSaveYourselfProcMask SmcSaveYourselfProcMask
135 #define FSmcDieProcMask SmcDieProcMask
136 #define FSmcSaveCompleteProcMask SmcSaveCompleteProcMask
137 #define FSmcShutdownCancelledProcMask SmcShutdownCancelledProcMask
139 /* ICEutil.h */
140 #define FIceAuthLockSuccess IceAuthLockSuccess
141 #define FIceAuthLockError IceAuthLockError
142 #define FIceAuthLockTimeout IceAuthLockTimeout
144 #else /* !SessionSupport */
146 /* SM.h */
147 #define FSmProtoMajor 1
148 #define FSmProtoMinor 0
150 #define FSmInteractStyleNone 0
151 #define FSmInteractStyleErrors 1
152 #define FSmInteractStyleAny 2
154 #define FSmDialogError 0
155 #define FSmDialogNormal 1
157 #define FSmSaveGlobal 0
158 #define FSmSaveLocal 1
159 #define FSmSaveBoth 2
161 #define FSmRestartIfRunning 0
162 #define FSmRestartAnyway 1
163 #define FSmRestartImmediately 2
164 #define FSmRestartNever 3
166 #define FSmCloneCommand "CloneCommand"
167 #define FSmCurrentDirectory "CurrentDirectory"
168 #define FSmDiscardCommand "DiscardCommand"
169 #define FSmEnvironment "Environment"
170 #define FSmProcessID "ProcessID"
171 #define FSmProgram "Program"
172 #define FSmRestartCommand "RestartCommand"
173 #define FSmResignCommand "ResignCommand"
174 #define FSmRestartStyleHint "RestartStyleHint"
175 #define FSmShutdownCommand "ShutdownCommand"
176 #define FSmUserID "UserID"
178 #define FSmCARD8 "CARD8"
179 #define FSmARRAY8 "ARRAY8"
180 #define FSmLISTofARRAY8 "LISTofARRAY8"
182 #define FSM_Error 0
183 #define FSM_RegisterClient 1
184 #define FSM_RegisterClientReply 2
185 #define FSM_SaveYourself 3
186 #define FSM_SaveYourselfRequest 4
187 #define FSM_InteractRequest 5
188 #define FSM_Interact 6
189 #define FSM_InteractDone 7
190 #define FSM_SaveYourselfDone 8
191 #define FSM_Die 9
192 #define FSM_ShutdownCancelled 10
193 #define FSM_CloseConnection 11
194 #define FSM_SetProperties 12
195 #define FSM_DeleteProperties 13
196 #define FSM_GetProperties 14
197 #define FSM_PropertiesReply 15
198 #define FSM_SaveYourselfPhase2Request 16
199 #define FSM_SaveYourselfPhase2 17
200 #define FSM_SaveComplete 18
202 /* ICE.h */
203 #define FIceProtoMajor 1
204 #define FIceProtoMinor 0
206 #define FIceLSBfirst 0
207 #define FIceMSBfirst 1
209 #define FICE_Error 0
210 #define FICE_ByteOrder 1
211 #define FICE_ConnectionSetup 2
212 #define FICE_AuthRequired 3
213 #define FICE_AuthReply 4
214 #define FICE_AuthNextPhase 5
215 #define FICE_ConnectionReply 6
216 #define FICE_ProtocolSetup 7
217 #define FICE_ProtocolReply 8
218 #define FICE_Ping 9
219 #define FICE_PingReply 10
220 #define FICE_WantToClose 11
221 #define FICE_NoClose 12
223 #define FIceCanContinue 0
224 #define FIceFatalToProtocol 1
225 #define FIceFatalToConnection 2
227 #define FIceBadMinor 0x8000
228 #define FIceBadState 0x8001
229 #define FIceBadLength 0x8002
230 #define FIceBadValue 0x8003
232 #define FIceBadMajor 0
233 #define FIceNoAuth 1
234 #define FIceNoVersion 2
235 #define FIceSetupFailed 3
236 #define FIceAuthRejected 4
237 #define FIceAuthFailed 5
238 #define FIceProtocolDuplicate 6
239 #define FIceMajorOpcodeDuplicate 7
240 #define FIceUnknownProtocol 8
242 /* SMlib.h */
243 #define FSmsRegisterClientProcMask (1L << 0)
244 #define FSmsInteractRequestProcMask (1L << 1)
245 #define FSmsInteractDoneProcMask (1L << 2)
246 #define FSmsSaveYourselfRequestProcMask (1L << 3)
247 #define FSmsSaveYourselfP2RequestProcMask (1L << 4)
248 #define FSmsSaveYourselfDoneProcMask (1L << 5)
249 #define FSmsCloseConnectionProcMask (1L << 6)
250 #define FSmsSetPropertiesProcMask (1L << 7)
251 #define FSmsDeletePropertiesProcMask (1L << 8)
252 #define FSmsGetPropertiesProcMask (1L << 9)
254 #define FSmcSaveYourselfProcMask (1L << 0)
255 #define FSmcDieProcMask (1L << 1)
256 #define FSmcSaveCompleteProcMask (1L << 2)
257 #define FSmcShutdownCancelledProcMask (1L << 3)
259 /* ICEutil.h */
260 #define IceAuthLockSuccess 0
261 #define IceAuthLockError 1
262 #define IceAuthLockTimeout 2
264 #endif /* SessionSupport */
266 /* ---------------------------- type definitions --------------------------- */
268 #if SessionSupport
270 /* ICElib.h */
271 typedef IcePointer FIcePointer;
273 #define FIcePoAuthHaveReply IcePoAuthHaveReply
274 #define FIcePoAuthRejected IcePoAuthRejected
275 #define FIcePoAuthFailed IcePoAuthFailed
276 #define FIcePoAuthDoneCleanup IcePoAuthDoneCleanup
277 typedef IcePoAuthStatus FIcePoAuthStatus;
279 #define FIcePaAuthContinue IcePaAuthContinue
280 #define FIcePaAuthAccepted IcePaAuthAccepted
281 #define FIcePaAuthRejected IcePaAuthRejected
282 #define FIcePaAuthFailed IcePaAuthFailed
283 typedef IcePaAuthStatus FIcePaAuthStatus;
285 #define FIceConnectPending IceConnectPending
286 #define FIceConnectAccepted IceConnectAccepted
287 #define FIceConnectRejected IceConnectRejected
288 #define FIceConnectIOError IceConnectIOError
289 typedef IceConnectStatus FIceConnectStatus;
291 #define FIceProtocolSetupSuccess IceProtocolSetupSuccess
292 #define FIceProtocolSetupFailure IceProtocolSetupFailure
293 #define FIceProtocolSetupIOError IceProtocolSetupIOError
294 #define FIceProtocolAlreadyActive IceProtocolAlreadyActive
295 typedef IceProtocolSetupStatus FIceProtocolSetupStatus;
297 #define FIceAcceptSuccess IceAcceptSuccess
298 #define FIceAcceptFailure IceAcceptFailure
299 #define FIceAcceptBadMalloc IceAcceptBadMalloc
300 typedef IceAcceptStatus FIceAcceptStatus;
302 #define FIceClosedNow IceClosedNow
303 #define FIceClosedASAP IceClosedASAP
304 #define FIceConnectionInUse IceConnectionInUse
305 #define FIceStartedShutdownNegotiation IceStartedShutdownNegotiation
306 typedef IceCloseStatus FIceCloseStatus;
308 #define FIceProcessMessagesSuccess IceProcessMessagesSuccess
309 #define FIceProcessMessagesIOError IceProcessMessagesIOError
310 #define FIceProcessMessagesConnectionClosed IceProcessMessagesConnectionClosed
311 typedef IceProcessMessagesStatus FIceProcessMessagesStatus;
313 typedef IceReplyWaitInfo FIceReplyWaitInfo;
314 typedef IceConn FIceConn;
315 typedef IceListenObj FIceListenObj;
317 typedef IceWatchProc FIceWatchProc;
318 typedef IcePoProcessMsgProc FIcePoProcessMsgProc;
319 typedef IcePaProcessMsgProc FIcePaProcessMsgProc;
320 typedef IcePoVersionRec FIcePoVersionRec;
321 typedef IcePaVersionRec FIcePaVersionRec;
322 typedef IcePoAuthProc FIcePoAuthProc;
323 typedef IcePaAuthProc FIcePaAuthProc;
325 typedef IceHostBasedAuthProc FIceHostBasedAuthProc;
326 typedef IceProtocolSetupProc FIceProtocolSetupProc;
327 typedef IceProtocolActivateProc FIceProtocolActivateProc;
328 typedef IceIOErrorProc FIceIOErrorProc;
329 typedef IcePingReplyProc FIcePingReplyProc;
330 typedef IceErrorHandler FIceErrorHandler;
331 typedef IceIOErrorHandler FIceIOErrorHandler;
333 /* SMlib.h */
334 typedef SmPointer FSmPointer;
336 typedef SmcConn FSmcConn;
337 typedef SmsConn FSmsConn;
339 typedef SmPropValue FSmPropValue;
341 typedef SmProp FSmProp;
343 #define FSmcClosedNow SmcClosedNow
344 #define FSmcClosedASAP FSmcClosedASAP
345 #define FSmcConnectionInUse FSmcConnectionInUse
346 typedef SmcCloseStatus FSmcCloseStatus;
348 typedef SmcSaveYourselfProc FSmcSaveYourselfProc;
349 typedef SmcSaveYourselfPhase2Proc FSmcSaveYourselfPhase2Proc;
350 typedef SmcInteractProc FSmcInteractProc;
351 typedef SmcDieProc FSmcDieProc;
352 typedef SmcShutdownCancelledProc FSmcShutdownCancelledProc;
353 typedef SmcSaveCompleteProc FSmcSaveCompleteProc;
354 typedef SmcPropReplyProc FSmcPropReplyProc;
356 typedef SmcCallbacks FSmcCallbacks;
358 typedef SmsRegisterClientProc FSmsRegisterClientProc;
359 typedef SmsInteractRequestProc FSmsInteractRequestProc;
360 typedef SmsInteractDoneProc FSmsInteractDoneProc;
361 typedef SmsSaveYourselfRequestProc FSmsSaveYourselfRequestProc;
362 typedef SmsSaveYourselfPhase2RequestProc FSmsSaveYourselfPhase2RequestProc;
363 typedef SmsSaveYourselfDoneProc FSmsSaveYourselfDoneProc;
364 typedef SmsCloseConnectionProc FSmsCloseConnectionProc;
365 typedef SmsSetPropertiesProc FSmsSetPropertiesProc;
366 typedef SmsDeletePropertiesProc FSmsDeletePropertiesProc;
367 typedef SmsGetPropertiesProc FSmsGetPropertiesProc;
369 typedef SmsCallbacks FSmsCallbacks;
371 typedef SmsNewClientProc FSmsNewClientProc;
372 typedef SmcErrorHandler FSmcErrorHandler;
373 typedef SmsErrorHandler FSmsErrorHandler;
375 /* ICEutil.h */
376 typedef IceAuthFileEntry FIceAuthFileEntry;
377 typedef IceAuthDataEntry FIceAuthDataEntry;
379 #else /* !SessionSupport */
381 #ifdef __STDC__
382 typedef void *FIcePointer;
383 #else
384 typedef char *FIcePointer;
385 #endif
388 /* ICElib.h */
389 typedef enum {
390 FIcePoAuthHaveReply, FIcePoAuthRejected, FIcePoAuthFailed,
391 FIcePoAuthDoneCleanup
392 } FIcePoAuthStatus;
393 typedef enum {
394 FIcePaAuthContinue, FIcePaAuthAccepted, FIcePaAuthRejected,
395 FIcePaAuthFailed
396 } FIcePaAuthStatus;
397 typedef enum {
398 FIceConnectPending,FIceConnectAccepted,FIceConnectRejected,FIceConnectIOError
399 } FIceConnectStatus;
400 typedef enum {
401 FIceProtocolSetupSuccess,FIceProtocolSetupFailure,FIceProtocolSetupIOError,
402 FIceProtocolAlreadyActive
403 } FIceProtocolSetupStatus;
404 typedef enum {
405 FIceAcceptSuccess,FIceAcceptFailure,FIceAcceptBadMalloc
406 } FIceAcceptStatus;
407 typedef enum {
408 FIceClosedNow,FIceClosedASAP,FIceConnectionInUse,
409 FIceStartedShutdownNegotiation
410 } FIceCloseStatus;
411 typedef enum {
412 FIceProcessMessagesSuccess,FIceProcessMessagesIOError,
413 FIceProcessMessagesConnectionClosed
414 } FIceProcessMessagesStatus;
415 typedef struct {
416 unsigned long sequence_of_request; int major_opcode_of_request;
417 int minor_opcode_of_request; FIcePointer reply;
418 } FIceReplyWaitInfo;
419 typedef void *FIceConn;
420 typedef void *FIceListenObj;
421 typedef void (*FIceWatchProc) (
422 #ifdef __STDC__
423 FIceConn, FIcePointer, Bool, FIcePointer *
424 #endif
426 typedef void (*FIcePoProcessMsgProc) (
427 #ifdef __STDC__
428 FIceConn, FIcePointer, int, unsigned long, Bool, FIceReplyWaitInfo *,
429 Bool *
430 #endif
432 typedef void (*FIcePaProcessMsgProc) (
433 #ifdef __STDC__
434 FIceConn, FIcePointer, int, unsigned long, Bool
435 #endif
437 typedef struct {
438 int major_version; int minor_version; FIcePoProcessMsgProc process_msg_proc;
439 } FIcePoVersionRec;
440 typedef struct {
441 int major_version; int minor_version; FIcePaProcessMsgProc process_msg_proc;
442 } FIcePaVersionRec;
443 typedef FIcePoAuthStatus (*FIcePoAuthProc) (
444 #ifdef __STDC__
445 FIceConn, FIcePointer *, Bool, Bool, int, FIcePointer, int *,
446 FIcePointer *, char **
447 #endif
449 typedef FIcePaAuthStatus (*FIcePaAuthProc) (
450 #ifdef __STDC__
451 FIceConn, FIcePointer *, Bool, int, FIcePointer, int *,
452 FIcePointer *, char **
453 #endif
455 typedef Bool (*FIceHostBasedAuthProc) (
456 #ifdef __STDC__
457 char *
458 #endif
460 typedef Status (*FIceProtocolSetupProc) (
461 #ifdef __STDC__
462 FIceConn, int, int, char *, char *, FIcePointer *, char **
463 #endif
465 typedef void (*FIceProtocolActivateProc) (
466 #ifdef __STDC__
467 FIceConn, FIcePointer
468 #endif
470 typedef void (*FIceIOErrorProc) (
471 #ifdef __STDC__
472 FIceConn
473 #endif
475 typedef void (*FIcePingReplyProc) (
476 #ifdef __STDC__
477 FIceConn, FIcePointer
478 #endif
480 typedef void (*FIceErrorHandler) (
481 #ifdef __STDC__
482 FIceConn, Bool, int, unsigned long, int, int, FIcePointer
483 #endif
485 typedef void (*FIceIOErrorHandler) (
486 #ifdef __STDC__
487 FIceConn /* iceConn */
488 #endif
491 /* SMlib.h */
492 typedef FIcePointer FSmPointer;
494 typedef void *FSmcConn;
495 typedef void *FSmsConn;
497 typedef struct { int length; FSmPointer value;
498 } FSmPropValue;
499 typedef struct { char *name; char *type; int num_vals; FSmPropValue *vals;
500 } FSmProp;
502 typedef enum {
503 FSmcClosedNow,
504 FSmcClosedASAP,
505 FSmcConnectionInUse
506 } FSmcCloseStatus;
508 typedef void (*FSmcSaveYourselfProc) (
509 #ifdef __STDC__
510 FSmcConn, FSmPointer, int, Bool, int, Bool
511 #endif
513 typedef void (*FSmcSaveYourselfPhase2Proc) (
514 #ifdef __STDC__
515 FSmcConn, FSmPointer
516 #endif
518 typedef void (*FSmcInteractProc) (
519 #ifdef __STDC__
520 FSmcConn, FSmPointer
521 #endif
523 typedef void (*FSmcDieProc) (
524 #ifdef __STDC__
525 FSmcConn, FSmPointer
526 #endif
528 typedef void (*FSmcShutdownCancelledProc) (
529 #ifdef __STDC__
530 FSmcConn, FSmPointer
531 #endif
533 typedef void (*FSmcSaveCompleteProc) (
534 #ifdef __STDC__
535 FSmcConn, FSmPointer
536 #endif
538 typedef void (*FSmcPropReplyProc) (
539 #ifdef __STDC__
540 FSmcConn, FSmPointer, int, FSmProp **
541 #endif
544 typedef struct {
545 struct {
546 FSmcSaveYourselfProc callback;
547 FSmPointer client_data;
548 } save_yourself;
549 struct {
550 FSmcDieProc callback;
551 FSmPointer client_data;
552 } die;
553 struct {
554 FSmcSaveCompleteProc callback;
555 FSmPointer client_data;
556 } save_complete;
557 struct {
558 FSmcShutdownCancelledProc callback;
559 FSmPointer client_data;
560 } shutdown_cancelled;
561 } FSmcCallbacks;
563 typedef Status (*FSmsRegisterClientProc) (
564 #ifdef __STDC__
565 FSmsConn, FSmPointer, char *
566 #endif
568 typedef void (*FSmsInteractRequestProc) (
569 #ifdef __STDC__
570 FSmsConn, FSmPointer, int
571 #endif
573 typedef void (*FSmsInteractDoneProc) (
574 #ifdef __STDC__
575 FSmsConn, FSmPointer, Bool
576 #endif
578 typedef void (*FSmsSaveYourselfRequestProc) (
579 #ifdef __STDC__
580 FSmsConn, FSmPointer, int, Bool, int, Bool, Bool
581 #endif
583 typedef void (*FSmsSaveYourselfPhase2RequestProc) (
584 #ifdef __STDC__
585 FSmsConn, FSmPointer
586 #endif
588 typedef void (*FSmsSaveYourselfDoneProc) (
589 #ifdef __STDC__
590 FSmsConn, FSmPointer, Bool
591 #endif
593 typedef void (*FSmsCloseConnectionProc) (
594 #ifdef __STDC__
595 FSmsConn, FSmPointer, int, char **
596 #endif
598 typedef void (*FSmsSetPropertiesProc) (
599 #ifdef __STDC__
600 FSmsConn, FSmPointer, int, FSmProp **
601 #endif
603 typedef void (*FSmsDeletePropertiesProc) (
604 #ifdef __STDC__
605 FSmsConn, FSmPointer, int, char **
606 #endif
608 typedef void (*FSmsGetPropertiesProc) (
609 #ifdef __STDC__
610 FSmsConn, FSmPointer
611 #endif
614 typedef struct {
615 struct {
616 FSmsRegisterClientProc callback;
617 FSmPointer manager_data;
618 } register_client;
619 struct {
620 FSmsInteractRequestProc callback;
621 FSmPointer manager_data;
622 } interact_request;
623 struct {
624 FSmsInteractDoneProc callback;
625 FSmPointer manager_data;
626 } interact_done;
627 struct {
628 FSmsSaveYourselfRequestProc callback;
629 FSmPointer manager_data;
630 } save_yourself_request;
631 struct {
632 FSmsSaveYourselfPhase2RequestProc callback;
633 FSmPointer manager_data;
634 } save_yourself_phase2_request;
635 struct {
636 FSmsSaveYourselfDoneProc callback;
637 FSmPointer manager_data;
638 } save_yourself_done;
639 struct {
640 FSmsCloseConnectionProc callback;
641 FSmPointer manager_data;
642 } close_connection;
643 struct {
644 FSmsSetPropertiesProc callback;
645 FSmPointer manager_data;
646 } set_properties;
647 struct {
648 FSmsDeletePropertiesProc callback;
649 FSmPointer manager_data;
650 } delete_properties;
651 struct {
652 FSmsGetPropertiesProc callback;
653 FSmPointer manager_data;
654 } get_properties;
655 } FSmsCallbacks;
657 typedef Status (*FSmsNewClientProc) (
658 #ifdef __STDC__
659 FSmsConn,FSmPointer, unsigned long *, FSmsCallbacks *, char **
660 #endif
662 typedef void (*FSmcErrorHandler) (
663 #ifdef __STDC__
664 FSmcConn, Bool, int, unsigned long, int, int, FSmPointer
665 #endif
667 typedef void (*FSmsErrorHandler) (
668 #ifdef __STDC__
669 FSmsConn, Bool, int, unsigned long, int, int, FSmPointer
670 #endif
673 /* ICEutil.h */
674 typedef struct {
675 char *protocol_name;
676 unsigned short protocol_data_length;
677 char *protocol_data;
678 char *network_id;
679 char *auth_name;
680 unsigned short auth_data_length;
681 char *auth_data;
682 } FIceAuthFileEntry;
684 typedef struct {
685 char *protocol_name;
686 char *network_id;
687 char *auth_name;
688 unsigned short auth_data_length;
689 char *auth_data;
690 } FIceAuthDataEntry;
692 #endif
694 /* ---------------------------- forward declarations ----------------------- */
696 /* ---------------------------- exported variables (globals) --------------- */
698 /* ---------------------------- interface functions ------------------------ */
700 #if SessionSupport
702 /* ICElib.h (no all) */
703 #define FIceSetIOErrorHandler(a) IceSetIOErrorHandler(a)
704 #define FIceFreeListenObjs(a,b) IceFreeListenObjs(a,b)
705 #define FIceConnectionNumber(a) IceConnectionNumber(a)
706 #define FIceSetShutdownNegotiation(a,b) IceSetShutdownNegotiation(a,b)
707 #define FIceCloseConnection(a) IceCloseConnection(a)
708 #define FIceConnectionStatus(a) IceConnectionStatus(a)
709 #define FIceAcceptConnection(a,b) IceAcceptConnection(a,b)
710 #define FIceProcessMessages(a,b,c) IceProcessMessages(a,b,c)
711 #define FIceListenForConnections(a,b,c,d) IceListenForConnections(a,b,c,d)
712 #define FIceAddConnectionWatch(a,b) IceAddConnectionWatch(a,b)
713 #define FIceGetListenConnectionNumber(a) IceGetListenConnectionNumber(a)
714 #define FIceComposeNetworkIdList(a,b) IceComposeNetworkIdList(a,b)
715 #define FIceGetListenConnectionString(a) IceGetListenConnectionString(a)
716 #define FIceSetHostBasedAuthProc(a,b) IceSetHostBasedAuthProc(a,b)
717 #define FIceConnectionString(a) IceConnectionString(a)
719 /* SMlib.h */
720 #define FSmcOpenConnection(a,b,c,d,e,f,g,h,i,k) \
721 SmcOpenConnection(a,b,c,d,e,f,g,h,i,k)
722 #define FSmcCloseConnection(a,b,c) SmcCloseConnection(a,b,c)
723 #define FSmcModifyCallbacks(a,b,c) SmcModifyCallbacks(a,b,c)
724 #define FSmcSetProperties(a,b,c) SmcSetProperties(a,b,c)
725 #define FSmcDeleteProperties(a,b,c) SmcDeleteProperties(a,b,c)
726 #define FSmcGetProperties(a,b,c) SmcGetProperties(a,b,c)
727 #define FSmcInteractRequest(a,b,c,d) SmcInteractRequest(a,b,c,d)
728 #define FSmcInteractDone(a,b) SmcInteractDone(a,b)
729 #define FSmcRequestSaveYourself(a,b,c,d,e,f) SmcRequestSaveYourself(a,b,c,d,e,f)
730 #define FSmcRequestSaveYourselfPhase2(a,b,c) SmcRequestSaveYourselfPhase2(a,b,c)
731 #define FSmcSaveYourselfDone(a,b) SmcSaveYourselfDone(a,b)
732 #define FSmcProtocolVersion(a) SmcProtocolVersion(a)
733 #define FSmcProtocolRevision(a) SmcProtocolRevision(a)
734 #define FSmcVendor(a) SmcVendor(a)
735 #define FSmcRelease(a) SmcRelease(a)
736 #define FSmcClientID(a) SmcClientID(a)
737 #define FSmcGetIceConnection(a) SmcGetIceConnection(a)
738 #define FSmsInitialize(a,b,c,d,e,f,g) SmsInitialize(a,b,c,d,e,f,g)
739 #define FSmsClientHostName(a) SmsClientHostName(a)
740 #define FSmsGenerateClientID(a) SmsGenerateClientID(a)
741 #define FSmsRegisterClientReply(a,b) SmsRegisterClientReply(a,b)
742 #define FSmsSaveYourself(a,b,c,d,e) SmsSaveYourself(a,b,c,d,e)
743 #define FSmsSaveYourselfPhase2(a) SmsSaveYourselfPhase2(a)
744 #define FSmsInteract(a) SmsInteract(a)
745 #define FSmsDie(a) SmsDie(a)
746 #define FSmsSaveComplete(a) SmsSaveComplete(a)
747 #define FSmsShutdownCancelled(a) SmsShutdownCancelled(a)
748 #define FSmsReturnProperties(a,b,c) SmsReturnProperties(a,b,c)
749 #define FSmsCleanUp(a) SmsCleanUp(a)
750 #define FSmsProtocolVersion(a) SmsProtocolVersion(a)
751 #define FSmsProtocolRevision(a) SmsProtocolRevision(a)
752 #define FSmsClientID(a) SmsClientID(a)
753 #define FSmsGetIceConnection(a) SmsGetIceConnection(a)
754 #define FSmcSetErrorHandler(a) SmcSetErrorHandler(a)
755 #define FSmsSetErrorHandler(a) SmsSetErrorHandler(a)
756 #define FSmFreeProperty(a) SmFreeProperty(a)
757 #define FSmFreeReasons(a,b) SmFreeReasons(a,b)
759 /* ICEutils.h */
760 #define FIceAuthFileName(a) IceAuthFileName(a)
761 #define FIceLockAuthFile(a,b,c,d) IceLockAuthFile(a,b,c,d)
762 #define FIceUnlockAuthFile(a) IceUnlockAuthFile(a)
763 #define FIceReadAuthFileEntry(a) IceReadAuthFileEntry(a)
764 #define FIceFreeAuthFileEntry(a) IceFreeAuthFileEntry(a)
765 #define FIceWriteAuthFileEntry(a,b) IceWriteAuthFileEntry(a,b)
766 #define FIceGetAuthFileEntry(a,b,c) IceGetAuthFileEntry(a,b,c)
767 #define FIceGenerateMagicCookie(a) IceGenerateMagicCookie(a)
768 #define FIceSetPaAuthData(a,b) IceSetPaAuthData(a,b)
770 #else
772 /* ICElib.h (no all) */
773 #define FIceSetIOErrorHandler(a) NULL
774 #define FIceFreeListenObjs(a,b)
775 #define FIceConnectionNumber(a) 0
776 #define FIceSetShutdownNegotiation(a,b)
777 #define FIceCloseConnection(a) 0
778 #define FIceConnectionStatus(a) 0
779 #define FIceAcceptConnection(a,b) NULL
780 #define FIceProcessMessages(a,b,c) 0
781 #define FIceListenForConnections(a,b,c,d) 0
782 #define FIceAddConnectionWatch(a,b) 0
783 #define FIceGetListenConnectionNumber(a) 0
784 #define FIceComposeNetworkIdList(a,b) NULL
785 #define FIceGetListenConnectionString(a) NULL
786 #define FIceSetHostBasedAuthProc(a,b)
787 #define FIceConnectionString(a) NULL
789 /* SMlib.h */
790 #define FSmcOpenConnection(a,b,c,d,e,f,g,h,i,k) NULL
791 #define FSmcCloseConnection(a,b,c) 0
792 #define FSmcModifyCallbacks(a,b,c)
793 #define FSmcSetProperties(a,b,c)
794 #define FSmcDeleteProperties(a,b,c)
795 #define FSmcGetProperties(a,b,c) 0
796 #define FSmcInteractRequest(a,b,c,d) 0
797 #define FSmcInteractDone(a,b)
798 #define FSmcRequestSaveYourself(a,b,c,d,e,f)
799 #define FSmcRequestSaveYourselfPhase2(a,b,c) 0
800 #define FSmcSaveYourselfDone(a,b)
801 #define FSmcProtocolVersion(a) 0
802 #define FSmcProtocolRevision(a) 0
803 #define FSmcVendor(a) NULL
804 #define FSmcRelease(a) NULL
805 #define FSmcClientID(a) NULL
806 #define FSmcGetIceConnection(a) NULL
807 #define FSmsInitialize(a,b,c,d,e,f,g) 0
808 #define FSmsClientHostName(a) NULL
809 #define FSmsGenerateClientID(a) NULL
810 #define FSmsRegisterClientReply(a,b) 0
811 #define FSmsSaveYourself(a,b,c,d,e)
812 #define FSmsSaveYourselfPhase2(a)
813 #define FSmsInteract(a)
814 #define FSmsDie(a)
815 #define FSmsSaveComplete(a)
816 #define FSmsShutdownCancelled(a)
817 #define FSmsReturnProperties(a,b,c)
818 #define FSmsCleanUp(a)
819 #define FSmsProtocolVersion(a) 0
820 #define FSmsProtocolRevision(a) 0
821 #define FSmsClientID(a) NULL
822 #define FSmsGetIceConnection(a) NULL
823 #define FSmcSetErrorHandler(a) NULL
824 #define FSmsSetErrorHandler(a) NULL
825 #define FSmFreeProperty(a)
826 #define FSmFreeReasons(a,b)
828 /* ICEutils.h */
829 #define FIceAuthFileName(a) NULL
830 #define FIceLockAuthFile(a,b,c,d) 0
831 #define FIceUnlockAuthFile(a)
832 #define FIceReadAuthFileEntry(a) NULL
833 #define FIceFreeAuthFileEntry(a)
834 #define FIceWriteAuthFileEntry(a,b) 0
835 #define FIceGetAuthFileEntry(a,b,c) NULL
836 #define FIceGenerateMagicCookie(a) NULL
837 #define FIceSetPaAuthData(a,b)
839 #endif
841 #endif /* FSMlib_H */