x11conn.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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 *displayname);
  23. extern int mc_XCloseDisplay (Display * display);
  24. extern Bool mc_XQueryPointer (Display * display, Window win, Window * root_return,
  25. Window * child_return, int *root_x_return, int *root_y_return,
  26. int *win_x_return, int *win_y_return, unsigned int *mask_return);
  27. /*** inline functions ****************************************************************************/
  28. #endif /* MC__X11CONN_H */