/* DO NOT EDIT THIS FILE - it is machine generated */
#include "jri.h"

/* Stubs for class TimeMediaPlugin */

#ifdef IMPLEMENT_TimeMediaPlugin
#define _implementing_TimeMediaPlugin
#endif /* IMPLEMENT_TimeMediaPlugin */
#define IMPLEMENT_TimeMediaPlugin
#include "TimeMediaPlugin.h"

#ifndef UNUSED_TimeMediaPlugin_SetSource
JRIMethodID FAR methodID_TimeMediaPlugin_SetSource = JRIUninitialized;
#ifdef DEBUG
JRI_PUBLIC_API(void)
TimeMediaPlugin_SetSource(JRIEnv* env, struct TimeMediaPlugin* self, struct java_net_URL *a) {
	if (methodID_TimeMediaPlugin_SetSource == JRIUninitialized) {
		assert(!"Forgot to call use_TimeMediaPlugin(env) before calling method SetSource (Ljava/net/URL;)V");
	}
	(void)JRI_CallMethod(env)(env, JRI_CallMethod_op, self, methodID_TimeMediaPlugin_SetSource, a);
}
#endif /* DEBUG */
#endif /* UNUSED_TimeMediaPlugin_SetSource */

#ifndef UNUSED_TimeMediaPlugin_SetSource_1
JRIMethodID FAR methodID_TimeMediaPlugin_SetSource_1 = JRIUninitialized;
#ifdef DEBUG
JRI_PUBLIC_API(void)
TimeMediaPlugin_SetSource_1(JRIEnv* env, struct TimeMediaPlugin* self, struct java_lang_String *a) {
	if (methodID_TimeMediaPlugin_SetSource_1 == JRIUninitialized) {
		assert(!"Forgot to call use_TimeMediaPlugin(env) before calling method SetSource (Ljava/lang/String;)V");
	}
	(void)JRI_CallMethod(env)(env, JRI_CallMethod_op, self, methodID_TimeMediaPlugin_SetSource_1, a);
}
#endif /* DEBUG */
#endif /* UNUSED_TimeMediaPlugin_SetSource_1 */

#ifndef UNUSED_TimeMediaPlugin_SetSourceNative
JRIMethodID FAR methodID_TimeMediaPlugin_SetSourceNative = JRIUninitialized;
#ifdef DEBUG
JRI_PUBLIC_API(void)
TimeMediaPlugin_SetSourceNative(JRIEnv* env, struct TimeMediaPlugin* self, struct java_lang_String *a) {
	if (methodID_TimeMediaPlugin_SetSourceNative == JRIUninitialized) {
		assert(!"Forgot to call use_TimeMediaPlugin(env) before calling method SetSourceNative (Ljava/lang/String;)V");
	}
	(void)JRI_CallMethod(env)(env, JRI_CallMethod_op, self, methodID_TimeMediaPlugin_SetSourceNative, a);
}
#endif /* DEBUG */
#endif /* UNUSED_TimeMediaPlugin_SetSourceNative */

#ifndef UNUSED_TimeMediaPlugin_Start
JRIMethodID FAR methodID_TimeMediaPlugin_Start = JRIUninitialized;
#ifdef DEBUG
JRI_PUBLIC_API(void)
TimeMediaPlugin_Start(JRIEnv* env, struct TimeMediaPlugin* self) {
	if (methodID_TimeMediaPlugin_Start == JRIUninitialized) {
		assert(!"Forgot to call use_TimeMediaPlugin(env) before calling method Start ()V");
	}
	(void)JRI_CallMethod(env)(env, JRI_CallMethod_op, self, methodID_TimeMediaPlugin_Start);
}
#endif /* DEBUG */
#endif /* UNUSED_TimeMediaPlugin_Start */

#ifndef UNUSED_TimeMediaPlugin_Stop
JRIMethodID FAR methodID_TimeMediaPlugin_Stop = JRIUninitialized;
#ifdef DEBUG
JRI_PUBLIC_API(void)
TimeMediaPlugin_Stop(JRIEnv* env, struct TimeMediaPlugin* self) {
	if (methodID_TimeMediaPlugin_Stop == JRIUninitialized) {
		assert(!"Forgot to call use_TimeMediaPlugin(env) before calling method Stop ()V");
	}
	(void)JRI_CallMethod(env)(env, JRI_CallMethod_op, self, methodID_TimeMediaPlugin_Stop);
}
#endif /* DEBUG */
#endif /* UNUSED_TimeMediaPlugin_Stop */

#ifndef UNUSED_TimeMediaPlugin_IsRunning
JRIMethodID FAR methodID_TimeMediaPlugin_IsRunning = JRIUninitialized;
#ifdef DEBUG
JRI_PUBLIC_API(jbool)
TimeMediaPlugin_IsRunning(JRIEnv* env, struct TimeMediaPlugin* self) {
	if (methodID_TimeMediaPlugin_IsRunning == JRIUninitialized) {
		assert(!"Forgot to call use_TimeMediaPlugin(env) before calling method IsRunning ()Z");
	}
	return (jbool)JRI_CallMethodBoolean(env)(env, JRI_CallMethod_op, self, methodID_TimeMediaPlugin_IsRunning);
}
#endif /* DEBUG */
#endif /* UNUSED_TimeMediaPlugin_IsRunning */

#ifndef UNUSED_TimeMediaPlugin_Loop
JRIMethodID FAR methodID_TimeMediaPlugin_Loop = JRIUninitialized;
#ifdef DEBUG
JRI_PUBLIC_API(void)
TimeMediaPlugin_Loop(JRIEnv* env, struct TimeMediaPlugin* self, jbool a) {
	if (methodID_TimeMediaPlugin_Loop == JRIUninitialized) {
		assert(!"Forgot to call use_TimeMediaPlugin(env) before calling method Loop (Z)V");
	}
	(void)JRI_CallMethod(env)(env, JRI_CallMethod_op, self, methodID_TimeMediaPlugin_Loop, a);
}
#endif /* DEBUG */
#endif /* UNUSED_TimeMediaPlugin_Loop */

#ifndef UNUSED_TimeMediaPlugin_IsLooping
JRIMethodID FAR methodID_TimeMediaPlugin_IsLooping = JRIUninitialized;
#ifdef DEBUG
JRI_PUBLIC_API(jbool)
TimeMediaPlugin_IsLooping(JRIEnv* env, struct TimeMediaPlugin* self) {
	if (methodID_TimeMediaPlugin_IsLooping == JRIUninitialized) {
		assert(!"Forgot to call use_TimeMediaPlugin(env) before calling method IsLooping ()Z");
	}
	return (jbool)JRI_CallMethodBoolean(env)(env, JRI_CallMethod_op, self, methodID_TimeMediaPlugin_IsLooping);
}
#endif /* DEBUG */
#endif /* UNUSED_TimeMediaPlugin_IsLooping */

#ifndef UNUSED_TimeMediaPlugin_SetSpeed
JRIMethodID FAR methodID_TimeMediaPlugin_SetSpeed = JRIUninitialized;
#ifdef DEBUG
JRI_PUBLIC_API(void)
TimeMediaPlugin_SetSpeed(JRIEnv* env, struct TimeMediaPlugin* self, jint a) {
	if (methodID_TimeMediaPlugin_SetSpeed == JRIUninitialized) {
		assert(!"Forgot to call use_TimeMediaPlugin(env) before calling method SetSpeed (I)V");
	}
	(void)JRI_CallMethod(env)(env, JRI_CallMethod_op, self, methodID_TimeMediaPlugin_SetSpeed, a);
}
#endif /* DEBUG */
#endif /* UNUSED_TimeMediaPlugin_SetSpeed */

#ifndef UNUSED_TimeMediaPlugin_GetSpeed
JRIMethodID FAR methodID_TimeMediaPlugin_GetSpeed = JRIUninitialized;
#ifdef DEBUG
JRI_PUBLIC_API(jint)
TimeMediaPlugin_GetSpeed(JRIEnv* env, struct TimeMediaPlugin* self) {
	if (methodID_TimeMediaPlugin_GetSpeed == JRIUninitialized) {
		assert(!"Forgot to call use_TimeMediaPlugin(env) before calling method GetSpeed ()I");
	}
	return (jint)JRI_CallMethodInt(env)(env, JRI_CallMethod_op, self, methodID_TimeMediaPlugin_GetSpeed);
}
#endif /* DEBUG */
#endif /* UNUSED_TimeMediaPlugin_GetSpeed */

#ifndef UNUSED_TimeMediaPlugin_new
JRIMethodID FAR methodID_TimeMediaPlugin_new = JRIUninitialized;
#ifdef DEBUG
JRI_PUBLIC_API(struct TimeMediaPlugin*)
TimeMediaPlugin_new(JRIEnv* env, struct java_lang_Class* clazz) {
	if (methodID_TimeMediaPlugin_new == JRIUninitialized) {
		assert(!"Forgot to call use_TimeMediaPlugin(env) before calling method <init> ()V");
	}
	return (struct TimeMediaPlugin*)JRI_NewObject(env)(env, JRI_NewObject_op, clazz, methodID_TimeMediaPlugin_new);
}
#endif /* DEBUG */
#endif /* UNUSED_TimeMediaPlugin_new */

#ifndef UNUSED_use_TimeMediaPlugin

static jglobal _globalclass_TimeMediaPlugin = NULL;

JRI_PUBLIC_API(struct java_lang_Class*)
use_TimeMediaPlugin(JRIEnv* env)
{
	if (_globalclass_TimeMediaPlugin == NULL) {
		struct java_lang_Class* clazz = JRI_FindClass(env, classname_TimeMediaPlugin);
		if (clazz == NULL) return NULL;
		use_TimeMediaPlugin_SetSource(env, clazz);
		use_TimeMediaPlugin_SetSource_1(env, clazz);
		use_TimeMediaPlugin_SetSourceNative(env, clazz);
		use_TimeMediaPlugin_Start(env, clazz);
		use_TimeMediaPlugin_Stop(env, clazz);
		use_TimeMediaPlugin_IsRunning(env, clazz);
		use_TimeMediaPlugin_Loop(env, clazz);
		use_TimeMediaPlugin_IsLooping(env, clazz);
		use_TimeMediaPlugin_SetSpeed(env, clazz);
		use_TimeMediaPlugin_GetSpeed(env, clazz);
		use_TimeMediaPlugin_new(env, clazz);
		_globalclass_TimeMediaPlugin = JRI_NewGlobalRef(env, clazz);
		return clazz;
	}
	else {
		return JRI_GetGlobalRef(env, _globalclass_TimeMediaPlugin);
	}
}

JRI_PUBLIC_API(void)
unuse_TimeMediaPlugin(JRIEnv* env)
{
	if (_globalclass_TimeMediaPlugin != NULL) {
		struct java_lang_Class* clazz = JRI_GetGlobalRef(env, _globalclass_TimeMediaPlugin);
		unuse_TimeMediaPlugin_SetSource(env, clazz);
		unuse_TimeMediaPlugin_SetSource_1(env, clazz);
		unuse_TimeMediaPlugin_SetSourceNative(env, clazz);
		unuse_TimeMediaPlugin_Start(env, clazz);
		unuse_TimeMediaPlugin_Stop(env, clazz);
		unuse_TimeMediaPlugin_IsRunning(env, clazz);
		unuse_TimeMediaPlugin_Loop(env, clazz);
		unuse_TimeMediaPlugin_IsLooping(env, clazz);
		unuse_TimeMediaPlugin_SetSpeed(env, clazz);
		unuse_TimeMediaPlugin_GetSpeed(env, clazz);
		unuse_TimeMediaPlugin_new(env, clazz);
		JRI_DisposeGlobalRef(env, _globalclass_TimeMediaPlugin);
		_globalclass_TimeMediaPlugin = NULL;
		clazz = NULL;	/* prevent unused variable 'clazz' warning */
	}
}

#endif /* UNUSED_use_TimeMediaPlugin */

#ifdef _implementing_TimeMediaPlugin

JRI_PUBLIC_API(struct java_lang_Class*)
register_TimeMediaPlugin(JRIEnv* env)
{
	char* nativeNamesAndSigs[] = {
		"SetSourceNative(Ljava/lang/String;)V",
		"Start()V",
		"Stop()V",
		"IsRunning()Z",
		"Loop(Z)V",
		"IsLooping()Z",
		"SetSpeed(I)V",
		"GetSpeed()I",
		NULL
	};
	void* nativeProcs[] = {
		native_TimeMediaPlugin_SetSourceNative,
		native_TimeMediaPlugin_Start,
		native_TimeMediaPlugin_Stop,
		native_TimeMediaPlugin_IsRunning,
		native_TimeMediaPlugin_Loop,
		native_TimeMediaPlugin_IsLooping,
		native_TimeMediaPlugin_SetSpeed,
		native_TimeMediaPlugin_GetSpeed,
		NULL
	};
	struct java_lang_Class* clazz = JRI_FindClass(env, classname_TimeMediaPlugin);
	if (clazz != NULL) {
		JRI_RegisterNatives(env, clazz, nativeNamesAndSigs, nativeProcs);
		use_TimeMediaPlugin(env);
	}
	return clazz;
}

JRI_PUBLIC_API(void)
unregister_TimeMediaPlugin(JRIEnv* env)
{
	struct java_lang_Class* clazz = JRI_FindClass(env, classname_TimeMediaPlugin);
	JRI_UnregisterNatives(env, clazz);
	unuse_TimeMediaPlugin(env);
}

/* These stub routines are generated for compatibility with the JDK: */

#ifndef NO_JDK

/* SYMBOL: "TimeMediaPlugin/SetSourceNative(Ljava/lang/String;)V", Java_TimeMediaPlugin_SetSourceNative_stub */
JRI_PUBLIC_API(JRI_JDK_stack_item*)
Java_TimeMediaPlugin_SetSourceNative_stub(JRI_JDK_stack_item* _P_, JRIEnv* _EE_) {
	(void) native_TimeMediaPlugin_SetSourceNative(_EE_,_P_[0].p,((_P_[1].p)));
	return _P_;
}

/* SYMBOL: "TimeMediaPlugin/Start()V", Java_TimeMediaPlugin_Start_stub */
JRI_PUBLIC_API(JRI_JDK_stack_item*)
Java_TimeMediaPlugin_Start_stub(JRI_JDK_stack_item* _P_, JRIEnv* _EE_) {
	(void) native_TimeMediaPlugin_Start(_EE_,_P_[0].p);
	return _P_;
}

/* SYMBOL: "TimeMediaPlugin/Stop()V", Java_TimeMediaPlugin_Stop_stub */
JRI_PUBLIC_API(JRI_JDK_stack_item*)
Java_TimeMediaPlugin_Stop_stub(JRI_JDK_stack_item* _P_, JRIEnv* _EE_) {
	(void) native_TimeMediaPlugin_Stop(_EE_,_P_[0].p);
	return _P_;
}

/* SYMBOL: "TimeMediaPlugin/IsRunning()Z", Java_TimeMediaPlugin_IsRunning_stub */
JRI_PUBLIC_API(JRI_JDK_stack_item*)
Java_TimeMediaPlugin_IsRunning_stub(JRI_JDK_stack_item* _P_, JRIEnv* _EE_) {
	_P_[0].i = (native_TimeMediaPlugin_IsRunning(_EE_,_P_[0].p) ? 1 : 0);
	return _P_ + 1;
}

/* SYMBOL: "TimeMediaPlugin/Loop(Z)V", Java_TimeMediaPlugin_Loop_stub */
JRI_PUBLIC_API(JRI_JDK_stack_item*)
Java_TimeMediaPlugin_Loop_stub(JRI_JDK_stack_item* _P_, JRIEnv* _EE_) {
	(void) native_TimeMediaPlugin_Loop(_EE_,_P_[0].p,((_P_[1].i)));
	return _P_;
}

/* SYMBOL: "TimeMediaPlugin/IsLooping()Z", Java_TimeMediaPlugin_IsLooping_stub */
JRI_PUBLIC_API(JRI_JDK_stack_item*)
Java_TimeMediaPlugin_IsLooping_stub(JRI_JDK_stack_item* _P_, JRIEnv* _EE_) {
	_P_[0].i = (native_TimeMediaPlugin_IsLooping(_EE_,_P_[0].p) ? 1 : 0);
	return _P_ + 1;
}

/* SYMBOL: "TimeMediaPlugin/SetSpeed(I)V", Java_TimeMediaPlugin_SetSpeed_stub */
JRI_PUBLIC_API(JRI_JDK_stack_item*)
Java_TimeMediaPlugin_SetSpeed_stub(JRI_JDK_stack_item* _P_, JRIEnv* _EE_) {
	(void) native_TimeMediaPlugin_SetSpeed(_EE_,_P_[0].p,((_P_[1].i)));
	return _P_;
}

/* SYMBOL: "TimeMediaPlugin/GetSpeed()I", Java_TimeMediaPlugin_GetSpeed_stub */
JRI_PUBLIC_API(JRI_JDK_stack_item*)
Java_TimeMediaPlugin_GetSpeed_stub(JRI_JDK_stack_item* _P_, JRIEnv* _EE_) {
	_P_[0].i = native_TimeMediaPlugin_GetSpeed(_EE_,_P_[0].p);
	return _P_ + 1;
}

#endif /* NO_JDK */

#endif /* _implementing_TimeMediaPlugin */

