< prev index next >

src/java.desktop/unix/native/common/awt/awt.h

Print this page




  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 /*
  27  * Common AWT definitions
  28  */
  29 
  30 #ifndef _AWT_
  31 #define _AWT_
  32 
  33 #include "jvm.h"
  34 #include "jni_util.h"
  35 #include "debug_util.h"
  36 
  37 #if !defined(HEADLESS) && !defined(MACOSX)
  38 #include <X11/Intrinsic.h>



  39 #endif /* !HEADLESS && !MACOSX */
  40 
  41 
  42 /* The JVM instance: defined in awt_MToolkit.c */
  43 extern JavaVM *jvm;
  44 
  45 extern jclass tkClass;
  46 extern jmethodID awtLockMID;
  47 extern jmethodID awtUnlockMID;
  48 extern jmethodID awtWaitMID;
  49 extern jmethodID awtNotifyMID;
  50 extern jmethodID awtNotifyAllMID;
  51 extern jboolean awtLockInited;
  52 
  53 /* Perform sanity and consistency checks on AWT locking */
  54 #ifdef DEBUG
  55 #define DEBUG_AWT_LOCK
  56 #endif
  57 
  58 /*




  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 /*
  27  * Common AWT definitions
  28  */
  29 
  30 #ifndef _AWT_
  31 #define _AWT_
  32 
  33 #include "jvm.h"
  34 #include "jni_util.h"
  35 #include "debug_util.h"
  36 
  37 #if !defined(HEADLESS) && !defined(MACOSX)
  38 #include <X11/Xlib.h>
  39 #include <X11/Xutil.h>
  40 typedef char Boolean;
  41 typedef unsigned long Pixel;
  42 #endif /* !HEADLESS && !MACOSX */
  43 
  44 
  45 /* The JVM instance: defined in awt_MToolkit.c */
  46 extern JavaVM *jvm;
  47 
  48 extern jclass tkClass;
  49 extern jmethodID awtLockMID;
  50 extern jmethodID awtUnlockMID;
  51 extern jmethodID awtWaitMID;
  52 extern jmethodID awtNotifyMID;
  53 extern jmethodID awtNotifyAllMID;
  54 extern jboolean awtLockInited;
  55 
  56 /* Perform sanity and consistency checks on AWT locking */
  57 #ifdef DEBUG
  58 #define DEBUG_AWT_LOCK
  59 #endif
  60 
  61 /*


< prev index next >