XtRemoveInput(3)


HOME

XtAppAddInput

NAME
SYNTAX
ARGUMENTS
DESCRIPTION
SEE ALSO
BUGS

NAME

XtAppAddInput, XtRemoveInput − register and remove an input source

SYNTAX

XtInputId XtAppAddInput(XtAppContext app_context, int source, XtPointer condition, XtInputCallbackProc proc, XtPointer client_data);

void XtRemoveInput(XtInputId id);

ARGUMENTS

app_context

Specifies the application context that identifies the application.

client_data

Specifies the argument that is to be passed to the specified procedure when input is available.

condition

Specifies the mask that indicates a read, write, or exception condition or some operating system dependent condition.

id

Specifies the ID returned from the corresponding XtAppAddInput call.

proc

Specifies the procedure that is to be called when input is available.

source

Specifies the source file descriptor on a UNIX-based system or other operating system dependent device specification.

DESCRIPTION

The XtAppAddInput function registers with the Intrinsics read routine a new source of events, which is usually file input but can also be file output. Note that file should be loosely interpreted to mean any sink or source of data. XtAppAddInput also specifies the conditions under which the source can generate events. When input is pending on this source, the callback procedure is called.

The legal values for the condition argument are operating-system dependent. On a UNIX-based system, the condition is some union of XtInputReadMask, XtInputWriteMask, and XtInputExceptMask. The XtRemoveInput function causes the Intrinsics read routine to stop watching for input from the input source.

SEE ALSO

XtAppAddTimeOut(3Xt),XtAppAddSignal(3Xt)
X Toolkit Intrinsics − C Language Interface
Xlib − C Language X Interface

BUGS

In ANSI C it is necessary to cast the condition to an XtPointer, e.g.:

XtAppAddInput(app_context,

source,
(XtPointer)
(XtInputReadMask | XtInputWriteMask),
proc,
client_data);



More Linux Commands

manpages/mdadm.conf.5.html
mdadm.conf(5) - configuration for management of Software RAI
mdadm is a tool for creating, managing, and monitoring RAID devices using the md driver in Linux. Some common tasks, such as assembling all arrays, can be simpl

manpages/Tcl_AppInit.3.html
Tcl_AppInit(3) - perform application-specific initialization
Tcl_AppInit is a hook procedure that is invoked by the main programs for Tcl applications such as tclsh and wish. Its purpose is to allow new Tcl applications t

manpages/mitem_userptr.3menu.html
mitem_userptr(3menu) - associate application data with a men
Every menu item has a field that can be used to hold application-specific data (that is, the menu-driver code leaves it alone). These functions get and set that

manpages/gij-4.6.1.html
gij-4.6(1) - GNU interpreter for Java bytecode (Man Page)...
gij is a Java bytecode interpreter included with libgcj. gij is not available on every platform; porting it requires a small amount of assembly programming whic

manpages/menu_hook.3menu.html
menu_hook(3menu) - set hooks for automatic invocation by app
These functions make it possible to set hook functions to be called at various points in the automatic processing of input event codes by menu_driver. The funct

manpages/clnt_spcreateerror.3.html
clnt_spcreateerror(3) - library routines for remote procedur
These routines allow C programs to make procedure calls on other machines across the network. First, the client calls a procedure to send a data packet to the s

manpages/mbchk.1.html
mbchk(1) - check the format of a Multiboot kernel (ManPage)
Check if the format of FILE complies with the Multiboot Specification. -q, --quiet suppress all normal output -h, --help display this help and exit -v, --versio

manpages/sqlite_table.5.html
sqlite_table(5) - Postfix SQLite configuration (Man Page)...
sqlite_table.5 - The Postfix mail system uses optional tables for address rewriting or mail routing. These tables are usually in dbm or db format. Alternatively

manpages/XIGrabKeycode.3.html
XIGrabKeycode(3) - grab/ungrab buttons or keys (Man Page)...
XIGrabButton and XIGrabKeycode establishes a passive grab. The modifier device for a button grab is the paired master device if deviceid specifies a master poin

manpages/current_field.3form.html
current_field(3form) - set and get form page number.........
current_field.3form - The function set_current field sets the current field of the given form; current_field returns the current field of the given form. The fu

manpages/xclock.1.html
xclock(1) - analog / digital clock for X - Linux man page...
The xclock program displays the time in analog or digital form. The time is continuously updated at a frequency which may be specified by the user. OPTIONS Xclo

manpages/audispd.8.html
audispd(8) an event multiplexor (Admin - Linux man page)....
audispd is an audit event multiplexor. It has to be started by the audit daemon in order to get events. It takes audit events and distributes them to child prog





We can't live, work or learn in freedom unless the software we use is free.