2006-08-02 15:03:49 +00:00
|
|
|
/*
|
2007-02-01 07:24:00 +00:00
|
|
|
* $Id: jni.h,v 1.21 2007-02-01 07:23:59 bacon Exp $
|
2006-08-02 15:03:49 +00:00
|
|
|
*/
|
|
|
|
|
2006-10-24 04:10:12 +00:00
|
|
|
#ifndef _ASE_AWK_JNI_H_
|
|
|
|
#define _ASE_AWK_JNI_H_
|
2006-08-02 15:03:49 +00:00
|
|
|
|
2007-01-30 10:55:27 +00:00
|
|
|
#if defined(__APPLE__) && defined(__MACH__)
|
|
|
|
#include <JavaVM/jni.h>
|
|
|
|
#else
|
2006-08-02 15:03:49 +00:00
|
|
|
#include <jni.h>
|
2007-01-30 10:55:27 +00:00
|
|
|
#endif
|
2006-08-02 15:03:49 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2006-11-27 15:11:14 +00:00
|
|
|
JNIEXPORT void JNICALL Java_ase_awk_Awk_open (JNIEnv* env, jobject obj);
|
|
|
|
JNIEXPORT void JNICALL Java_ase_awk_Awk_close (JNIEnv* env, jobject obj);
|
|
|
|
JNIEXPORT void JNICALL Java_ase_awk_Awk_parse (JNIEnv* env, jobject obj);
|
2007-02-01 07:24:00 +00:00
|
|
|
JNIEXPORT void JNICALL Java_ase_awk_Awk_run (
|
|
|
|
JNIEnv* env, jobject obj, jstring mfn, jobjectArray args);
|
2006-11-27 15:11:14 +00:00
|
|
|
|
2007-01-23 14:23:18 +00:00
|
|
|
JNIEXPORT void JNICALL Java_ase_awk_Awk_addbfn (
|
2006-11-27 15:11:14 +00:00
|
|
|
JNIEnv* env, jobject obj, jstring name, jint min_args, jint max_args);
|
2007-01-23 14:23:18 +00:00
|
|
|
JNIEXPORT void JNICALL Java_ase_awk_Awk_delbfn (
|
2006-11-29 02:39:10 +00:00
|
|
|
JNIEnv* env, jobject obj, jstring name);
|
|
|
|
|
2007-01-23 14:23:18 +00:00
|
|
|
JNIEXPORT jint JNICALL Java_ase_awk_Awk_getmaxdepth (
|
|
|
|
JNIEnv* env, jobject obj, jint id);
|
|
|
|
JNIEXPORT void JNICALL Java_ase_awk_Awk_setmaxdepth (
|
|
|
|
JNIEnv* env, jobject obj, jint ids, jint depth);
|
|
|
|
|
2007-01-25 14:14:56 +00:00
|
|
|
JNIEXPORT jint JNICALL Java_ase_awk_Awk_getoption (
|
|
|
|
JNIEnv* env, jobject obj);
|
|
|
|
JNIEXPORT void JNICALL Java_ase_awk_Awk_setoption (
|
|
|
|
JNIEnv* env, jobject obj, jint options);
|
|
|
|
|
|
|
|
JNIEXPORT jboolean JNICALL Java_ase_awk_Awk_getdebug (
|
|
|
|
JNIEnv* env, jobject obj);
|
|
|
|
JNIEXPORT void JNICALL Java_ase_awk_Awk_setdebug (
|
|
|
|
JNIEnv* env, jobject obj, jboolean debug);
|
|
|
|
|
2007-01-24 11:54:16 +00:00
|
|
|
JNIEXPORT void JNICALL Java_ase_awk_Awk_setfilename (
|
2006-12-02 16:26:29 +00:00
|
|
|
JNIEnv* env, jobject obj, jlong runid, jstring name);
|
2007-01-24 11:54:16 +00:00
|
|
|
JNIEXPORT void JNICALL Java_ase_awk_Awk_setofilename (
|
2006-12-02 16:26:29 +00:00
|
|
|
JNIEnv* env, jobject obj, jlong runid, jstring name);
|
2007-01-25 14:14:56 +00:00
|
|
|
|
2006-12-02 16:26:29 +00:00
|
|
|
JNIEXPORT jobject JNICALL Java_ase_awk_Awk_strtonum (
|
|
|
|
JNIEnv* env, jobject obj, jlong runid, jstring str);
|
2007-01-25 14:14:56 +00:00
|
|
|
JNIEXPORT jstring JNICALL Java_ase_awk_Awk_valtostr (
|
2007-01-28 11:12:30 +00:00
|
|
|
JNIEnv* env, jobject obj, jlong runid, jobject val);
|
2006-08-02 15:03:49 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|