1 /* Functions related to the java file API. */
3 /* Copyright (c) 2012-2015. 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. */
12 #include "simgrid/msg.h"
16 jfieldID jfile_field_bind;
18 void jfile_bind(JNIEnv *env, jobject jfile, msg_file_t fd);
19 msg_file_t jfile_get_native(JNIEnv *env, jobject jfile);
21 JNIEXPORT void JNICALL Java_org_simgrid_msg_File_nativeInit(JNIEnv*, jclass);
22 JNIEXPORT void JNICALL Java_org_simgrid_msg_File_open(JNIEnv*, jobject, jobject);
23 JNIEXPORT jlong JNICALL Java_org_simgrid_msg_File_read(JNIEnv*, jobject, jlong);
24 JNIEXPORT jlong JNICALL Java_org_simgrid_msg_File_write(JNIEnv*, jobject, jlong);
25 JNIEXPORT void JNICALL Java_org_simgrid_msg_File_seek(JNIEnv*, jobject, jlong, jlong);
26 JNIEXPORT void JNICALL Java_org_simgrid_msg_File_close(JNIEnv*, jobject);