


XtAppAddInput(3Xt)					   XtAppAddInput(3Xt)
X11R5									X11R5



NAME
  XtAppAddInput, XtRemoveInput - register and remove an	input source

SYNTAX
  XtInputId XtAppAddInput(_a_p_p__c_o_n_t_e_x_t, _s_o_u_r_c_e, _c_o_n_d_i_t_i_o_n, _p_r_o_c,	_c_l_i_e_n_t__d_a_t_a)
	XtAppContext _a_p_p__c_o_n_t_e_x_t;
	int _s_o_u_r_c_e;
	XtPointer _c_o_n_d_i_t_i_o_n;
	XtInputCallbackProc _p_r_o_c;
	XtPointer _c_l_i_e_n_t__d_a_t_a;

  void XtRemoveInput(_i_d)
	XtInputId _i_d;

ARGUMENTS

  _a_p_p__c_o_n_t_e_x_t
	    Specifies the application context that identifies the applica-
	    tion.

  _c_l_i_e_n_t__d_a_t_a
	    Specifies the argument that	is to be passed	to the specified pro-
	    cedure when	input is available.

  _c_o_n_d_i_t_i_o_n Specifies the mask that indicates a	read, write, or	exception
	    condition or some operating	system dependent condition.

  _i_d	    Specifies the ID returned from the corresponding _X_t_A_p_p_A_d_d_I_n_p_u_t
	    call.

  _p_r_o_c	    Specifies the procedure that is to be called when input is avail-
	    able.

  _s_o_u_r_c_e    Specifies the source file descriptor on a UNIX-based system	or
	    other operating system dependent device specification.

DESCRIPTION
  The _X_t_A_p_p_A_d_d_I_n_p_u_t 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.	 _X_t_A_p_p_A_d_d_I_n_p_u_t 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 _X_t_I_n_p_u_t_R_e_a_d_M_a_s_k,
  _X_t_I_n_p_u_t_W_r_i_t_e_M_a_s_k, and	_X_t_I_n_p_u_t_E_x_c_e_p_t_M_a_s_k.  The	_X_t_R_e_m_o_v_e_I_n_p_u_t function causes
  the Intrinsics read routine to stop watching for input from the input
  source.



SEE ALSO
  XtAppAddTimeOut(3Xt)
  _X _T_o_o_l_k_i_t _I_n_t_r_i_n_s_i_c_s - _C _L_a_n_g_u_a_g_e _I_n_t_e_r_f_a_c_e
  _X_l_i_b - _C _L_a_n_g_u_a_g_e _X _I_n_t_e_r_f_a_c_e


