Status XevieQueryVersion (Display *_d_p_y, int *_m_a_j_o_r___v_e_r_s_i_o_n_p, int *_m_i_n_o_r___v_e_r_s_i_o_n_p);
Status XevieStart (Display *_d_p_y_)_; _<_b_r_>_<_b_r_> _S_t_a_t_u_s _X_e_v_i_e_S_e_l_e_c_t_I_n_p_u_t _(_D_i_s_p_l_a_y _*_d_p_y_, _l_o_n_g _e_v_e_n_t___m_a_s_k_)_; _<_b_r_>_<_b_r_> _S_t_a_t_u_s _X_e_v_i_e_S_e_n_d_E_v_e_n_t _(_D_i_s_p_l_a_y _*_d_p_y_, _X_E_v_e_n_t _*_e_v_e_n_t_, _c_h_a_r _*_f_I_d_a_t_a_T_y_p_e_)_; _<_b_r_>_<_b_r_> _S_t_a_t_u_s _X_e_v_i_e_E_n_d _(_D_i_s_p_l_a_y _*_d_p_y_)_; _<_b_r_>_<_b_r_> _<_/_p_r_e_> _<_p_> _<_h_3 _i_d_=_"_A_R_G_U_M_E_N_T_S_"_> _A_R_G_U_M_E_N_T_S _<_/_h_3_> _<_d_l _c_o_m_p_a_c_t_> _<_d_t_> _<_b_>_d_i_s_p_l_a_y_<_/_b_> _S_p_e_c_i_f_i_e_s _t_h_e _c_o_n_n_e_c_t_i_o_n _t_o _t_h_e _X _s_e_r_v_e_r_. _<_d_d_> _<_d_t_> _<_b_>_e_v_e_n_t___m_a_s_k_<_/_b_> _S_p_e_c_i_f_i_e_s _t_h_e _m_a_s_k _o_f _e_v_e_n_t_s _t_o _r_e_d_i_r_e_c_t_. _<_d_d_> _<_d_t_> _<_b_>_d_a_t_a_t_y_p_e_<_/_b_> _<_p_> _<_d_d_> _X_E_V_I_E___M_O_D_I_F_I_E_D _o_r _X_E_V_I_E___U_N_M_O_D_I_F_I_E_D _- _w_h_e_t_h_e_r _t_h_e _X_e_v_i_e _c_l_i_e_n_t _h_a_s _c_h_a_n_g_e_d _o_r _s_y_n_t_h_e_s_i_s_e_d _t_h_i_s _e_v_e_n_t_. _<_p_> _<_/_d_l_> _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