#ifndef JAVAFUNC_H
#define JAVAFUNC_H

#include "appengine.h"
#include "hsp_native_app_glue.h"

#ifdef __cplusplus
extern "C" {
#endif

int javafunc_init( struct engine *en );
struct engine *javafunc_engine( void );

#define JAVAFUNC_INFO_DEVICE 0
#define JAVAFUNC_INFO_VERSION 1
#define JAVAFUNC_INFO_FILESDIR 2
#define JAVAFUNC_INFO_LOCALE 3

char *j_getinfo( int type );
int j_callVibrator( int val );
int j_dispDialog( char *msg1, char *msg2, int type );
int j_callActivity( char *msg1, char *msg2, int type );
int j_callAdMob( int val );

int j_addWindowFlag( int val );
int j_clearWindowFlag( int val );
char *j_callFontBitmap( const char *in_str, int fontSize, int style, int *o_width, int *o_height );
char *j_callFontBitmap_s( const char *in_str, int fontSize, int style, int *o_width, int *o_height, int *o_size, int *o_color );
void j_callFontBitmap_e( void );

char *j_getHttpInfo( void );
int j_httpRequest( char *msg1, char *msg2, int type );


#ifdef __cplusplus
}
#endif /* __cplusplus */

JNIEXPORT void JNICALL nativepoke( JNIEnv* env, jobject thiz, jint value, jint value2 );

#endif
