include/SDL_system.h
changeset 8477 ad08f0d710f3
parent 8453 499aa167ea79
parent 7264 23a5c8f4b312
child 8500 f25ef28d61e8
equal deleted inserted replaced
8476:25883bdf3cab 8477:ad08f0d710f3
    19   3. This notice may not be removed or altered from any source distribution.
    19   3. This notice may not be removed or altered from any source distribution.
    20 */
    20 */
    21 
    21 
    22 /**
    22 /**
    23  *  \file SDL_system.h
    23  *  \file SDL_system.h
    24  *  
    24  *
    25  *  Include file for platform specific SDL API functions
    25  *  Include file for platform specific SDL API functions
    26  */
    26  */
    27 
    27 
    28 #ifndef _SDL_system_h
    28 #ifndef _SDL_system_h
    29 #define _SDL_system_h
    29 #define _SDL_system_h
    36 #endif
    36 #endif
    37 
    37 
    38 #include "begin_code.h"
    38 #include "begin_code.h"
    39 /* Set up for C function definitions, even when using C++ */
    39 /* Set up for C function definitions, even when using C++ */
    40 #ifdef __cplusplus
    40 #ifdef __cplusplus
    41 /* *INDENT-OFF* */
       
    42 extern "C" {
    41 extern "C" {
    43 /* *INDENT-ON* */
       
    44 #endif
    42 #endif
    45 
    43 
    46 /* Platform specific functions for iOS */
    44 /* Platform specific functions for iOS */
    47 #if defined(__IPHONEOS__) && __IPHONEOS__
    45 #if defined(__IPHONEOS__) && __IPHONEOS__
    48 
    46 
    60  */
    58  */
    61 extern DECLSPEC void * SDLCALL SDL_AndroidGetJNIEnv();
    59 extern DECLSPEC void * SDLCALL SDL_AndroidGetJNIEnv();
    62 
    60 
    63 /* Get the SDL Activity object for the application
    61 /* Get the SDL Activity object for the application
    64    This returns jobject, but the prototype is void* so we don't need jni.h
    62    This returns jobject, but the prototype is void* so we don't need jni.h
       
    63    The jobject returned by SDL_AndroidGetActivity is a local reference.
       
    64    It is the caller's responsibility to properly release it
       
    65    (using env->Push/PopLocalFrame or manually with env->DeleteLocalRef)
    65  */
    66  */
    66 extern DECLSPEC void * SDLCALL SDL_AndroidGetActivity();
    67 extern DECLSPEC void * SDLCALL SDL_AndroidGetActivity();
    67 
    68 
    68 /* See the official Android developer guide for more information:
    69 /* See the official Android developer guide for more information:
    69    http://developer.android.com/guide/topics/data/data-storage.html
    70    http://developer.android.com/guide/topics/data/data-storage.html
   158 #endif /* __WINRT__ */
   159 #endif /* __WINRT__ */
   159 
   160 
   160 
   161 
   161 /* Ends C function definitions when using C++ */
   162 /* Ends C function definitions when using C++ */
   162 #ifdef __cplusplus
   163 #ifdef __cplusplus
   163 /* *INDENT-OFF* */
       
   164 }
   164 }
   165 /* *INDENT-ON* */
       
   166 #endif
   165 #endif
   167 #include "close_code.h"
   166 #include "close_code.h"
   168 
   167 
   169 #endif /* _SDL_system_h */
   168 #endif /* _SDL_system_h */
   170 
   169