Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
00b21fc98616abc70ee9068b1389d2f8891e0ef0
[simgrid.git] / src / bindings / java / jmsg_as.h
1 /* Functions related to the java As instances.                            */
2
3 /* Copyright (c) 2007-2012. The SimGrid Team.
4  * All rights reserved.                                                     */
5
6 /* This program is free software; you can redistribute it and/or modify it
7   * under the terms of the license (GNU LGPL) which comes with this package. */
8
9
10 #ifndef MSG_JAS_H
11 #define MSG_JAS_H
12 #include <jni.h>
13 #include "msg/msg.h"
14
15 /* Functions related to the java host instances.                            */
16
17 /* Copyright (c) 2007-2012. The SimGrid Team.
18  * All rights reserved.                                                     */
19
20 /* This program is free software; you can redistribute it and/or modify it
21   * under the terms of the license (GNU LGPL) which comes with this package. */
22
23 #include "msg/msg.h"
24 #include "jmsg.h"
25 #include "jmsg_host.h"
26
27 jobject jas_new_instance(JNIEnv * env);
28 jobject jas_ref(JNIEnv * env, jobject jas);
29 void jas_unref(JNIEnv * env, jobject jas);
30 void jas_bind(jobject jas, msg_as_t as, JNIEnv * env);
31 msg_as_t jas_get_native(JNIEnv * env, jobject jas);
32
33 JNIEXPORT void JNICALL
34 Java_org_simgrid_msg_As_nativeInit(JNIEnv *env, jclass cls);
35
36 JNIEXPORT jobject JNICALL
37 Java_org_simgrid_msg_As_getName(JNIEnv * env, jobject jas);
38
39 JNIEXPORT jobjectArray JNICALL
40 Java_org_simgrid_msg_As_getSons(JNIEnv * env, jobject jas);
41
42 JNIEXPORT jobject JNICALL
43 Java_org_simgrid_msg_As_getProperty(JNIEnv *env, jobject jhost, jobject jname);
44
45 JNIEXPORT jobject JNICALL
46 Java_org_simgrid_msg_As_getModel(JNIEnv * env, jobject jas);
47
48 JNIEXPORT jobjectArray JNICALL
49 Java_org_simgrid_msg_As_getHosts(JNIEnv * env, jobject jas);
50
51 #endif                          /*!MSG_JAS_H */