summaryrefslogtreecommitdiffstats
path: root/make/joal-common.cfg
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2013-01-31 11:38:54 +0100
committerSven Gothel <[email protected]>2013-01-31 11:38:54 +0100
commit1b7fba6b6e1a53a36afaf72a152c468a4694402a (patch)
tree4e2d4eef1bb5ce2639979ec4208c8390815547a4 /make/joal-common.cfg
parent7c47fc72f44f27979c1631247188d99a21576dc8 (diff)
JOAL Fixes: GlueGen, OpenAL Header, Added scripts/tests.sh,
- OpenAL Header - Unique declaration in al-types.h and alc-types.h, remove duplicates in al.h and alc.h - Use ALproc and ALCproc for opaque pointer return values - GlueGen Fixes - Remove duplicates in extension classes ALExt and ALExtConstants - Push all common configurations to joal-common.cfg - Complete ArgumentIsString for ALC methods - Added scripts/tests.sh for convenient manual testing of single unit test -
Diffstat (limited to 'make/joal-common.cfg')
-rwxr-xr-xmake/joal-common.cfg52
1 files changed, 52 insertions, 0 deletions
diff --git a/make/joal-common.cfg b/make/joal-common.cfg
index 6a2929b..36a8e8b 100755
--- a/make/joal-common.cfg
+++ b/make/joal-common.cfg
@@ -7,3 +7,55 @@ NativeOutputDir gensrc/native/joal
# Raise ALException instead of RuntimeException in glue code
RuntimeExceptionType ALException
+
+# We also have to hack its return type for now because we can't make
+# just that void* opaque
+Opaque long ALproc
+Opaque long ALCproc
+
+# ALCdevice and ALCcontext are 'typesafe' opaque instances,
+# i.e., using Java class instance without allowing the user poking around in them.
+#Opaque long ALCdevice*
+#Opaque long ALCcontext*
+ReturnValueCapacity alcGetContextsDevice 0
+ReturnValueCapacity alcOpenDevice 0
+ReturnValueCapacity alcCaptureOpenDevice 0
+ReturnValueCapacity alcLoopbackOpenDeviceSOFT 0
+ReturnValueCapacity alcCreateContext 0
+ReturnValueCapacity alcGetCurrentContext 0
+ReturnValueCapacity alcGetThreadContext 0
+#ReturnValueCapacity alcGetCurrentDevice 0 ?? does not exist ??
+
+# Mappings for data types
+Opaque boolean ALboolean
+Opaque boolean ALCboolean
+
+# This routine is not exposed in the public API
+AccessControl alGetProcAddress PACKAGE_PRIVATE
+
+# This routine is ignored. The analogous routine alGetProcAddress is
+# broken at least up through OpenAL 1.1 so there is no point in trying
+# to use this routine to look up the ALC function pointers.
+#Ignore alcGetProcAddress
+AccessControl alcGetProcAddress PACKAGE_PRIVATE
+
+# This routine doesn't seem to exist
+Ignore alHint
+
+# These routines use or return strings
+ReturnsString alGetString
+ArgumentIsString alIsExtensionPresent 0
+ArgumentIsString alGetEnumValue 0
+ArgumentIsString alGetProcAddress 0
+
+ReturnsString alcGetString
+ArgumentIsString alcOpenDevice 0
+ArgumentIsString alcIsExtensionPresent 1
+ArgumentIsString alcGetProcAddress 1
+ArgumentIsString alcGetEnumValue 1
+ArgumentIsString alcCaptureOpenDevice 0
+ArgumentIsString alcLoopbackOpenDeviceSOFT 0
+
+## Specify the return length of this function with our own custom strlen
+##ReturnValueCapacity alcGetStringImpl strlen_alc(_device_ptr, {1}, _res)
+