1 /* Copyright (C) 2005-2011 Fabio Riccardi */
2 
3 /**
4  * JavaAppLauncher: a simple Java application launcher for Windows.
5  * JavaParamBlock.h
6  *
7  * Paul J. Lucas [paul@lightcrafts.com]
8  */
9 
10 #ifndef JavaParamBlock_H
11 #define JavaParamBlock_H
12 
13 // standard
14 #include <jni.h>
15 
16 struct JavaParamBlock {
17     /**
18      * This is the signature of the JNI_CreateJavaVM() function.
19      */
20     typedef jint (JNICALL *CreateJavaVM_t)(JavaVM**, void**, void*);
21 
22     /////////////// Input
23 
24     CreateJavaVM_t  CreateJavaVM_func;
25     JavaVMInitArgs  jvm_args;
26     char*           main_className;
27     int             main_argc;
28     char**          main_argv;
29 
30     /////////////// Output
31 
32     jclass          main_class;
33 };
34 
35 /**
36  * Initialize the given JavaParamBlock.
37  */
38 void initJavaParamBlock( JavaParamBlock*, char const *const jvmArgs[] );
39 
40 #endif  /* JavaParamBlock_H */
41 /* vim:set et sw=4 ts=4: */
42