Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
java: rename an internal method
[simgrid.git] / src / bindings / java / jmsg_file.cpp
index b061e25..8243f6a 100644 (file)
@@ -1,7 +1,6 @@
-/* Functions related to the java file API.                            */
+/* Java bindings of the file API.                                           */
 
-/* Copyright (c) 2012-2014. The SimGrid Team.
- * All rights reserved.                                                     */
+/* Copyright (c) 2012-2015. The SimGrid Team. All rights reserved.          */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
@@ -9,6 +8,8 @@
 #include "jmsg_file.h"
 #include "jxbt_utilities.h"
 
+SG_BEGIN_DECL()
+
 void jfile_bind(JNIEnv *env, jobject jfile, msg_file_t fd) {
   env->SetLongField(jfile, jfile_field_bind, reinterpret_cast<std::intptr_t>(fd));
 }
@@ -52,3 +53,5 @@ JNIEXPORT void JNICALL Java_org_simgrid_msg_File_close(JNIEnv *env, jobject jfil
   MSG_file_close(file);
   jfile_bind(env, jfile, nullptr);
 }
+
+SG_END_DECL()