Bool XineramaQueryExtension (Display *_d_p_y, int *_e_v_e_n_t___b_a_s_e_p, int *_e_r_r_o_r___b_a_s_e_p);
Status XineramaQueryVersion (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);
Bool XineramaIsActive (Display *_d_p_y);
XineramaScreenInfo * XineramaQueryScreens (Display *_d_p_y, int *_n_u_m_b_e_r);
The XineramaQueryExtension function queries the Xserver to determine the
availability of the Xinerama Extension. If the extension is available, the
return value is True, and event_base and error_base are set to the base event
number and base error number for the extension, respectively. Otherwise, the
return value is False, and the values of event_base and error_base are
undefined.
The XineramaQueryVersion function returns the version of the Xinerama extension implemented by the Xserver. The version is returned in major_versionp and minor_versionp. The major version will be incremented for protocol incompatible changes, and the minor version will be incremented for small, upwardly compatible changes.
If the Xinerama library is compatible with the version returned by the
server, it returns nonzero. If the server does not support the
XINERAMA 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.
The XineramaIsActive function returns a Boolean operator used to determine if
Xinerama is activated on the screen. Returns True for active and False for
not active.
The XXiinneerraammaaQQuueerryySSccrreeeennss(()) function returns info about each individual output device within the Xinerama Screen. The integer pointed to by the _n_u_m_b_e_r argument is updated to the number of output devices listed in the returned array of _X_i_n_e_r_a_m_a_S_c_r_e_e_n_I_n_f_o structures. XXiinneerraammaaQQuueerryySSccrreeeennss(()) returns NULL and sets _n_u_m_b_e_r to 0 if Xinerama is not active.
The pointer returned should be released with XFree(3)
when no longer needed.