x11conn.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. */
  6. #ifndef MC__X11CONN_H
  7. #define MC__X11CONN_H
  8. /*
  9. This module provides support for some X11 functions. The functions
  10. are loaded dynamically if GModule is available, and statically if
  11. not. X11 session handling is somewhat robust. If there is an X11
  12. error or a connection error, all further traffic to the X server
  13. will be suppressed, and the functions will return reasonable default
  14. values.
  15. */
  16. #include <X11/Xlib.h>
  17. /*** typedefs(not structures) and defined constants **********************************************/
  18. /*** enums ***************************************************************************************/
  19. /*** structures declarations (and typedefs of structures)*****************************************/
  20. /*** global variables defined in .c file *********************************************************/
  21. /*** declarations of public functions ************************************************************/
  22. extern Display *mc_XOpenDisplay (const char *);
  23. extern int mc_XCloseDisplay (Display *);
  24. extern Bool mc_XQueryPointer (Display *, Window, Window *, Window *,
  25. int *, int *, int *, int *, unsigned int *);
  26. /*** inline functions ****************************************************************************/
  27. #endif