mc/src/x11conn.h
Roland Illig 13a63f21c9 * x11conn.c: Separated X11 connection handling from key.c. Added
error handling for X11 errors and connection errors.
	* x11conn.h: The interface for x11conn.h.
	* key.c: Now using the x11conn code.
	* Makefile.am: Added x11conn.{h,c}.
2005-03-10 09:44:36 +00:00

22 lines
647 B
C

#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