1XtAppAddInput(3x)                XT FUNCTIONS                XtAppAddInput(3x)
2
3
4

NAME

6       XtAppAddInput, XtRemoveInput - register and remove an input source
7

SYNTAX

9       XtInputId XtAppAddInput(XtAppContext app_context, int source, XtPointer
10              condition, XtInputCallbackProc proc, XtPointer client_data);
11
12       void XtRemoveInput(XtInputId id);
13

ARGUMENTS

15       app_context
16                 Specifies the application context that identifies the appli‐
17                 cation.
18
19       client_data
20                 Specifies the argument that is to be passed to the specified
21                 procedure when input is available.
22
23       condition Specifies the mask that indicates a read, write, or exception
24                 condition or some operating system dependent condition.
25
26       id        Specifies the ID returned from the corresponding XtAppAdd‐
27                 Input call.
28
29       proc      Specifies the procedure that is to be called when input is
30                 available.
31
32       source    Specifies the source file descriptor on a UNIX-based system
33                 or other operating system dependent device specification.
34

DESCRIPTION

36       The XtAppAddInput function registers with the Intrinsics read routine a
37       new source of events, which is usually file input but can also be file
38       output.  Note that file should be loosely interpreted to mean any sink
39       or source of data.  XtAppAddInput also specifies the conditions under
40       which the source can generate events.  When input is pending on this
41       source, the callback procedure is called.
42
43       The legal values for the condition argument are operating-system depen‐
44       dent.  On a UNIX-based system, the condition is some union of XtInpu‐
45       tReadMask, XtInputWriteMask, and XtInputExceptMask.  The XtRemoveInput
46       function causes the Intrinsics read routine to stop watching for input
47       from the input source.
48

SEE ALSO

50       XtAppAddTimeOut(3Xt),XtAppAddSignal(3Xt)
51       X Toolkit Intrinsics - C Language Interface
52       Xlib - C Language X Interface
53

BUGS

55       In ANSI C it is necessary to cast the condition to an XtPointer, e.g.:
56           XtAppAddInput(app_context,
57               source,
58               (XtPointer) (XtInputReadMask | XtInputWriteMask),
59               proc,
60               client_data);
61
62
63
64X Version 11                      libXt 1.0.4                XtAppAddInput(3x)
Impressum