src/video/mir/SDL_mirdyn.h
author Ryan C. Gordon <icculus@icculus.org>
Thu, 18 Feb 2016 23:27:58 -0500
changeset 10079 6eaf52c8d398
parent 9998 f67cf37e9cd4
child 10089 25fda20d0173
permissions -rw-r--r--
x11/wayland/mir: Make the dynamic loading macro salsa a little less messy.
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;
icculus@8159
    42
#include "SDL_mirsym.h"
icculus@8159
    43
icculus@8159
    44
#ifdef __cplusplus
icculus@8159
    45
}
icculus@8159
    46
#endif
icculus@8159
    47
icculus@8159
    48
#endif /* !defined _SDL_mirdyn_h */
icculus@8159
    49
icculus@8159
    50
/* vi: set ts=4 sw=4 expandtab: */