1 /* Functions related to the java As instances. */
3 /* Copyright (c) 2007-2013. The SimGrid Team.
4 * All rights reserved. */
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. */
15 /* Functions related to the java host instances. */
17 /* Copyright (c) 2007-2013. The SimGrid Team.
18 * All rights reserved. */
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. */
25 #include "jmsg_host.h"
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);
33 JNIEXPORT void JNICALL
34 Java_org_simgrid_msg_As_nativeInit(JNIEnv *env, jclass cls);
36 JNIEXPORT jobject JNICALL
37 Java_org_simgrid_msg_As_getName(JNIEnv * env, jobject jas);
39 JNIEXPORT jobjectArray JNICALL
40 Java_org_simgrid_msg_As_getSons(JNIEnv * env, jobject jas);
42 JNIEXPORT jobject JNICALL
43 Java_org_simgrid_msg_As_getProperty(JNIEnv *env, jobject jhost, jobject jname);
45 JNIEXPORT jobject JNICALL
46 Java_org_simgrid_msg_As_getModel(JNIEnv * env, jobject jas);
48 JNIEXPORT jobjectArray JNICALL
49 Java_org_simgrid_msg_As_getHosts(JNIEnv * env, jobject jas);
51 #endif /*!MSG_JAS_H */