2009-02-05 21:28:18 +03:00
|
|
|
/** \file x11conn.h
|
|
|
|
* \brief Header: X11 support
|
|
|
|
* \warning This code uses setjmp() and longjmp(). Before you modify _anything_ here,
|
|
|
|
* please read the relevant sections of the C standard.
|
|
|
|
*/
|
|
|
|
|
2010-11-08 13:21:45 +03:00
|
|
|
#ifndef MC__X11CONN_H
|
|
|
|
#define MC__X11CONN_H
|
2005-03-10 12:44:36 +03:00
|
|
|
|
|
|
|
/*
|
|
|
|
This module provides support for some X11 functions. The functions
|
|
|
|
are loaded dynamically if GModule is available, and statically if
|
|
|
|
not. X11 session handling is somewhat robust. If there is an X11
|
|
|
|
error or a connection error, all further traffic to the X server
|
|
|
|
will be suppressed, and the functions will return reasonable default
|
|
|
|
values.
|
2010-11-08 13:21:45 +03:00
|
|
|
*/
|
2005-03-10 12:44:36 +03:00
|
|
|
|
|
|
|
#include <X11/Xlib.h>
|
|
|
|
|
2010-11-08 13:21:45 +03:00
|
|
|
/*** typedefs(not structures) and defined constants **********************************************/
|
|
|
|
|
|
|
|
/*** enums ***************************************************************************************/
|
|
|
|
|
|
|
|
/*** structures declarations (and typedefs of structures)*****************************************/
|
|
|
|
|
|
|
|
/*** global variables defined in .c file *********************************************************/
|
|
|
|
|
|
|
|
/*** declarations of public functions ************************************************************/
|
|
|
|
|
2005-03-10 12:44:36 +03:00
|
|
|
extern Display *mc_XOpenDisplay (const char *);
|
|
|
|
extern int mc_XCloseDisplay (Display *);
|
|
|
|
|
|
|
|
extern Bool mc_XQueryPointer (Display *, Window, Window *, Window *,
|
2009-09-17 02:07:04 +04:00
|
|
|
int *, int *, int *, int *, unsigned int *);
|
2005-03-10 12:44:36 +03:00
|
|
|
|
2010-11-08 13:21:45 +03:00
|
|
|
/*** inline functions ****************************************************************************/
|
2005-03-10 12:44:36 +03:00
|
|
|
#endif
|