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