Logo AND Algorithmique Numérique Distribuée

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