1 #ifndef _XBT_JCONTEXT_H
\r
2 #define _XBT_JCONTEXT_H
\r
4 #include <jni.h> /* use java native interface to bind the msg structures to the java instances */
\r
5 #include "portable.h"
\r
6 #include "xbt/misc.h"
\r
8 #ifndef _XBT_CONTEXT_PRIVATE_H
\r
9 #include "xbt_context_private.h"
\r
10 #endif /* _XBT_CONTEXT_PRIVATE_H */
\r
14 #ifndef _XBT_CONTEXT_FACTORY_T_DEFINED
\r
15 typedef struct s_xbt_context_factory* xbt_context_factory_t;
\r
16 #define _XBT_CONTEXT_FACTORY_T_DEFINED
\r
17 #endif /* !_XBT_CONTEXT_FACTORY_T_DEFINED */
\r
19 typedef struct s_xbt_jcontext
\r
22 jobject jprocess; /* the java process instance binded with the msg process structure */
\r
23 JNIEnv* jenv; /* jni interface pointer associated to this thread */
\r
24 }s_xbt_jcontext_t,* xbt_jcontext_t;
\r
27 xbt_jcontext_factory_init(xbt_context_factory_t* factory);
\r
35 #endif /* !_XBT_JCONTEXT_H */
\r