1 .\" Copyright (c) 1993, 1994 X Consortium
3 .\" Permission is hereby granted, free of charge, to any person obtaining a
4 .\" copy of this software and associated documentation files (the "Software"),
5 .\" to deal in the Software without restriction, including without limitation
6 .\" the rights to use, copy, modify, merge, publish, distribute, sublicense,
7 .\" and/or sell copies of the Software, and to permit persons to whom the
8 .\" Software furnished to do so, subject to the following conditions:
10 .\" The above copyright notice and this permission notice shall be included in
11 .\" all copies or substantial portions of the Software.
13 .\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 .\" IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 .\" FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
16 .\" THE X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
17 .\" WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
18 .\" OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 .\" Except as contained in this notice, the name of the X Consortium shall not
22 .\" be used in advertising or otherwise to promote the sale, use or other
23 .\" dealing in this Software without prior written authorization from the
27 .ds xT X Toolkit Intrinsics \- C Language Interface
29 .ds xW X Toolkit Athena Widgets \- C Language Interface
30 .ds xL Xlib \- C Language X Interface
31 .ds xC Inter-Client Communication Conventions Manual
34 .hw XtApp-Add-Signal wid-get
41 .\".if \\n(VS>=40 .vs \\n(VSu
42 .\".if \\n(VS<=39 .vs \\n(VSp
53 .de IN \" send an index entry to the stderr
56 .ie t \\$1\fB\^\\$2\^\fR\\$3
57 .el \\$1\fI\^\\$2\^\fP\\$3
60 .ie t \fB\^\\$1\^\fR\\$2
61 .el \fI\^\\$1\^\fP\\$2
64 .TH XtAppAddSignal __libmansuffix__ __xorgversion__ "XT FUNCTIONS"
66 XtAppAddSignal, XtRemoveSignal, XtNoticeSignal \- register and remove a signal source
69 XtSignalId XtAppAddSignal(XtAppContext \fIapp_context\fP, XtSignalCallbackProc
70 \fIproc\fP, XtPointer \fIclient_data\fP);
72 void XtRemoveSignal(XtSignalId \fIid\fP);
74 void XtNoticeSignal(XtSignalId \fIid\fP);
76 .IP \fIapp_context\fP 1i
77 Specifies the application context.
78 .IP \fIclient_data\fP 1i
79 Specifies the argument that is to be passed to the specified procedure
80 when a signal has been raised.
82 Specifies the ID returned from the corresponding
86 Specifies the procedure that is to be called when the signal has been
91 function initiates a mechanism for handling signals within the context
92 of the Intrinsics. Prior to establishing an operating system dependent
93 signal handler the application may call
95 and store the returned \fIid\fP in a place accessible to the signal
98 Upon receipt of a signal from the operating system, the application may
101 passing the \fIid\fP returned by the call to
105 is the only Intrinsics function that can safely be called from a signal
108 is called multiple times before the Intrinsics are able to invoke the
109 registered callback, the callback is only called once. Logically the
110 Intrinsics maintain ``pending'' for each registered callback. This
117 the Intrinsics invoke the callback whenever the flag is
119 and the flag is set to
121 just before the callback is invoked.
125 function is called to remove the specified Intrinsics signal handler. The
126 client should disable the source of the signal before calling
129 XtAppAddTimeOut(__libmansuffix__),XtAppAddInput(__libmansuffix__),XtAppAddWorkProc(__libmansuffix__)