NAME

XcupQueryVersion - Returns TOG-CUP protocol version supported by the X server

SYNOPSIS


cccc [ _f_l_a_g ... ] _f_i_l_e ... -llXXeexxtt [ _l_i_b_r_a_r_y ... ]
#include 
Status XXccuuppQQuueerryyVVeerrssiioonn(Display *_d_i_s_p_l_a_y,
int *_m_a_j_o_r___v_e_r_s_i_o_n___r_e_t_u_r_n, int *_m_i_n_o_r___v_e_r_s_i_o_n___r_e_t_u_r_n);
     

ARGUMENTS

_d_i_s_p_l_a_y Specifies the connection to the X server
_m_a_j_o_r___v_e_r_s_i_o_n___r_e_t_u_r_n Returns the major version supported by the server
_m_i_n_o_r___v_e_r_s_i_o_n___r_e_t_u_r_n Returns the minor version supported by the server

DESCRIPTION

_X_c_u_p_Q_u_e_r_y_V_e_r_s_i_o_n sets major_version_return and minor_version_return to the major and minor TOG-CUP protocol version supported by the server. If the TOG-CUP library is compatible with the version returned by the server, it returns nonzero. If the server does not support the TOG-CUP extension, or if there was an error during communications with the server, or if the server and library protocol versions are incompatible, it returns zero. No other Xcup functions may be called before this function. If a client violates this rule, the effects of all subsequent Xcup calls that it makes are undefined.

To get the list of reserved colormap entries, use _X_c_u_p_G_e_t_R_e_s_e_r_v_e_d_C_o_l_o_r_m_a_p_E_n_t_r_i_e_s_.

To allocate one or more read-only color cells with RGB values, use _X_c_u_p_S_t_o_r_e_C_o_l_o_r_s_.

SEE ALSO

XcupGetReservedColormapEntries(3Xext), XcupStoreColors(3Xext),
_C_o_l_o_r_m_a_p _U_t_i_l_i_z_a_t_i_o_n _P_o_l_i_c_y _a_n_d _E_x_t_e_n_s_i_o_n