diff src/SDL_android.h @ 5000:6a10693e66c3

Cleaned up internal accelerometer interface
author Sam Lantinga <slouken@libsdl.org>
date Thu, 13 Jan 2011 18:03:56 -0800
parents a514bfe6952a
children
line wrap: on
line diff
--- a/src/SDL_android.h	Thu Jan 13 17:13:00 2011 -0800
+++ b/src/SDL_android.h	Thu Jan 13 18:03:56 2011 -0800
@@ -29,15 +29,16 @@
 #endif
 
 /* Interface from the SDL library into the Android Java activity */
-void Android_JNI_CreateContext();
-void Android_JNI_SwapWindow();
-void Android_JNI_SetActivityTitle(const char *title);
+extern void Android_JNI_CreateContext();
+extern void Android_JNI_SwapWindow();
+extern void Android_JNI_SetActivityTitle(const char *title);
+extern void Android_JNI_GetAccelerometerValues(float values[3]);
 
 // Audio support
-int Android_JNI_OpenAudioDevice(int sampleRate, int is16Bit, int channelCount, int desiredBufferFrames);
-void* Android_JNI_GetAudioBuffer();
-void Android_JNI_WriteAudioBuffer();
-void Android_JNI_CloseAudioDevice();
+extern int Android_JNI_OpenAudioDevice(int sampleRate, int is16Bit, int channelCount, int desiredBufferFrames);
+extern void* Android_JNI_GetAudioBuffer();
+extern void Android_JNI_WriteAudioBuffer();
+extern void Android_JNI_CloseAudioDevice();
 
 /* Ends C function definitions when using C++ */
 #ifdef __cplusplus