Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
one parameter less for open
[simgrid.git] / src / bindings / java / jmsg_file.h
1 /* Functions related to the java file API.                            */
2 /* Copyright (c) 2012. The SimGrid Team.
3  * All rights reserved.                                                     */
4
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. */
7
8 #ifndef MSG_JFILE_H
9 #define MSG_JFILE_H
10 #include <jni.h>
11 #include "msg/msg.h"
12
13 jfieldID jfile_field_bind;
14
15 void jfile_bind(JNIEnv *env, jobject jfile, msg_file_t fd);
16 msg_file_t jfile_get_native(JNIEnv *env, jobject jfile);
17 /**
18  * Class                        org_simgrid_msg_File
19  * Method                       nativeInit
20  * Signature    ()V
21  */
22 JNIEXPORT void JNICALL
23 Java_org_simgrid_msg_File_nativeInit(JNIEnv*, jclass);
24 /**
25  * Class                        org_simgrid_msg_File
26  * Method                       open
27  * Signature    (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
28  */
29 JNIEXPORT void JNICALL
30 Java_org_simgrid_msg_File_open(JNIEnv*, jobject, jobject, jobject);
31 /**
32  * Class                        org_simgrid_msg_File
33  * Method                       read
34  */
35 JNIEXPORT jlong JNICALL
36 Java_org_simgrid_msg_File_read(JNIEnv*, jobject, jlong, jlong);
37 /**
38  * Class                        org_simgrid_msg_File
39  * Method                       write
40  */
41 JNIEXPORT jlong JNICALL
42 Java_org_simgrid_msg_File_write(JNIEnv*, jobject, jlong, jlong);
43 /**
44  * Class                        org_simgrid_msg_File
45  * Method                       close
46  */
47 JNIEXPORT void JNICALL
48 Java_org_simgrid_msg_File_close(JNIEnv*, jobject);
49
50 #endif