4 * Copyright 2006,2007 Martin Quinson, Malek Cherier All right reserved.
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.
9 * This contains the implementation of the functions in relation with the java
13 #include "jmsg_channel.h"
15 #include "jxbt_utilities.h"
17 jint jchannel_get_id(jobject jchannel, JNIEnv * env)
19 jmethodID id = jxbt_get_smethod(env, "simgrid/msg/Channel", "getId", "()I");
24 return (*env)->CallIntMethod(env, jchannel, id);