-/*
- * $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);
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;
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;
if (!id)
return;
- (*env)->CallVoidMethod(env, ((xbt_ctx_java_t) context)->jprocess, id);
+ (*env)->CallVoidMethod(env, ((smx_ctx_java_t) context)->jprocess, id);
}