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

/* Stubs for class AviObserver */

#ifdef IMPLEMENT_AviObserver
#define _implementing_AviObserver
#endif /* IMPLEMENT_AviObserver */
#define IMPLEMENT_AviObserver
#include "AviObserver.h"

#ifndef UNUSED_AviObserver_onStop
JRI_PUBLIC_VAR(JRIMethodID) FAR methodID_AviObserver_onStop = JRIUninitialized;
#ifdef DEBUG
JRI_PUBLIC_API(void)
AviObserver_onStop(JRIEnv* env, struct AviObserver* self) {
	if (methodID_AviObserver_onStop == JRIUninitialized) {
		assert(!"Forgot to call use_AviObserver(env) before calling method onStop ()V");
	}
	(void)JRI_CallMethod(env)(env, JRI_CallMethod_op, self, methodID_AviObserver_onStop);
}
#endif /* DEBUG */
#endif /* UNUSED_AviObserver_onStop */

#ifndef UNUSED_AviObserver_onPositionChange
JRI_PUBLIC_VAR(JRIMethodID) FAR methodID_AviObserver_onPositionChange = JRIUninitialized;
#ifdef DEBUG
JRI_PUBLIC_API(void)
AviObserver_onPositionChange(JRIEnv* env, struct AviObserver* self, jint a) {
	if (methodID_AviObserver_onPositionChange == JRIUninitialized) {
		assert(!"Forgot to call use_AviObserver(env) before calling method onPositionChange (I)V");
	}
	(void)JRI_CallMethod(env)(env, JRI_CallMethod_op, self, methodID_AviObserver_onPositionChange, a);
}
#endif /* DEBUG */
#endif /* UNUSED_AviObserver_onPositionChange */

#ifndef UNUSED_use_AviObserver

static jglobal _globalclass_AviObserver = NULL;

JRI_PUBLIC_API(struct java_lang_Class*)
use_AviObserver(JRIEnv* env)
{
	if (_globalclass_AviObserver == NULL) {
		struct java_lang_Class* clazz = JRI_FindClass(env, classname_AviObserver);
		if (clazz == NULL) {
			JRI_ThrowNew(env, JRI_FindClass(env, "java/lang/ClassNotFoundException"), classname_AviObserver);
			return NULL;
		}
		usemethod_AviObserver_onStop(env, clazz);
		usemethod_AviObserver_onPositionChange(env, clazz);
		_globalclass_AviObserver = JRI_NewGlobalRef(env, clazz);
		return clazz;
	}
	else {
		return (struct java_lang_Class*)JRI_GetGlobalRef(env, _globalclass_AviObserver);
	}
}

JRI_PUBLIC_API(void)
unuse_AviObserver(JRIEnv* env)
{
	if (_globalclass_AviObserver != NULL) {
		struct java_lang_Class* clazz = (struct java_lang_Class*)JRI_GetGlobalRef(env, _globalclass_AviObserver);
		unusemethod_AviObserver_onStop(env, clazz);
		unusemethod_AviObserver_onPositionChange(env, clazz);
		JRI_DisposeGlobalRef(env, _globalclass_AviObserver);
		_globalclass_AviObserver = NULL;
		clazz = NULL;	/* prevent unused variable 'clazz' warning */
	}
}

#endif /* UNUSED_use_AviObserver */

#ifdef _implementing_AviObserver

JRI_PUBLIC_API(struct java_lang_Class*)
register_AviObserver(JRIEnv* env)
{
	char* nativeNamesAndSigs[] = {
		NULL
	};
	void* nativeProcs[] = {
		NULL
	};
	struct java_lang_Class* clazz = JRI_FindClass(env, classname_AviObserver);
	if (clazz == NULL) {
		JRI_ThrowNew(env, JRI_FindClass(env, "java/lang/ClassNotFoundException"), classname_AviObserver);
		return NULL;
	}
	JRI_RegisterNatives(env, clazz, nativeNamesAndSigs, nativeProcs);
	use_AviObserver(env);
	return clazz;
}

JRI_PUBLIC_API(void)
unregister_AviObserver(JRIEnv* env)
{
	struct java_lang_Class* clazz = JRI_FindClass(env, classname_AviObserver);
	JRI_UnregisterNatives(env, clazz);
	unuse_AviObserver(env);
}

#endif /* _implementing_AviObserver */

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

#ifndef NO_JDK



#endif /* NO_JDK */

