mc/lib/tty/x11conn.h
Slava Zanko 4f11e4b665 Massive moved some dirs from $(srcdir)/src into $(srcdir)/lib
Moved subdirs:
 * filehighlight
 * mcconfig
 * search
 * skin
 * tty

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-01-26 10:30:22 +02:00

29 lines
877 B
C

/** \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.
*/
#ifndef MC_X11CONN_H
#define MC_X11CONN_H
/*
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.
*/
#include <X11/Xlib.h>
extern Display *mc_XOpenDisplay (const char *);
extern int mc_XCloseDisplay (Display *);
extern Bool mc_XQueryPointer (Display *, Window, Window *, Window *,
int *, int *, int *, int *, unsigned int *);
#endif