* This contains the declarations of the functions in relation with the java
* host instance.
*/
-
+
#ifndef MSG_JHOST_H
#define MSG_JHOST_H
* this class is not found the function throws the exception
* NotSuchMethodException.
*/
-jobject
-jhost_new_instance(JNIEnv* env);
+jobject jhost_new_instance(JNIEnv * env);
/**
* This function returns a global reference to the java host instance
* @return The global reference to the original java host
* instance.
*/
-jobject jhost_ref(JNIEnv* env,jobject jhost);
+jobject jhost_ref(JNIEnv * env, jobject jhost);
/**
* This function delete a global reference to a java host instance.
*
* @param The global refernce to delete.
* @param env The environment of the current thread
*/
-void jhost_unref(JNIEnv* env, jobject jhost);
+void jhost_unref(JNIEnv * env, jobject jhost);
/**
* This function associated a native host to a java host instance.
* the ClassNotFoundException. If the field bind of
* this class is not found the function throws the exception
* NotSuchFieldException.
- */
-void
-jhost_bind(jobject jhost,m_host_t host,JNIEnv* env);
+ */
+void jhost_bind(jobject jhost, m_host_t host, JNIEnv * env);
/**
* This function returns a native host from a java host instance.
* this class is not found the function throws the exception
* NotSuchFieldException.
*/
-m_host_t
-jhost_get_native(JNIEnv* env,jobject jhost);
+m_host_t jhost_get_native(JNIEnv * env, jobject jhost);
/**
* This function returns the name of a MSG host.
*
* @return The name of the host.
*/
-const char*
-jhost_get_name(jobject jhost,JNIEnv* env);
+const char *jhost_get_name(jobject jhost, JNIEnv * env);
/**
* @param jname The new name of the host.
* @param env The environment of the current thread
*/
-void
-jhost_set_name(jobject jhost,jstring jname,JNIEnv* env);
+void jhost_set_name(jobject jhost, jstring jname, JNIEnv * env);
/**
* This function tests if a java host instance is valid.
* @return If the java host is valid the function returns true.
* Otherwise the function returns false.
*/
-jboolean
-jhost_is_valid(jobject jhost,JNIEnv* env);
+jboolean jhost_is_valid(jobject jhost, JNIEnv * env);
#endif /*!MSG_JHOST_H */
-