Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Move functions from MsgNative to Host, and from jmsg to jmsg_host
[simgrid.git] / src / smx_context_java.h
1 /* Copyright (c) 2009, 2010. The SimGrid Team.
2  * All rights reserved.                                                     */
3
4 /* This program is free software; you can redistribute it and/or modify it
5   * under the terms of the license (GNU LGPL) which comes with this package. */
6
7 #ifndef _XBT_CONTEXT_JAVA_H
8 #define _XBT_CONTEXT_JAVA_H
9
10 #include <xbt/misc.h>
11 #include <simgrid/simix.h>
12 #include "jmsg.h"
13 #include "jmsg_process.h"
14
15 SG_BEGIN_DECL()
16
17 typedef struct s_smx_ctx_java {
18   s_smx_ctx_base_t super;       /* Fields of super implementation */
19   jobject jprocess;             /* the java process instance binded with the msg process structure */
20   JNIEnv *jenv;                 /* jni interface pointer associated to this thread */
21 } s_smx_ctx_java_t, *smx_ctx_java_t;
22
23 void SIMIX_ctx_java_factory_init(smx_context_factory_t *factory);
24 void smx_ctx_java_stop(smx_context_t context);
25
26 SG_END_DECL()
27
28 #endif                          /* !_XBT_CONTEXT_JAVA_H */