home *** CD-ROM | disk | FTP | other *** search
-
-
-
- XAddConnectionWatch(3X11) XLIB FUNCTIONSXAddConnectionWatch(3X11)
-
-
- NNAAMMEE
- XAddConnectionWatch, XRemoveConnectionWatch, XProcessIn-
- ternalConnection, XInternalConnectionNumbers - handle Xlib
- internal connections
-
- SSYYNNTTAAXX
- typedef void (*XConnectionWatchProc)(_d_i_s_p_l_a_y, _c_l_i_e_n_t___d_a_t_a,
- _f_d, _o_p_e_n_i_n_g, _w_a_t_c_h___d_a_t_a)
- Display *_d_i_s_p_l_a_y;
- XPointer _c_l_i_e_n_t___d_a_t_a;
- int _f_d;
- Bool _o_p_e_n_i_n_g;
- XPointer *_w_a_t_c_h___d_a_t_a;
-
- Status XAddConnectionWatch(_d_i_s_p_l_a_y, _p_r_o_c_e_d_u_r_e,
- _c_l_i_e_n_t___d_a_t_a)
- Display *_d_i_s_p_l_a_y;
- XWatchProc _p_r_o_c_e_d_u_r_e;
- XPointer _c_l_i_e_n_t___d_a_t_a;
-
- Status XRemoveConnectionWatch(_d_i_s_p_l_a_y, _p_r_o_c_e_d_u_r_e,
- _c_l_i_e_n_t___d_a_t_a)
- Display *_d_i_s_p_l_a_y;
- XWatchProc _p_r_o_c_e_d_u_r_e;
- XPointer _c_l_i_e_n_t___d_a_t_a;
-
- void XProcessInternalConnection(_d_i_s_p_l_a_y, _f_d)
- Display *_d_i_s_p_l_a_y;
- int _f_d;
-
- void XProcessInternalConnection(_d_i_s_p_l_a_y, _f_d)
- Display *_d_i_s_p_l_a_y;
- int _f_d;
-
- Status XInternalConnectionNumbers(_d_i_s_p_l_a_y, _f_d___r_e_t_u_r_n,
- _c_o_u_n_t___r_e_t_u_r_n)
- Display *_d_i_s_p_l_a_y;
- int **_f_d___r_e_t_u_r_n;
- int *_c_o_u_n_t___r_e_t_u_r_n;
-
- AARRGGUUMMEENNTTSS
- _c_l_i_e_n_t___d_a_t_a
- Specifies the additional client data.
-
- _c_o_u_n_t___r_e_t_u_r_n
- Returns the number of file descriptors.
-
- _d_i_s_p_l_a_y Specifies the connection to the X server.
-
- _f_d Specifies the file descriptor.
-
- _f_d___r_e_t_u_r_n Returns the file descriptors.
-
- _p_r_o_c_e_d_u_r_e Specifies the procedure to be called.
-
-
-
- X Version 11 Release 6.1 1
-
-
-
-
-
- XAddConnectionWatch(3X11) XLIB FUNCTIONSXAddConnectionWatch(3X11)
-
-
- DDEESSCCRRIIPPTTIIOONN
- The _X_A_d_d_C_o_n_n_e_c_t_i_o_n_W_a_t_c_h function registers a procedure to
- be called each time Xlib opens or closes an internal con-
- nection for the specified display. The procedure is
- passed the display, the specified client_data, the file
- descriptor for the connection, a Boolean indicating
- whether the connection is being opened or closed, and a
- pointer to a location for private watch data. If opening
- is _T_r_u_e, the procedure can store a pointer to private data
- in the location pointed to by watch_data; when the proce-
- dure is later called for this same connection and opening
- is _F_a_l_s_e, the location pointed to by watch_data will hold
- this same private data pointer.
-
- This function can be called at any time after a display is
- opened. If internal connections already exist, the regis-
- tered procedure will immediately be called for each of
- them, before _X_A_d_d_C_o_n_n_e_c_t_i_o_n_W_a_t_c_h returns. _X_A_d_d_C_o_n_n_e_c_t_i_o_n_-
- _W_a_t_c_h returns a nonzero status if the procedure is suc-
- cessfully registered; otherwise, it returns zero.
-
- The registered procedure should not call any Xlib func-
- tions. If the procedure directly or indirectly causes the
- state of internal connections or watch procedures to
- change, the result is not defined. If Xlib has been ini-
- tialized for threads, the procedure is called with the
- display locked and the result of a call by the procedure
- to any Xlib function that locks the display is not defined
- unless the executing thread has externally locked the dis-
- play using _X_L_o_c_k_D_i_s_p_l_a_y.
-
- The _X_R_e_m_o_v_e_C_o_n_n_e_c_t_i_o_n_W_a_t_c_h function removes a previously
- registered connection watch procedure. The client_data
- must match the client_data used when the procedure was
- initially registered.
-
-
- The _X_P_r_o_c_e_s_s_I_n_t_e_r_n_a_l_C_o_n_n_e_c_t_i_o_n function processes input
- available on an internal connection. This function should
- be called for an internal connection only after an operat-
- ing system facility (for example, _s_e_l_e_c_t or _p_o_l_l) has
- indicated that input is available; otherwise, the effect
- is not defined.
-
- The _X_P_r_o_c_e_s_s_I_n_t_e_r_n_a_l_C_o_n_n_e_c_t_i_o_n function processes input
- available on an internal connection. This function should
- be called for an internal connection only after an operat-
- ing system facility (for example, _s_e_l_e_c_t or _p_o_l_l) has
- indicated that input is available; otherwise, the effect
- is not defined.
-
- The _X_I_n_t_e_r_n_a_l_C_o_n_n_e_c_t_i_o_n_N_u_m_b_e_r_s function returns a list of
- the file descriptors for all internal connections cur-
- rently open for the specified display. When the allocated
-
-
-
- X Version 11 Release 6.1 2
-
-
-
-
-
- XAddConnectionWatch(3X11) XLIB FUNCTIONSXAddConnectionWatch(3X11)
-
-
- list is no longer needed, free it by using _X_F_r_e_e. This
- functions returns a nonzero status if the list is success-
- fully allocated; otherwise, it returns zero.
-
- SSEEEE AALLSSOO
- _X_l_i_b _- _C _L_a_n_g_u_a_g_e _X _I_n_t_e_r_f_a_c_e
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- X Version 11 Release 6.1 3
-
-
-