src/video/android/SDL_androidclipboard.c
author Sylvain Becker <sylvain.becker@gmail.com>
Thu, 03 Jan 2019 16:22:33 +0100
changeset 12497 9e13f3286831
parent 11811 5d94cb6b24d3
child 12503 806492103856
permissions -rw-r--r--
Android: prevent the error message from SDL_EGL_CreateSurface() to be masked.
slouken@6888
     1
/*
slouken@6888
     2
  Simple DirectMedia Layer
slouken@11811
     3
  Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org>
slouken@6888
     4
slouken@6888
     5
  This software is provided 'as-is', without any express or implied
slouken@6888
     6
  warranty.  In no event will the authors be held liable for any damages
slouken@6888
     7
  arising from the use of this software.
slouken@6888
     8
slouken@6888
     9
  Permission is granted to anyone to use this software for any purpose,
slouken@6888
    10
  including commercial applications, and to alter it and redistribute it
slouken@6888
    11
  freely, subject to the following restrictions:
slouken@6888
    12
slouken@6888
    13
  1. The origin of this software must not be misrepresented; you must not
slouken@6888
    14
     claim that you wrote the original software. If you use this software
slouken@6888
    15
     in a product, an acknowledgment in the product documentation would be
slouken@6888
    16
     appreciated but is not required.
slouken@6888
    17
  2. Altered source versions must be plainly marked as such, and must not be
slouken@6888
    18
     misrepresented as being the original software.
slouken@6888
    19
  3. This notice may not be removed or altered from any source distribution.
slouken@6888
    20
*/
icculus@8093
    21
#include "../../SDL_internal.h"
slouken@6464
    22
slouken@6464
    23
#if SDL_VIDEO_DRIVER_ANDROID
slouken@6464
    24
slouken@6464
    25
#include "SDL_androidvideo.h"
slouken@10672
    26
#include "SDL_androidclipboard.h"
slouken@6464
    27
#include "../../core/android/SDL_android.h"
slouken@6464
    28
slouken@6464
    29
int
slouken@6464
    30
Android_SetClipboardText(_THIS, const char *text)
slouken@6464
    31
{
philipp@7117
    32
    return Android_JNI_SetClipboardText(text);
slouken@6464
    33
}
slouken@6464
    34
slouken@6464
    35
char *
slouken@6464
    36
Android_GetClipboardText(_THIS)
slouken@6464
    37
{
philipp@7117
    38
    return Android_JNI_GetClipboardText();
slouken@6464
    39
}
slouken@6464
    40
slouken@6464
    41
SDL_bool Android_HasClipboardText(_THIS)
slouken@6464
    42
{
philipp@7117
    43
    return Android_JNI_HasClipboardText();
slouken@6464
    44
}
slouken@6464
    45
slouken@6464
    46
#endif /* SDL_VIDEO_DRIVER_ANDROID */
philipp@7164
    47
philipp@7164
    48
/* vi: set ts=4 sw=4 expandtab: */