NAME

XGetExtensionVersion - query the version of the input extension.

SYNTAX

XExtensionVersion *XGetExtensionVersion(Display *_d_i_s_p_l_a_y, char *_n_a_m_e);

ARGUMENTS

display
Specifies the connection to the X server.
name
Specifies the extension to be queried. The input extension name is defined in the header file _X_I_._h.

DESCRIPTION

The _X_G_e_t_E_x_t_e_n_s_i_o_n_V_e_r_s_i_o_n request queries the version of the input extension, and returns an _X_E_x_t_e_n_s_i_o_n_V_e_r_s_i_o_n structure. This structure contains a major_version and minor_version number which can be compared with constants defined in _X_I_._h. Support for additional protocol requests added to the input extension after its initial release is indicated by a version number corresponding to the added requests. Each version contains all the protocol requests contained by previous versions.

You should use _X_F_r_e_e to free the _X_E_x_t_e_n_s_i_o_n_V_e_r_s_i_o_n structure.

STRUCTURES

This request returns an XExtensionVersion structure.
typedef struct {
        int     present;
        short   major_version;
        short   minor_version;
} XExtensionVersion;

DIAGNOSTICS

none

SEE ALSO


_P_r_o_g_r_a_m_m_i_n_g _W_i_t_h _X_l_i_b