src/video/mir/SDL_mirdyn.h
author Sam Lantinga <slouken@libsdl.org>
Wed, 03 Jan 2018 10:03:25 -0800
changeset 11811 5d94cb6b24d3
parent 11382 2c50e79b19e0
permissions -rw-r--r--
Updated copyright for 2018
icculus@8159
     1
/*
icculus@8159
     2
  Simple DirectMedia Layer
slouken@11811
     3
  Copyright (C) 1997-2018 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
slouken@11382
    22
#ifndef SDL_mirdyn_h_
slouken@11382
    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
slouken@11382
    51
#endif /* !defined SDL_mirdyn_h_ */
icculus@8159
    52
icculus@8159
    53
/* vi: set ts=4 sw=4 expandtab: */