NAME

XQueryExtension, XListExtensions, XFreeExtensionList - list available extensions

SYNTAX

Bool XQueryExtension(_d_i_s_p_l_a_y_, _n_a_m_e_, _m_a_j_o_r___o_p_c_o_d_e___r_e_t_u_r_n_, _f_i_r_s_t___e_v_e_n_t___r_e_t_u_r_n_, _f_i_r_s_t___e_r_r_o_r___r_e_t_u_r_n_) _c_h_a_r _*_*_X_L_i_s_t_E_x_t_e_n_s_i_o_n_s_(_d_i_s_p_l_a_y_, _n_e_x_t_e_n_s_i_o_n_s___r_e_t_u_r_n_) _X_F_r_e_e_E_x_t_e_n_s_i_o_n_L_i_s_t_(_l_i_s_t_) _<_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_>_n_a_m_e_<_/_b_> _S_p_e_c_i_f_i_e_s _t_h_e _e_x_t_e_n_s_i_o_n _n_a_m_e_. _<_d_d_> _<_d_t_> _<_b_>_m_a_j_o_r___o_p_c_o_d_e___r_e_t_u_r_n_<_/_b_> _R_e_t_u_r_n_s _t_h_e _m_a_j_o_r _o_p_c_o_d_e_. _<_d_d_> _<_d_t_> _<_b_>_f_i_r_s_t___e_v_e_n_t___r_e_t_u_r_n_<_/_b_> _R_e_t_u_r_n_s _t_h_e _f_i_r_s_t _e_v_e_n_t _c_o_d_e_, _i_f _a_n_y_. _<_d_d_> _<_d_t_> _<_b_>_f_i_r_s_t___e_r_r_o_r___r_e_t_u_r_n_<_/_b_> _R_e_t_u_r_n_s _t_h_e _f_i_r_s_t _e_r_r_o_r _c_o_d_e_, _i_f _a_n_y_. _<_d_d_> _<_d_t_> _<_b_>_n_e_x_t_e_n_s_i_o_n_s___r_e_t_u_r_n_<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