1 /* Functions related to the java file API. */
2 /* Copyright (c) 2012. The SimGrid Team.
3 * All rights reserved. */
5 /* This program is free software; you can redistribute it and/or modify it
6 * under the terms of the license (GNU LGPL) which comes with this package. */
13 jfieldID jfile_field_bind;
15 void jfile_bind(JNIEnv *env, jobject jfile, msg_file_t stream);
16 msg_file_t jfile_get_native(JNIEnv *env, jobject jfile);
18 * Class org_simgrid_msg_File
22 JNIEXPORT void JNICALL
23 Java_org_simgrid_msg_File_nativeInit(JNIEnv*, jclass);
25 * Class org_simgrid_msg_File
27 * Signature (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
29 JNIEXPORT void JNICALL
30 Java_org_simgrid_msg_File_open(JNIEnv*, jobject, jobject, jobject, jobject);
32 * Class org_simgrid_msg_File
35 JNIEXPORT jlong JNICALL
36 Java_org_simgrid_msg_File_read(JNIEnv*, jobject, jlong, jlong);
38 * Class org_simgrid_msg_File
41 JNIEXPORT jlong JNICALL
42 Java_org_simgrid_msg_File_write(JNIEnv*, jobject, jlong, jlong);
44 * Class org_simgrid_msg_File
47 JNIEXPORT void JNICALL
48 Java_org_simgrid_msg_File_close(JNIEnv*, jobject);