1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
|
/*
* This file is part of the Seyon, Copyright (c) 1992-1993 by Muhammad M.
* Saggaf. All rights reserved.
*
* See the file COPYING (1-COPYING) or the manual page seyon(1) for a full
* statement of rights and permissions for this program.
*/
/*
* sighandler.h -
* Defines the interface to signalling handling in an Xt safe way
* $Id: sighandler.h,v 1.1 92/12/10 08:50:54 ware Exp $
* $Log: sighandler.h,v $
* Revision 1.1 92/12/10 08:50:54 ware
* Initial revision [Modfied by me --M.S.]
*
*/
typedef void (*XoSignalCallbackProc) (
#if NeedFunctionPrototypes
int signo, /* the signal number */
XtPointer client_data /* closure */
#endif
);
/*
* Private structure used to store the information about the currently
* installed signal handlers
*/
typedef struct _xo_signal_data_ {
XoSignalCallbackProc handler; /* function to execute */
XtPointer client_data; /* data to pass */
} _XoSignalData;
extern XoSignalCallbackProc XoAppAddSignal(
#if NeedFunctionPrototypes
XtAppContext context, /* application context */
int sig, /* which signal */
XoSignalCallbackProc handler, /* the handler */
XtPointer client_data /* private data */
#endif
);
extern void XoAppRemoveSignal(
#if NeedFunctionPrototypes
XtAppContext context, /* application context */
int sig /* which signal */
#endif
);
extern void XoAppIgnoreSignal(
#if NeedFunctionPrototypes
XtAppContext context, /* application context */
int sig /* which signal */
#endif
);
|