src/share/vm/prims/hpi_imported.h

Print this page


   1 /*
   2  * Copyright (c) 1998, 2005, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 





  25 /*
  26  * HotSpot integration note:
  27  *
  28  * This is a consolidation of these two files:
  29  *      src/share/hpi/export/hpi.h      1.15  99/06/18  JDK1.3 beta build I
  30  *      src/share/hpi/export/dll.h      1.3   98/09/15  JDK1.3 beta build I
  31  * from the classic VM.
  32  *
  33  * bool_t is a type in the classic VM, and we define it here,
  34  * but in the future this should be a jboolean.
  35  *
  36  * The files are included verbatim expect for local includes removed from hpi.h.
  37  */
  38 
  39 #ifndef _JAVASOFT_HPI_H_
  40 #define _JAVASOFT_HPI_H_
  41 
  42 #ifdef __cplusplus
  43 extern "C" {
  44 #endif


 298 } HPI_SocketInterface;
 299 
 300 /*
 301  * callbacks.
 302  */
 303 typedef struct vm_calls {
 304     int    (*jio_fprintf)(FILE *fp, const char *fmt, ...);
 305     void   (*panic)(const char *fmt, ...);
 306     void   (*monitorRegister)(sys_mon_t *mid, char *info_str);
 307 
 308     void   (*monitorContendedEnter)(sys_thread_t *self, sys_mon_t *mid);
 309     void   (*monitorContendedEntered)(sys_thread_t *self, sys_mon_t *mid);
 310     void   (*monitorContendedExit)(sys_thread_t *self, sys_mon_t *mid);
 311 } vm_calls_t;
 312 
 313 #ifdef __cplusplus
 314 }
 315 #endif
 316 
 317 #endif /* !_JAVASOFT_HPI_H_ */


   1 /*
   2  * Copyright (c) 1998, 2010, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #ifndef SHARE_VM_PRIMS_HPI_IMPORTED_H
  26 #define SHARE_VM_PRIMS_HPI_IMPORTED_H
  27 
  28 #include "prims/jni.h"
  29 
  30 /*
  31  * HotSpot integration note:
  32  *
  33  * This is a consolidation of these two files:
  34  *      src/share/hpi/export/hpi.h      1.15  99/06/18  JDK1.3 beta build I
  35  *      src/share/hpi/export/dll.h      1.3   98/09/15  JDK1.3 beta build I
  36  * from the classic VM.
  37  *
  38  * bool_t is a type in the classic VM, and we define it here,
  39  * but in the future this should be a jboolean.
  40  *
  41  * The files are included verbatim expect for local includes removed from hpi.h.
  42  */
  43 
  44 #ifndef _JAVASOFT_HPI_H_
  45 #define _JAVASOFT_HPI_H_
  46 
  47 #ifdef __cplusplus
  48 extern "C" {
  49 #endif


 303 } HPI_SocketInterface;
 304 
 305 /*
 306  * callbacks.
 307  */
 308 typedef struct vm_calls {
 309     int    (*jio_fprintf)(FILE *fp, const char *fmt, ...);
 310     void   (*panic)(const char *fmt, ...);
 311     void   (*monitorRegister)(sys_mon_t *mid, char *info_str);
 312 
 313     void   (*monitorContendedEnter)(sys_thread_t *self, sys_mon_t *mid);
 314     void   (*monitorContendedEntered)(sys_thread_t *self, sys_mon_t *mid);
 315     void   (*monitorContendedExit)(sys_thread_t *self, sys_mon_t *mid);
 316 } vm_calls_t;
 317 
 318 #ifdef __cplusplus
 319 }
 320 #endif
 321 
 322 #endif /* !_JAVASOFT_HPI_H_ */
 323 
 324 #endif // SHARE_VM_PRIMS_HPI_IMPORTED_H