home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-bin / x11r6.1 / man / cat3 / xtremoveinput.0 < prev    next >
Encoding:
Text File  |  1996-10-17  |  3.1 KB  |  133 lines

  1.  
  2.  
  3.  
  4. XtAppAddInput(3Xt)       XT FUNCTIONS           XtAppAddInput(3Xt)
  5.  
  6.  
  7. NNAAMMEE
  8.        XtAppAddInput, XtRemoveInput - register and remove an
  9.        input source
  10.  
  11. SSYYNNTTAAXX
  12.        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,
  13.        _p_r_o_c, _c_l_i_e_n_t___d_a_t_a)
  14.          XtAppContext _a_p_p___c_o_n_t_e_x_t;
  15.          int _s_o_u_r_c_e;
  16.          XtPointer _c_o_n_d_i_t_i_o_n;
  17.          XtInputCallbackProc _p_r_o_c;
  18.          XtPointer _c_l_i_e_n_t___d_a_t_a;
  19.  
  20.        void XtRemoveInput(_i_d)
  21.          XtInputId _i_d;
  22.  
  23. AARRGGUUMMEENNTTSS
  24.        _a_p_p___c_o_n_t_e_x_t
  25.          Specifies the application context that identi-
  26.          fies the application.
  27.  
  28.        _c_l_i_e_n_t___d_a_t_a
  29.          Specifies the argument that is to be passed to
  30.          the specified procedure when input is available.
  31.  
  32.        _c_o_n_d_i_t_i_o_n Specifies the mask that indicates a read, write,
  33.          or exception condition or some operating system
  34.          dependent condition.
  35.  
  36.        _i_d     Specifies the ID returned from the corresponding
  37.          _X_t_A_p_p_A_d_d_I_n_p_u_t call.
  38.  
  39.        _p_r_o_c     Specifies the procedure that is to be called
  40.          when input is available.
  41.  
  42.        _s_o_u_r_c_e     Specifies the source file descriptor on a UNIX-
  43.          based system or other operating system dependent
  44.          device specification.
  45.  
  46. DDEESSCCRRIIPPTTIIOONN
  47.        The _X_t_A_p_p_A_d_d_I_n_p_u_t function registers with the Intrinsics
  48.        read routine a new source of events, which is usually file
  49.        input but can also be file output.  Note that file should
  50.        be loosely interpreted to mean any sink or source of data.
  51.        _X_t_A_p_p_A_d_d_I_n_p_u_t also specifies the conditions under which
  52.        the source can generate events.    When input is pending on
  53.        this source, the callback procedure is called.
  54.  
  55.        The legal values for the condition argument are operating-
  56.        system dependent.  On a UNIX-based system, the condition
  57.        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
  58.        _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
  59.        Intrinsics read routine to stop watching for input from
  60.        the input source.
  61.  
  62.  
  63.  
  64. X Version 11           Release 6.1                1
  65.  
  66.  
  67.  
  68.  
  69.  
  70. XtAppAddInput(3Xt)       XT FUNCTIONS           XtAppAddInput(3Xt)
  71.  
  72.  
  73. SSEEEE AALLSSOO
  74.        XtAppAddTimeOut(3Xt),XtAppAddSignal(3Xt)
  75.        _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
  76.        _X_l_i_b _- _C _L_a_n_g_u_a_g_e _X _I_n_t_e_r_f_a_c_e
  77.  
  78.  
  79. BBUUGGSS
  80.        In ANSI C it is necessary to cast the condition to an
  81.        XtPointer, e.g.:
  82.        XtAppAddInput(app_context,
  83.            source,
  84.            ((XXttPPooiinntteerr)) XtInputReadMask | XtInputWriteMask,
  85.            proc,
  86.            client_data);
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130. X Version 11           Release 6.1                2
  131.  
  132.  
  133.