src/video/mir/SDL_mirdyn.h
author bschaefer
Sun, 21 Feb 2016 15:19:35 -0800
changeset 10089 25fda20d0173
parent 10079 6eaf52c8d398
child 10737 3406a0f8b041
permissions -rw-r--r--
Fix API/ABI breakage in Mir 0.13/0.14.
icculus@8159
     1
/*
icculus@8159
     2
  Simple DirectMedia Layer
slouken@9998
     3
  Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
icculus@8159
     4
icculus@8159
     5
  This software is provided 'as-is', without any express or implied
icculus@8159
     6
  warranty.  In no event will the authors be held liable for any damages
icculus@8159
     7
  arising from the use of this software.
icculus@8159
     8
icculus@8159
     9
  Permission is granted to anyone to use this software for any purpose,
icculus@8159
    10
  including commercial applications, and to alter it and redistribute it
icculus@8159
    11
  freely, subject to the following restrictions:
icculus@8159
    12
icculus@8159
    13
  1. The origin of this software must not be misrepresented; you must not
icculus@8159
    14
     claim that you wrote the original software. If you use this software
icculus@8159
    15
     in a product, an acknowledgment in the product documentation would be
icculus@8159
    16
     appreciated but is not required.
icculus@8159
    17
  2. Altered source versions must be plainly marked as such, and must not be
icculus@8159
    18
     misrepresented as being the original software.
icculus@8159
    19
  3. This notice may not be removed or altered from any source distribution.
icculus@8159
    20
*/
icculus@8159
    21
icculus@8159
    22
#ifndef _SDL_mirdyn_h
icculus@8159
    23
#define _SDL_mirdyn_h
icculus@8159
    24
icculus@8159
    25
#include "../../SDL_internal.h"
icculus@8159
    26
icculus@8159
    27
#include <EGL/egl.h>
icculus@8159
    28
#include <mir_toolkit/mir_client_library.h>
icculus@8159
    29
#include <xkbcommon/xkbcommon.h>
icculus@8159
    30
icculus@8159
    31
#ifdef __cplusplus
icculus@8159
    32
extern "C" {
icculus@8159
    33
#endif
icculus@8159
    34
icculus@8159
    35
int SDL_MIR_LoadSymbols(void);
icculus@8159
    36
void SDL_MIR_UnloadSymbols(void);
icculus@8159
    37
icculus@8159
    38
/* Declare all the function pointers and wrappers... */
icculus@8159
    39
#define SDL_MIR_SYM(rc,fn,params) \
icculus@8159
    40
    typedef rc (*SDL_DYNMIRFN_##fn) params; \
icculus@8159
    41
    extern SDL_DYNMIRFN_##fn MIR_##fn;
bschaefer@10089
    42
#define SDL_MIR_SYM_CONST(type, name) \
bschaefer@10089
    43
    typedef type SDL_DYMMIRCONST_##name; \
bschaefer@10089
    44
    extern SDL_DYMMIRCONST_##name MIR_##name;
icculus@8159
    45
#include "SDL_mirsym.h"
icculus@8159
    46
icculus@8159
    47
#ifdef __cplusplus
icculus@8159
    48
}
icculus@8159
    49
#endif
icculus@8159
    50
icculus@8159
    51
#endif /* !defined _SDL_mirdyn_h */
icculus@8159
    52
icculus@8159
    53
/* vi: set ts=4 sw=4 expandtab: */