root/lib/tty/x11conn.h

/* [previous][next][first][last][top][bottom][index][help]  */

INCLUDED FROM


   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 
   7 #ifndef MC__X11CONN_H
   8 #define MC__X11CONN_H
   9 
  10 /*
  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.
  17  */
  18 
  19 #include <X11/Xlib.h>
  20 
  21 /*** typedefs(not structures) and defined constants **********************************************/
  22 
  23 /*** enums ***************************************************************************************/
  24 
  25 /*** structures declarations (and typedefs of structures)*****************************************/
  26 
  27 /*** global variables defined in .c file *********************************************************/
  28 
  29 /*** declarations of public functions ************************************************************/
  30 
  31 extern Display *mc_XOpenDisplay (const char *displayname);
  32 extern int mc_XCloseDisplay (Display * display);
  33 
  34 extern Bool mc_XQueryPointer (Display * display, Window win, Window * root_return,
  35                               Window * child_return, int *root_x_return, int *root_y_return,
  36                               int *win_x_return, int *win_y_return, unsigned int *mask_return);
  37 
  38 /*** inline functions ****************************************************************************/
  39 
  40 #endif /* MC__X11CONN_H */

/* [previous][next][first][last][top][bottom][index][help]  */