Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
the supernovae exploded: let's split the archive and move bindings to separate packages
[simgrid.git] / src / java / jmsg_task.c
diff --git a/src/java/jmsg_task.c b/src/java/jmsg_task.c
deleted file mode 100644 (file)
index 21efd57..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
-/*
- * $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
- * task instance. 
- */
-#include "jmsg.h"
-#include "jmsg_task.h"
-#include "jxbt_utilities.h"
-
-jobject
-jtask_new_global_ref(jobject jtask,JNIEnv* env) {
-  return (*env)->NewGlobalRef(env,jtask); 
-}
-
-void
-jtask_delete_global_ref(jobject jtask,JNIEnv* env) {
-  (*env)->DeleteGlobalRef(env,jtask);
-}
-
-void
-jtask_bind(jobject jtask,m_task_t task,JNIEnv* env) {
-  jfieldID id = jxbt_get_sfield(env,"simgrid/msg/Task","bind", "J");
-    
-  if(!id)
-    return;
-
-  (*env)->SetLongField(env,jtask,id,(jlong)(long)(task));       
-}
-
-m_task_t
-jtask_to_native_task(jobject jtask,JNIEnv* env) {
-  jfieldID id = jxbt_get_sfield(env,"simgrid/msg/Task","bind", "J");
-    
-  if(!id)
-    return NULL;
-    
-  return (m_task_t)(long)(*env)->GetLongField(env,jtask,id);   
-}
-
-jboolean
-jtask_is_valid(jobject jtask,JNIEnv* env) {
-  jfieldID id = jxbt_get_sfield(env,"simgrid/msg/Task","bind", "J");
-    
-  if(!id)
-    return JNI_FALSE;
-    
-  return (*env)->GetLongField(env,jtask,id) ? JNI_TRUE : JNI_FALSE;
-}