From ce70965ea04ae7d8bebd6aa44d872219670235c5 Mon Sep 17 00:00:00 2001 From: athomas Date: Tue, 8 Jul 2003 21:14:25 +0000 Subject: added support for compiling under Linux git-svn-id: file:///home/mbien/NetBeansProjects/JOGAMP/joal-sync/git-svn/../svn-server-sync/joal/trunk@46 03bf7f67-59de-4072-a415-9a990d468a3f --- src/native/alcbind.c | 5 +++++ src/native/alcbind.h | 4 ++-- src/native/build.xml | 48 +++++++++++++++++++++++++++++++++++------------- 3 files changed, 42 insertions(+), 15 deletions(-) (limited to 'src/native') diff --git a/src/native/alcbind.c b/src/native/alcbind.c index e9a64a8..5933810 100644 --- a/src/native/alcbind.c +++ b/src/native/alcbind.c @@ -35,6 +35,11 @@ #include "alcbind.h" #include "extal.h" +JNIEXPORT jint JNICALL Java_net_java_games_joal_ALCImpl_alcGetErrorNative + (JNIEnv *env, jobject obj, jint pointer) { + return alcGetError((ALCdevice*)pointer); +} + JNIEXPORT jint JNICALL Java_net_java_games_joal_ALCImpl_openDeviceNative (JNIEnv *env, jobject obj, jstring deviceName) { diff --git a/src/native/alcbind.h b/src/native/alcbind.h index 27ceffe..f4a6212 100644 --- a/src/native/alcbind.h +++ b/src/native/alcbind.h @@ -99,8 +99,8 @@ JNIEXPORT void JNICALL Java_net_java_games_joal_ALCImpl_destroyContextNative * Method: alcGetError * Signature: ()I */ -JNIEXPORT jint JNICALL Java_net_java_games_joal_ALCImpl_alcGetError - (JNIEnv *, jobject); +JNIEXPORT jint JNICALL Java_net_java_games_joal_ALCImpl_alcGetErrorNative + (JNIEnv *, jobject, jint pointer); /* * Class: net_java_games_joal_ALCImpl diff --git a/src/native/build.xml b/src/native/build.xml index 531da19..7f28128 100644 --- a/src/native/build.xml +++ b/src/native/build.xml @@ -1,4 +1,4 @@ - +