src/core/android/SDL_android.h
author Sam Lantinga <slouken@libsdl.org>
Mon, 24 Jan 2011 21:20:30 -0800
changeset 5090 327f181542f1
parent 5000 src/SDL_android.h@6a10693e66c3
child 5222 c66b2a778b7e
permissions -rw-r--r--
Include windows.h in a single point in the source, so we can be consistent about the definition of UNICODE and have core utility functions for Windows that all modules can share.

I think this also fixes the bug relating to non-latin characters in filenames, since UNICODE wasn't defined in SDL_rwops.c
slouken@4994
     1
/*
slouken@4994
     2
    SDL - Simple DirectMedia Layer
slouken@4994
     3
    Copyright (C) 1997-2010 Sam Lantinga
slouken@4994
     4
slouken@4994
     5
    This library is free software; you can redistribute it and/or
slouken@4994
     6
    modify it under the terms of the GNU Lesser General Public
slouken@4994
     7
    License as published by the Free Software Foundation; either
slouken@4994
     8
    version 2.1 of the License, or (at your option) any later version.
slouken@4994
     9
slouken@4994
    10
    This library is distributed in the hope that it will be useful,
slouken@4994
    11
    but WITHOUT ANY WARRANTY; without even the implied warranty of
slouken@4994
    12
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
slouken@4994
    13
    Lesser General Public License for more details.
slouken@4994
    14
slouken@4994
    15
    You should have received a copy of the GNU Lesser General Public
slouken@4994
    16
    License along with this library; if not, write to the Free Software
slouken@4994
    17
    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
slouken@4994
    18
slouken@4994
    19
    Sam Lantinga
slouken@4994
    20
    slouken@libsdl.org
slouken@4994
    21
*/
slouken@4994
    22
#include "SDL_config.h"
slouken@4994
    23
slouken@4994
    24
/* Set up for C function definitions, even when using C++ */
slouken@4994
    25
#ifdef __cplusplus
slouken@4994
    26
/* *INDENT-OFF* */
slouken@4994
    27
extern "C" {
slouken@4994
    28
/* *INDENT-ON* */
slouken@4994
    29
#endif
slouken@4994
    30
slouken@4994
    31
/* Interface from the SDL library into the Android Java activity */
slouken@5000
    32
extern void Android_JNI_CreateContext();
slouken@5000
    33
extern void Android_JNI_SwapWindow();
slouken@5000
    34
extern void Android_JNI_SetActivityTitle(const char *title);
slouken@5000
    35
extern void Android_JNI_GetAccelerometerValues(float values[3]);
slouken@4995
    36
slouken@4995
    37
// Audio support
slouken@5000
    38
extern int Android_JNI_OpenAudioDevice(int sampleRate, int is16Bit, int channelCount, int desiredBufferFrames);
slouken@5000
    39
extern void* Android_JNI_GetAudioBuffer();
slouken@5000
    40
extern void Android_JNI_WriteAudioBuffer();
slouken@5000
    41
extern void Android_JNI_CloseAudioDevice();
slouken@4994
    42
slouken@4994
    43
/* Ends C function definitions when using C++ */
slouken@4994
    44
#ifdef __cplusplus
slouken@4994
    45
/* *INDENT-OFF* */
slouken@4994
    46
}
slouken@4994
    47
/* *INDENT-ON* */
slouken@4994
    48
#endif
slouken@4994
    49
slouken@4994
    50
/* vi: set ts=4 sw=4 expandtab: */