src/video/mir/SDL_mirsym.h
author bschaefer
Sun, 21 Feb 2016 15:19:35 -0800
changeset 10089 25fda20d0173
parent 10079 6eaf52c8d398
child 10181 b82c0f22d22a
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
/* *INDENT-OFF* */
icculus@8159
    23
icculus@10079
    24
#ifndef SDL_MIR_MODULE
icculus@10079
    25
#define SDL_MIR_MODULE(modname)
icculus@10079
    26
#endif
icculus@10079
    27
icculus@10079
    28
#ifndef SDL_MIR_SYM
icculus@10079
    29
#define SDL_MIR_SYM(rc,fn,params)
icculus@10079
    30
#endif
icculus@10079
    31
bschaefer@10089
    32
#ifndef SDL_MIR_SYM_CONST
bschaefer@10089
    33
#define SDL_MIR_SYM_CONST(type, name)
bschaefer@10089
    34
#endif
bschaefer@10089
    35
icculus@8159
    36
SDL_MIR_MODULE(MIR_CLIENT)
icculus@8159
    37
SDL_MIR_SYM(MirDisplayConfiguration*,mir_connection_create_display_config,(MirConnection *connection))
bschaefer@10089
    38
SDL_MIR_SYM(MirSurface *,mir_surface_create_sync,(MirSurfaceSpec* spec))
bschaefer@10089
    39
SDL_MIR_SYM(MirEGLNativeWindowType,mir_buffer_stream_get_egl_native_window,(MirBufferStream *surface))
bschaefer@10089
    40
SDL_MIR_SYM(void,mir_buffer_stream_get_graphics_region,(MirBufferStream *stream, MirGraphicsRegion *graphics_region))
bschaefer@10089
    41
SDL_MIR_SYM(void,mir_buffer_stream_swap_buffers_sync,(MirBufferStream *stream))
bschaefer@10089
    42
SDL_MIR_SYM(void,mir_surface_set_event_handler,(MirSurface *surface, mir_surface_event_callback callback, void* context))
bschaefer@10089
    43
SDL_MIR_SYM(MirSurfaceSpec*,mir_connection_create_spec_for_normal_surface,(MirConnection *connection, int width, int height, MirPixelFormat format))
bschaefer@10089
    44
SDL_MIR_SYM(MirSurfaceSpec*,mir_connection_create_spec_for_changes,(MirConnection *connection))
bschaefer@10089
    45
SDL_MIR_SYM(void,mir_surface_spec_set_buffer_usage,(MirSurfaceSpec *spec, MirBufferUsage usage))
bschaefer@10089
    46
SDL_MIR_SYM(void,mir_surface_spec_set_name,(MirSurfaceSpec *spec, char const *name))
bschaefer@10089
    47
SDL_MIR_SYM(void,mir_surface_spec_release,(MirSurfaceSpec *spec))
bschaefer@10089
    48
SDL_MIR_SYM(void,mir_surface_spec_set_width,(MirSurfaceSpec *spec, unsigned width))
bschaefer@10089
    49
SDL_MIR_SYM(void,mir_surface_spec_set_height,(MirSurfaceSpec *spec, unsigned height))
bschaefer@10089
    50
SDL_MIR_SYM(void,mir_surface_spec_set_min_width,(MirSurfaceSpec *spec, unsigned min_width))
bschaefer@10089
    51
SDL_MIR_SYM(void,mir_surface_spec_set_min_height,(MirSurfaceSpec *spec, unsigned min_height))
bschaefer@10089
    52
SDL_MIR_SYM(void,mir_surface_spec_set_max_width,(MirSurfaceSpec *spec, unsigned max_width))
bschaefer@10089
    53
SDL_MIR_SYM(void,mir_surface_spec_set_max_height,(MirSurfaceSpec *spec, unsigned max_height))
bschaefer@10089
    54
SDL_MIR_SYM(void,mir_surface_spec_set_type,(MirSurfaceSpec *spec, MirSurfaceType type))
bschaefer@10089
    55
SDL_MIR_SYM(void,mir_surface_spec_set_state,(MirSurfaceSpec *spec, MirSurfaceState state))
bschaefer@10089
    56
SDL_MIR_SYM(void,mir_surface_apply_spec,(MirSurface *surface, MirSurfaceSpec *spec))
bschaefer@10089
    57
SDL_MIR_SYM(void,mir_surface_get_parameters,(MirSurface *surface, MirSurfaceParameters *params))
bschaefer@10089
    58
SDL_MIR_SYM(MirBufferStream*,mir_surface_get_buffer_stream,(MirSurface *surface))
bschaefer@10089
    59
SDL_MIR_SYM(MirCursorConfiguration*,mir_cursor_configuration_from_buffer_stream,(MirBufferStream* stream, int hot_x, int hot_y))
bschaefer@10089
    60
SDL_MIR_SYM(MirBufferStream*,mir_connection_create_buffer_stream_sync,(MirConnection *connection, int w, int h, MirPixelFormat format, MirBufferUsage usage))
bschaefer@10089
    61
SDL_MIR_SYM(MirKeyboardAction,mir_keyboard_event_action,(MirKeyboardEvent const *event))
bschaefer@10089
    62
SDL_MIR_SYM(xkb_keysym_t,mir_keyboard_event_key_code,(MirKeyboardEvent const *event))
bschaefer@10089
    63
SDL_MIR_SYM(int,mir_keyboard_event_scan_code,(MirKeyboardEvent const *event))
bschaefer@10089
    64
SDL_MIR_SYM(bool,mir_pointer_event_button_state,(MirPointerEvent const *event, MirPointerButton button))
bschaefer@10089
    65
SDL_MIR_SYM(MirPointerButtons,mir_pointer_event_buttons,(MirPointerEvent const *event))
bschaefer@10089
    66
SDL_MIR_SYM(MirInputDeviceId,mir_input_event_get_device_id,(MirInputEvent const* ev))
bschaefer@10089
    67
SDL_MIR_SYM(MirTouchId,mir_touch_event_id,(MirTouchEvent const *event, size_t touch_index))
bschaefer@10089
    68
SDL_MIR_SYM(float,mir_touch_event_axis_value,(MirTouchEvent const *event, size_t touch_index, MirTouchAxis axis))
bschaefer@10089
    69
SDL_MIR_SYM(MirTouchAction,mir_touch_event_action,(MirTouchEvent const *event, size_t touch_index))
bschaefer@10089
    70
SDL_MIR_SYM(MirPointerAction,mir_pointer_event_action,(MirPointerEvent const *event))
bschaefer@10089
    71
SDL_MIR_SYM(float,mir_pointer_event_axis_value,(MirPointerEvent const *event, MirPointerAxis))
bschaefer@10089
    72
SDL_MIR_SYM(MirEventType,mir_event_get_type,(MirEvent const *event))
bschaefer@10089
    73
SDL_MIR_SYM(MirInputEventType,mir_input_event_get_type,(MirInputEvent const *event))
bschaefer@10089
    74
SDL_MIR_SYM(MirInputEvent const*,mir_event_get_input_event,(MirEvent const *event))
bschaefer@10089
    75
SDL_MIR_SYM(MirResizeEvent const*,mir_event_get_resize_event,(MirEvent const *event))
bschaefer@10089
    76
SDL_MIR_SYM(MirKeyboardEvent const*,mir_input_event_get_keyboard_event,(MirInputEvent const *event))
bschaefer@10089
    77
SDL_MIR_SYM(MirPointerEvent const*,mir_input_event_get_pointer_event,(MirInputEvent const *event))
bschaefer@10089
    78
SDL_MIR_SYM(MirTouchEvent const*,mir_input_event_get_touch_event,(MirInputEvent const *event))
bschaefer@10089
    79
SDL_MIR_SYM(unsigned int,mir_touch_event_point_count,(MirTouchEvent const *event))
icculus@8159
    80
SDL_MIR_SYM(void,mir_connection_get_available_surface_formats,(MirConnection* connection, MirPixelFormat* formats, unsigned const int format_size, unsigned int *num_valid_formats))
icculus@8159
    81
SDL_MIR_SYM(MirEGLNativeDisplayType,mir_connection_get_egl_native_display,(MirConnection *connection))
bschaefer@10089
    82
SDL_MIR_SYM(bool,mir_connection_is_valid,(MirConnection *connection))
icculus@8159
    83
SDL_MIR_SYM(void,mir_connection_release,(MirConnection *connection))
bschaefer@10089
    84
SDL_MIR_SYM(MirPixelFormat,mir_connection_get_egl_pixel_format,(MirConnection* connection, void* egldisplay, void* eglconfig))
icculus@8159
    85
SDL_MIR_SYM(MirConnection *,mir_connect_sync,(char const *server, char const *app_name))
icculus@8159
    86
SDL_MIR_SYM(void,mir_display_config_destroy,(MirDisplayConfiguration* display_configuration))
icculus@8159
    87
SDL_MIR_SYM(char const *,mir_surface_get_error_message,(MirSurface *surface))
bschaefer@10089
    88
SDL_MIR_SYM(bool,mir_surface_is_valid,(MirSurface *surface))
icculus@8159
    89
SDL_MIR_SYM(void,mir_surface_release_sync,(MirSurface *surface))
bschaefer@10089
    90
SDL_MIR_SYM(void,mir_buffer_stream_release_sync,(MirBufferStream *stream))
bschaefer@10089
    91
SDL_MIR_SYM(MirCursorConfiguration*,mir_cursor_configuration_from_name,(char const* cursor_name))
bschaefer@10089
    92
SDL_MIR_SYM(MirWaitHandle*,mir_surface_configure_cursor,(MirSurface* surface, MirCursorConfiguration const* conf))
bschaefer@10089
    93
SDL_MIR_SYM(void,mir_cursor_configuration_destroy,(MirCursorConfiguration* conf))
bschaefer@10089
    94
SDL_MIR_SYM(void,mir_wait_for,(MirWaitHandle* handle))
bschaefer@10089
    95
SDL_MIR_SYM(int,mir_resize_event_get_width,(MirResizeEvent const* resize_event))
bschaefer@10089
    96
SDL_MIR_SYM(int,mir_resize_event_get_height,(MirResizeEvent const* resize_event))
bschaefer@10089
    97
bschaefer@10089
    98
SDL_MIR_SYM_CONST(char const*,mir_omnidirectional_resize_cursor_name)
bschaefer@10089
    99
SDL_MIR_SYM_CONST(char const*,mir_busy_cursor_name)
bschaefer@10089
   100
SDL_MIR_SYM_CONST(char const*,mir_arrow_cursor_name)
bschaefer@10089
   101
SDL_MIR_SYM_CONST(char const*,mir_caret_cursor_name)
bschaefer@10089
   102
SDL_MIR_SYM_CONST(char const*,mir_vertical_resize_cursor_name)
bschaefer@10089
   103
SDL_MIR_SYM_CONST(char const*,mir_horizontal_resize_cursor_name)
bschaefer@10089
   104
SDL_MIR_SYM_CONST(char const*,mir_open_hand_cursor_name)
bschaefer@10089
   105
SDL_MIR_SYM_CONST(char const*,mir_closed_hand_cursor_name)
icculus@8159
   106
icculus@8159
   107
SDL_MIR_MODULE(XKBCOMMON)
icculus@8159
   108
SDL_MIR_SYM(int,xkb_keysym_to_utf8,(xkb_keysym_t keysym, char *buffer, size_t size))
icculus@8159
   109
icculus@10079
   110
#undef SDL_MIR_MODULE
icculus@10079
   111
#undef SDL_MIR_SYM
bschaefer@10089
   112
#undef SDL_MIR_SYM_CONST
icculus@10079
   113
icculus@8159
   114
/* *INDENT-ON* */
icculus@8159
   115
icculus@8159
   116
/* vi: set ts=4 sw=4 expandtab: */