Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Define correctly variables for windows.
[simgrid.git] / src / java / jmsg_process.c
index 60c3464..c42080f 100644 (file)
@@ -1,20 +1,16 @@
-/*
- * $Id$
- *
- * Copyright 2006,2007 Martin Quinson, Malek Cherier All right 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.
- *
- * This contains the implementation of the functions in relation with the java
- * process instance. 
- */
+/* Functions related to the java process instances.                         */
+
+/* Copyright (c) 2007, 2008, 2009, 2010. 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. */
 
 #include "jmsg_process.h"
 #include "jmsg.h"
 #include "jxbt_utilities.h"
 
-#include "xbt/xbt_context_java.h"
+#include "simix/smx_context_java.h"
 
 XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(jmsg);
 
@@ -184,7 +180,7 @@ jboolean jprocess_is_valid(jobject jprocess, JNIEnv * env)
   return (*env)->GetLongField(env, jprocess, id) ? JNI_TRUE : JNI_FALSE;
 }
 
-void jprocess_schedule(xbt_context_t context)
+void jprocess_schedule(smx_context_t context)
 {
   JNIEnv *env;
   jmethodID id;
@@ -196,12 +192,12 @@ void jprocess_schedule(xbt_context_t context)
   if (!id)
     return;
 
-  (*env)->CallVoidMethod(env, ((xbt_ctx_java_t) context)->jprocess, id);
+  (*env)->CallVoidMethod(env, ((smx_ctx_java_t) context)->jprocess, id);
 }
 
 
 
-void jprocess_unschedule(xbt_context_t context)
+void jprocess_unschedule(smx_context_t context)
 {
   JNIEnv *env;
   jmethodID id;
@@ -214,5 +210,5 @@ void jprocess_unschedule(xbt_context_t context)
   if (!id)
     return;
 
-  (*env)->CallVoidMethod(env, ((xbt_ctx_java_t) context)->jprocess, id);
+  (*env)->CallVoidMethod(env, ((smx_ctx_java_t) context)->jprocess, id);
 }