include/SDL_system.h
author Sam Lantinga <slouken@libsdl.org>
Fri, 22 Jun 2012 19:19:18 -0400
changeset 6342 ac83b73f0edd
child 6346 56871d364efc
permissions -rw-r--r--
Created a header file for system dependent API functions, and added SDL_iPhoneSetAnimationCallback()
slouken@6342
     1
/*
slouken@6342
     2
  Simple DirectMedia Layer
slouken@6342
     3
  Copyright (C) 1997-2012 Sam Lantinga <slouken@libsdl.org>
slouken@6342
     4
slouken@6342
     5
  This software is provided 'as-is', without any express or implied
slouken@6342
     6
  warranty.  In no event will the authors be held liable for any damages
slouken@6342
     7
  arising from the use of this software.
slouken@6342
     8
slouken@6342
     9
  Permission is granted to anyone to use this software for any purpose,
slouken@6342
    10
  including commercial applications, and to alter it and redistribute it
slouken@6342
    11
  freely, subject to the following restrictions:
slouken@6342
    12
slouken@6342
    13
  1. The origin of this software must not be misrepresented; you must not
slouken@6342
    14
     claim that you wrote the original software. If you use this software
slouken@6342
    15
     in a product, an acknowledgment in the product documentation would be
slouken@6342
    16
     appreciated but is not required.
slouken@6342
    17
  2. Altered source versions must be plainly marked as such, and must not be
slouken@6342
    18
     misrepresented as being the original software.
slouken@6342
    19
  3. This notice may not be removed or altered from any source distribution.
slouken@6342
    20
*/
slouken@6342
    21
slouken@6342
    22
/**
slouken@6342
    23
 *  \file SDL_system.h
slouken@6342
    24
 *  
slouken@6342
    25
 *  Include file for platform specific SDL API functions
slouken@6342
    26
 */
slouken@6342
    27
slouken@6342
    28
#ifndef _SDL_system_h
slouken@6342
    29
#define _SDL_system_h
slouken@6342
    30
slouken@6342
    31
#include "SDL_stdinc.h"
slouken@6342
    32
slouken@6342
    33
#include "begin_code.h"
slouken@6342
    34
/* Set up for C function definitions, even when using C++ */
slouken@6342
    35
#ifdef __cplusplus
slouken@6342
    36
/* *INDENT-OFF* */
slouken@6342
    37
extern "C" {
slouken@6342
    38
/* *INDENT-ON* */
slouken@6342
    39
#endif
slouken@6342
    40
slouken@6342
    41
#if __IPHONEOS__
slouken@6342
    42
slouken@6342
    43
#include "SDL_video.h"
slouken@6342
    44
slouken@6342
    45
extern DECLSPEC int SDLCALL SDL_iPhoneSetAnimationCallback(SDL_Window * window, int interval, void (*callback)(void*), void *callbackParam);
slouken@6342
    46
slouken@6342
    47
extern DECLSPEC int SDLCALL SDL_iPhoneKeyboardShow(SDL_Window * window);
slouken@6342
    48
extern DECLSPEC int SDLCALL SDL_iPhoneKeyboardHide(SDL_Window * window);
slouken@6342
    49
extern DECLSPEC SDL_bool SDLCALL SDL_iPhoneKeyboardIsShown(SDL_Window * window);
slouken@6342
    50
extern DECLSPEC int SDLCALL SDL_iPhoneKeyboardToggle(SDL_Window * window);
slouken@6342
    51
slouken@6342
    52
#endif
slouken@6342
    53
slouken@6342
    54
/* Ends C function definitions when using C++ */
slouken@6342
    55
#ifdef __cplusplus
slouken@6342
    56
/* *INDENT-OFF* */
slouken@6342
    57
}
slouken@6342
    58
/* *INDENT-ON* */
slouken@6342
    59
#endif
slouken@6342
    60
#include "close_code.h"
slouken@6342
    61
slouken@6342
    62
#endif /* _SDL_system_h */
slouken@6342
    63
slouken@6342
    64
/* vi: set ts=4 sw=4 expandtab: */