src/SDL_android.h
changeset 5000 6a10693e66c3
parent 4998 a514bfe6952a
     1.1 --- a/src/SDL_android.h	Thu Jan 13 17:13:00 2011 -0800
     1.2 +++ b/src/SDL_android.h	Thu Jan 13 18:03:56 2011 -0800
     1.3 @@ -29,15 +29,16 @@
     1.4  #endif
     1.5  
     1.6  /* Interface from the SDL library into the Android Java activity */
     1.7 -void Android_JNI_CreateContext();
     1.8 -void Android_JNI_SwapWindow();
     1.9 -void Android_JNI_SetActivityTitle(const char *title);
    1.10 +extern void Android_JNI_CreateContext();
    1.11 +extern void Android_JNI_SwapWindow();
    1.12 +extern void Android_JNI_SetActivityTitle(const char *title);
    1.13 +extern void Android_JNI_GetAccelerometerValues(float values[3]);
    1.14  
    1.15  // Audio support
    1.16 -int Android_JNI_OpenAudioDevice(int sampleRate, int is16Bit, int channelCount, int desiredBufferFrames);
    1.17 -void* Android_JNI_GetAudioBuffer();
    1.18 -void Android_JNI_WriteAudioBuffer();
    1.19 -void Android_JNI_CloseAudioDevice();
    1.20 +extern int Android_JNI_OpenAudioDevice(int sampleRate, int is16Bit, int channelCount, int desiredBufferFrames);
    1.21 +extern void* Android_JNI_GetAudioBuffer();
    1.22 +extern void Android_JNI_WriteAudioBuffer();
    1.23 +extern void Android_JNI_CloseAudioDevice();
    1.24  
    1.25  /* Ends C function definitions when using C++ */
    1.26  #ifdef __cplusplus