src/video/mir/SDL_mirsym.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.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
8159
427e8fdf6f69 Hooked up dynamic loading for Mir.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     1
/*
427e8fdf6f69 Hooked up dynamic loading for Mir.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     2
  Simple DirectMedia Layer
9998
f67cf37e9cd4 Updated copyright to 2016
Sam Lantinga <slouken@libsdl.org>
parents: 9619
diff changeset
     3
  Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>
8159
427e8fdf6f69 Hooked up dynamic loading for Mir.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     4
427e8fdf6f69 Hooked up dynamic loading for Mir.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     5
  This software is provided 'as-is', without any express or implied
427e8fdf6f69 Hooked up dynamic loading for Mir.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     6
  warranty.  In no event will the authors be held liable for any damages
427e8fdf6f69 Hooked up dynamic loading for Mir.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     7
  arising from the use of this software.
427e8fdf6f69 Hooked up dynamic loading for Mir.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     8
427e8fdf6f69 Hooked up dynamic loading for Mir.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     9
  Permission is granted to anyone to use this software for any purpose,
427e8fdf6f69 Hooked up dynamic loading for Mir.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    10
  including commercial applications, and to alter it and redistribute it
427e8fdf6f69 Hooked up dynamic loading for Mir.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    11
  freely, subject to the following restrictions:
427e8fdf6f69 Hooked up dynamic loading for Mir.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    12
427e8fdf6f69 Hooked up dynamic loading for Mir.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    13
  1. The origin of this software must not be misrepresented; you must not
427e8fdf6f69 Hooked up dynamic loading for Mir.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    14
     claim that you wrote the original software. If you use this software
427e8fdf6f69 Hooked up dynamic loading for Mir.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    15
     in a product, an acknowledgment in the product documentation would be
427e8fdf6f69 Hooked up dynamic loading for Mir.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    16
     appreciated but is not required.
427e8fdf6f69 Hooked up dynamic loading for Mir.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    17
  2. Altered source versions must be plainly marked as such, and must not be
427e8fdf6f69 Hooked up dynamic loading for Mir.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    18
     misrepresented as being the original software.
427e8fdf6f69 Hooked up dynamic loading for Mir.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    19
  3. This notice may not be removed or altered from any source distribution.
427e8fdf6f69 Hooked up dynamic loading for Mir.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    20
*/
427e8fdf6f69 Hooked up dynamic loading for Mir.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    21
427e8fdf6f69 Hooked up dynamic loading for Mir.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    22
/* *INDENT-OFF* */
427e8fdf6f69 Hooked up dynamic loading for Mir.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    23
10079
6eaf52c8d398 x11/wayland/mir: Make the dynamic loading macro salsa a little less messy.
Ryan C. Gordon <icculus@icculus.org>
parents: 9998
diff changeset
    24
#ifndef SDL_MIR_MODULE
6eaf52c8d398 x11/wayland/mir: Make the dynamic loading macro salsa a little less messy.
Ryan C. Gordon <icculus@icculus.org>
parents: 9998
diff changeset
    25
#define SDL_MIR_MODULE(modname)
6eaf52c8d398 x11/wayland/mir: Make the dynamic loading macro salsa a little less messy.
Ryan C. Gordon <icculus@icculus.org>
parents: 9998
diff changeset
    26
#endif
6eaf52c8d398 x11/wayland/mir: Make the dynamic loading macro salsa a little less messy.
Ryan C. Gordon <icculus@icculus.org>
parents: 9998
diff changeset
    27
6eaf52c8d398 x11/wayland/mir: Make the dynamic loading macro salsa a little less messy.
Ryan C. Gordon <icculus@icculus.org>
parents: 9998
diff changeset
    28
#ifndef SDL_MIR_SYM
6eaf52c8d398 x11/wayland/mir: Make the dynamic loading macro salsa a little less messy.
Ryan C. Gordon <icculus@icculus.org>
parents: 9998
diff changeset
    29
#define SDL_MIR_SYM(rc,fn,params)
6eaf52c8d398 x11/wayland/mir: Make the dynamic loading macro salsa a little less messy.
Ryan C. Gordon <icculus@icculus.org>
parents: 9998
diff changeset
    30
#endif
6eaf52c8d398 x11/wayland/mir: Make the dynamic loading macro salsa a little less messy.
Ryan C. Gordon <icculus@icculus.org>
parents: 9998
diff changeset
    31
8159
427e8fdf6f69 Hooked up dynamic loading for Mir.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    32
SDL_MIR_MODULE(MIR_CLIENT)
427e8fdf6f69 Hooked up dynamic loading for Mir.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    33
SDL_MIR_SYM(MirDisplayConfiguration*,mir_connection_create_display_config,(MirConnection *connection))
427e8fdf6f69 Hooked up dynamic loading for Mir.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    34
SDL_MIR_SYM(MirSurface *,mir_connection_create_surface_sync,(MirConnection *connection, MirSurfaceParameters const *params))
427e8fdf6f69 Hooked up dynamic loading for Mir.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    35
SDL_MIR_SYM(void,mir_connection_get_available_surface_formats,(MirConnection* connection, MirPixelFormat* formats, unsigned const int format_size, unsigned int *num_valid_formats))
427e8fdf6f69 Hooked up dynamic loading for Mir.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    36
SDL_MIR_SYM(MirEGLNativeDisplayType,mir_connection_get_egl_native_display,(MirConnection *connection))
9185
43f4122e1268 Merge patch for bug 2750. Thanks Sylvain!
Brandon Schaefer <brandon.schaefer@canonical.com>
parents: 8159
diff changeset
    37
SDL_MIR_SYM(MirBool,mir_connection_is_valid,(MirConnection *connection))
8159
427e8fdf6f69 Hooked up dynamic loading for Mir.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    38
SDL_MIR_SYM(void,mir_connection_release,(MirConnection *connection))
427e8fdf6f69 Hooked up dynamic loading for Mir.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    39
SDL_MIR_SYM(MirConnection *,mir_connect_sync,(char const *server, char const *app_name))
427e8fdf6f69 Hooked up dynamic loading for Mir.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    40
SDL_MIR_SYM(void,mir_display_config_destroy,(MirDisplayConfiguration* display_configuration))
427e8fdf6f69 Hooked up dynamic loading for Mir.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    41
SDL_MIR_SYM(MirEGLNativeWindowType,mir_surface_get_egl_native_window,(MirSurface *surface))
427e8fdf6f69 Hooked up dynamic loading for Mir.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    42
SDL_MIR_SYM(char const *,mir_surface_get_error_message,(MirSurface *surface))
427e8fdf6f69 Hooked up dynamic loading for Mir.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    43
SDL_MIR_SYM(void,mir_surface_get_graphics_region,(MirSurface *surface, MirGraphicsRegion *graphics_region))
427e8fdf6f69 Hooked up dynamic loading for Mir.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    44
SDL_MIR_SYM(void,mir_surface_get_parameters,(MirSurface *surface, MirSurfaceParameters *parameters))
9185
43f4122e1268 Merge patch for bug 2750. Thanks Sylvain!
Brandon Schaefer <brandon.schaefer@canonical.com>
parents: 8159
diff changeset
    45
SDL_MIR_SYM(MirBool,mir_surface_is_valid,(MirSurface *surface))
8159
427e8fdf6f69 Hooked up dynamic loading for Mir.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    46
SDL_MIR_SYM(void,mir_surface_release_sync,(MirSurface *surface))
427e8fdf6f69 Hooked up dynamic loading for Mir.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    47
SDL_MIR_SYM(void,mir_surface_set_event_handler,(MirSurface *surface, MirEventDelegate const *event_handler))
427e8fdf6f69 Hooked up dynamic loading for Mir.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    48
SDL_MIR_SYM(MirWaitHandle*,mir_surface_set_type,(MirSurface *surface, MirSurfaceType type))
9185
43f4122e1268 Merge patch for bug 2750. Thanks Sylvain!
Brandon Schaefer <brandon.schaefer@canonical.com>
parents: 8159
diff changeset
    49
SDL_MIR_SYM(MirWaitHandle*,mir_surface_set_state,(MirSurface *surface, MirSurfaceState state))
8159
427e8fdf6f69 Hooked up dynamic loading for Mir.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    50
SDL_MIR_SYM(void,mir_surface_swap_buffers_sync,(MirSurface *surface))
427e8fdf6f69 Hooked up dynamic loading for Mir.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    51
427e8fdf6f69 Hooked up dynamic loading for Mir.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    52
SDL_MIR_MODULE(XKBCOMMON)
427e8fdf6f69 Hooked up dynamic loading for Mir.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    53
SDL_MIR_SYM(int,xkb_keysym_to_utf8,(xkb_keysym_t keysym, char *buffer, size_t size))
427e8fdf6f69 Hooked up dynamic loading for Mir.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    54
10079
6eaf52c8d398 x11/wayland/mir: Make the dynamic loading macro salsa a little less messy.
Ryan C. Gordon <icculus@icculus.org>
parents: 9998
diff changeset
    55
#undef SDL_MIR_MODULE
6eaf52c8d398 x11/wayland/mir: Make the dynamic loading macro salsa a little less messy.
Ryan C. Gordon <icculus@icculus.org>
parents: 9998
diff changeset
    56
#undef SDL_MIR_SYM
6eaf52c8d398 x11/wayland/mir: Make the dynamic loading macro salsa a little less messy.
Ryan C. Gordon <icculus@icculus.org>
parents: 9998
diff changeset
    57
8159
427e8fdf6f69 Hooked up dynamic loading for Mir.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    58
/* *INDENT-ON* */
427e8fdf6f69 Hooked up dynamic loading for Mir.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    59
427e8fdf6f69 Hooked up dynamic loading for Mir.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    60
/* vi: set ts=4 sw=4 expandtab: */