home *** CD-ROM | disk | FTP | other *** search
/ PC User 2001 August / APC_Aug2001_CD2.iso / features / j2sdk / files / linux / j2sdklin.bin / jdk1.3.1 / include-old / dll.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-05-06  |  884 b   |  36 lines

  1. /*
  2.  * @(#)dll.h    1.5 00/02/02
  3.  *
  4.  * Copyright 1994-2000 Sun Microsystems, Inc. All Rights Reserved.
  5.  * 
  6.  * This software is the proprietary information of Sun Microsystems, Inc.  
  7.  * Use is subject to license terms.
  8.  * 
  9.  */
  10.  
  11. #ifndef _JAVASOFT_DLL_H_
  12. #define _JAVASOFT_DLL_H_
  13.  
  14. #include <jni.h>
  15.  
  16. /* DLL.H: A common interface for helper DLLs loaded by the VM.
  17.  * Each library exports the main entry point "DLL_Initialize". Through
  18.  * that function the programmer can obtain a function pointer which has
  19.  * type "GetInterfaceFunc." Through the function pointer the programmer
  20.  * can obtain other interfaces supported in the DLL.
  21.  */
  22. #ifdef __cplusplus
  23. extern "C" {
  24. #endif
  25.  
  26. typedef jint (JNICALL * GetInterfaceFunc)
  27.        (void **intfP, const char *name, jint ver);
  28.  
  29. jint JNICALL DLL_Initialize(GetInterfaceFunc *, void *args);
  30.  
  31. #ifdef __cplusplus
  32. }
  33. #endif
  34.  
  35. #endif /* !_JAVASOFT_DLL_H_ */
  36.