Logo AND Algorithmique Numérique Distribuée

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