2007-05-02 01:07:00 +00:00
|
|
|
/*
|
2007-11-03 23:35:00 +00:00
|
|
|
* $Id: jni.h,v 1.16 2007/11/02 05:49:19 bacon Exp $
|
2007-05-02 01:07:00 +00:00
|
|
|
*
|
|
|
|
* {License}
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _ASE_AWK_JNI_H_
|
|
|
|
#define _ASE_AWK_JNI_H_
|
|
|
|
|
|
|
|
#if defined(__APPLE__) && defined(__MACH__)
|
|
|
|
#include <JavaVM/jni.h>
|
|
|
|
#else
|
|
|
|
#include <jni.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
JNIEXPORT void JNICALL Java_ase_awk_Awk_open (JNIEnv* env, jobject obj);
|
2007-10-19 14:05:00 +00:00
|
|
|
JNIEXPORT void JNICALL Java_ase_awk_Awk_close (JNIEnv* env, jobject obj, jlong awkid);
|
|
|
|
JNIEXPORT void JNICALL Java_ase_awk_Awk_parse (JNIEnv* env, jobject obj, jlong awkid);
|
2007-05-02 01:07:00 +00:00
|
|
|
JNIEXPORT void JNICALL Java_ase_awk_Awk_run (
|
2007-10-19 14:05:00 +00:00
|
|
|
JNIEnv* env, jobject obj, jlong awkid, jstring mfn, jobjectArray args);
|
|
|
|
JNIEXPORT void JNICALL Java_ase_awk_Awk_stop (JNIEnv* env, jobject obj, jlong awkid);
|
2007-05-02 01:07:00 +00:00
|
|
|
|
2007-09-25 00:12:00 +00:00
|
|
|
JNIEXPORT void JNICALL Java_ase_awk_Awk_addfunc (
|
2007-05-02 01:07:00 +00:00
|
|
|
JNIEnv* env, jobject obj, jstring name, jint min_args, jint max_args);
|
2007-09-25 00:12:00 +00:00
|
|
|
JNIEXPORT void JNICALL Java_ase_awk_Awk_delfunc (
|
2007-05-02 01:07:00 +00:00
|
|
|
JNIEnv* env, jobject obj, jstring name);
|
|
|
|
|
|
|
|
JNIEXPORT jint JNICALL Java_ase_awk_Awk_getmaxdepth (
|
2007-10-19 14:05:00 +00:00
|
|
|
JNIEnv* env, jobject obj, jlong awkid, jint id);
|
2007-05-02 01:07:00 +00:00
|
|
|
JNIEXPORT void JNICALL Java_ase_awk_Awk_setmaxdepth (
|
2007-10-19 14:05:00 +00:00
|
|
|
JNIEnv* env, jobject obj, jlong awkid, jint ids, jint depth);
|
2007-05-02 01:07:00 +00:00
|
|
|
|
|
|
|
JNIEXPORT jint JNICALL Java_ase_awk_Awk_getoption (
|
2007-10-19 14:05:00 +00:00
|
|
|
JNIEnv* env, jobject obj, jlong awkid);
|
2007-05-02 01:07:00 +00:00
|
|
|
JNIEXPORT void JNICALL Java_ase_awk_Awk_setoption (
|
2007-10-19 14:05:00 +00:00
|
|
|
JNIEnv* env, jobject obj, jlong awkid, jint options);
|
2007-05-02 01:07:00 +00:00
|
|
|
|
|
|
|
JNIEXPORT jboolean JNICALL Java_ase_awk_Awk_getdebug (
|
2007-10-19 14:05:00 +00:00
|
|
|
JNIEnv* env, jobject obj, jlong awkid);
|
2007-05-02 01:07:00 +00:00
|
|
|
JNIEXPORT void JNICALL Java_ase_awk_Awk_setdebug (
|
2007-10-19 14:05:00 +00:00
|
|
|
JNIEnv* env, jobject obj, jlong awkid, jboolean debug);
|
2007-05-02 01:07:00 +00:00
|
|
|
|
2007-06-25 23:15:00 +00:00
|
|
|
JNIEXPORT void JNICALL Java_ase_awk_Awk_setword (
|
2007-10-19 14:05:00 +00:00
|
|
|
JNIEnv* env, jobject obj, jlong awkid, jstring ow, jstring nw);
|
2007-06-25 23:15:00 +00:00
|
|
|
|
2007-05-02 01:07:00 +00:00
|
|
|
JNIEXPORT void JNICALL Java_ase_awk_Awk_setfilename (
|
|
|
|
JNIEnv* env, jobject obj, jlong runid, jstring name);
|
|
|
|
JNIEXPORT void JNICALL Java_ase_awk_Awk_setofilename (
|
|
|
|
JNIEnv* env, jobject obj, jlong runid, jstring name);
|
|
|
|
|
2007-06-25 23:15:00 +00:00
|
|
|
JNIEXPORT jstring JNICALL Java_ase_awk_Awk_strftime (
|
|
|
|
JNIEnv* env, jobject obj, jstring fmt, jlong sec);
|
|
|
|
JNIEXPORT jstring JNICALL Java_ase_awk_Awk_strfgmtime (
|
|
|
|
JNIEnv* env, jobject obj, jstring fmt, jlong sec);
|
|
|
|
JNIEXPORT jint JNICALL Java_ase_awk_Awk_system (
|
|
|
|
JNIEnv* env, jobject obj, jstring cmd);
|
|
|
|
|
2007-10-18 23:51:00 +00:00
|
|
|
JNIEXPORT void JNICALL Java_ase_awk_Context_stop (JNIEnv* env, jobject obj, jlong runid);
|
2007-11-03 23:35:00 +00:00
|
|
|
JNIEXPORT jobject JNICALL Java_ase_awk_Context_getglobal (JNIEnv* env, jobject obj, jlong runid, jint id);
|
|
|
|
JNIEXPORT void JNICALL Java_ase_awk_Context_setglobal (JNIEnv* env, jobject obj, jlong runid, jint id, jobject ret);
|
2007-10-18 23:51:00 +00:00
|
|
|
|
2007-10-20 00:02:00 +00:00
|
|
|
JNIEXPORT jlong JNICALL Java_ase_awk_Argument_getintval (JNIEnv* env, jobject obj, jlong runid, jlong valid);
|
|
|
|
JNIEXPORT jdouble JNICALL Java_ase_awk_Argument_getrealval (JNIEnv* env, jobject obj, jlong runid, jlong valid);
|
|
|
|
JNIEXPORT jstring JNICALL Java_ase_awk_Argument_getstrval (JNIEnv* env, jobject obj, jlong runid, jlong valid);
|
2007-10-21 00:06:00 +00:00
|
|
|
JNIEXPORT jboolean JNICALL Java_ase_awk_Argument_isindexed (JNIEnv* env, jobject obj, jlong runid, jlong valid);
|
|
|
|
JNIEXPORT jobject JNICALL Java_ase_awk_Argument_getindexed (JNIEnv* env, jobject obj, jlong runid, jlong valid, jstring index);
|
2007-11-03 23:35:00 +00:00
|
|
|
JNIEXPORT void JNICALL Java_ase_awk_Argument_clearval (JNIEnv* env, jobject obj, jlong runid, jlong valid);
|
2007-10-18 23:51:00 +00:00
|
|
|
|
2007-10-25 23:43:00 +00:00
|
|
|
JNIEXPORT jboolean JNICALL Java_ase_awk_Return_isindexed (JNIEnv* env, jobject obj, jlong runid, jlong valid);
|
2007-10-24 00:18:00 +00:00
|
|
|
JNIEXPORT void JNICALL Java_ase_awk_Return_setintval (JNIEnv* env, jobject obj, jlong runid, jlong valid, jlong newval);
|
2007-10-24 18:57:00 +00:00
|
|
|
JNIEXPORT void JNICALL Java_ase_awk_Return_setrealval (JNIEnv* env, jobject obj, jlong runid, jlong valid, jdouble newval);
|
2007-10-24 23:17:00 +00:00
|
|
|
JNIEXPORT void JNICALL Java_ase_awk_Return_setstrval (JNIEnv* env, jobject obj, jlong runid, jlong valid, jstring newval);
|
2007-10-25 23:43:00 +00:00
|
|
|
JNIEXPORT void JNICALL Java_ase_awk_Return_setindexedintval (JNIEnv* env, jobject obj, jlong runid, jlong valid, jstring index, jlong newval);
|
|
|
|
JNIEXPORT void JNICALL Java_ase_awk_Return_setindexedrealval (JNIEnv* env, jobject obj, jlong runid, jlong valid, jstring index, jdouble newval);
|
|
|
|
JNIEXPORT void JNICALL Java_ase_awk_Return_setindexedstrval (JNIEnv* env, jobject obj, jlong runid, jlong valid, jstring index, jstring newval);
|
2007-10-24 23:17:00 +00:00
|
|
|
JNIEXPORT void JNICALL Java_ase_awk_Return_clearval (JNIEnv* env, jobject obj, jlong runid, jlong valid);
|
2007-10-24 00:18:00 +00:00
|
|
|
|
2007-05-02 01:07:00 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|