src/filemanager/achown.c: cleanup.
[midnight-commander.git] / lib / tty / x11conn.h
blob774a800fd120550a11cc4cccdfaf3955a9a529b9
1 /** \file x11conn.h
2 * \brief Header: X11 support
3 * \warning This code uses setjmp() and longjmp(). Before you modify _anything_ here,
4 * please read the relevant sections of the C standard.
5 */
7 #ifndef MC__X11CONN_H
8 #define MC__X11CONN_H
11 This module provides support for some X11 functions. The functions
12 are loaded dynamically if GModule is available, and statically if
13 not. X11 session handling is somewhat robust. If there is an X11
14 error or a connection error, all further traffic to the X server
15 will be suppressed, and the functions will return reasonable default
16 values.
19 #include <X11/Xlib.h>
21 /*** typedefs(not structures) and defined constants **********************************************/
23 /*** enums ***************************************************************************************/
25 /*** structures declarations (and typedefs of structures)*****************************************/
27 /*** global variables defined in .c file *********************************************************/
29 /*** declarations of public functions ************************************************************/
31 extern Display *mc_XOpenDisplay (const char *);
32 extern int mc_XCloseDisplay (Display *);
34 extern Bool mc_XQueryPointer (Display *, Window, Window *, Window *,
35 int *, int *, int *, int *, unsigned int *);
37 /*** inline functions ****************************************************************************/
38 #endif