src/solaris/native/sun/awt/awt_GraphicsEnv.h

Print this page




  25 
  26 #ifndef _AWT_GRAPHICSENV_H_
  27 #define _AWT_GRAPHICSENV_H_
  28 
  29 #include <jni_util.h>
  30 
  31 #ifndef HEADLESS
  32 #define MITSHM
  33 #endif /* !HEADLESS */
  34 
  35 #define UNSET_MITSHM (-2)
  36 #define NOEXT_MITSHM (-1)
  37 #define CANT_USE_MITSHM (0)
  38 #define CAN_USE_MITSHM (1)
  39 
  40 #ifdef MITSHM
  41 
  42 #include <sys/ipc.h>
  43 #include <sys/shm.h>
  44 #include <X11/extensions/XShm.h>




  45 
  46 extern int XShmQueryExtension();
  47 
  48 void TryInitMITShm(JNIEnv *env, jint *shmExt, jint *shmPixmaps);
  49 void resetXShmAttachFailed();
  50 jboolean isXShmAttachFailed();
  51 
  52 #endif /* MITSHM */
  53 
  54 /* fieldIDs for X11GraphicsConfig fields that may be accessed from C */
  55 struct X11GraphicsConfigIDs {
  56     jfieldID aData;
  57     jfieldID bitsPerPixel;
  58     jfieldID screen;
  59 };
  60 
  61 /* fieldIDs for X11GraphicsDevice fields that may be accessed from C */
  62 struct X11GraphicsDeviceIDs {
  63     jfieldID screen;
  64 };


  25 
  26 #ifndef _AWT_GRAPHICSENV_H_
  27 #define _AWT_GRAPHICSENV_H_
  28 
  29 #include <jni_util.h>
  30 
  31 #ifndef HEADLESS
  32 #define MITSHM
  33 #endif /* !HEADLESS */
  34 
  35 #define UNSET_MITSHM (-2)
  36 #define NOEXT_MITSHM (-1)
  37 #define CANT_USE_MITSHM (0)
  38 #define CAN_USE_MITSHM (1)
  39 
  40 #ifdef MITSHM
  41 
  42 #include <sys/ipc.h>
  43 #include <sys/shm.h>
  44 #include <X11/extensions/XShm.h>
  45 #ifndef X_ShmAttach
  46 #include <X11/Xmd.h>
  47 #include <X11/extensions/shmproto.h>
  48 #endif
  49 
  50 extern int XShmQueryExtension();
  51 
  52 void TryInitMITShm(JNIEnv *env, jint *shmExt, jint *shmPixmaps);
  53 void resetXShmAttachFailed();
  54 jboolean isXShmAttachFailed();
  55 
  56 #endif /* MITSHM */
  57 
  58 /* fieldIDs for X11GraphicsConfig fields that may be accessed from C */
  59 struct X11GraphicsConfigIDs {
  60     jfieldID aData;
  61     jfieldID bitsPerPixel;
  62     jfieldID screen;
  63 };
  64 
  65 /* fieldIDs for X11GraphicsDevice fields that may be accessed from C */
  66 struct X11GraphicsDeviceIDs {
  67     jfieldID screen;
  68 };