src/video/mir/SDL_mirdyn.h
author Sam Lantinga <slouken@libsdl.org>
Sat, 02 Jan 2016 10:10:34 -0800
changeset 9998 f67cf37e9cd4
parent 9619 b94b6d0bff0f
child 10079 6eaf52c8d398
permissions -rw-r--r--
Updated copyright to 2016
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_MODULE(modname)
icculus@8159
    40
#define SDL_MIR_SYM(rc,fn,params) \
icculus@8159
    41
    typedef rc (*SDL_DYNMIRFN_##fn) params; \
icculus@8159
    42
    extern SDL_DYNMIRFN_##fn MIR_##fn;
icculus@8159
    43
#include "SDL_mirsym.h"
icculus@8159
    44
#undef SDL_MIR_MODULE
icculus@8159
    45
#undef SDL_MIR_SYM
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: */