src/video/wayland/SDL_waylandsym.h
author Arne Janbu <arnej@arnej.de>
Sat, 10 Jan 2015 13:47:37 +0100
changeset 9362 dfd8202eb9a7
parent 8149 681eb46b8ac4
child 9619 b94b6d0bff0f
permissions -rw-r--r--
Fix build on Linux when wayland is enabled

Bug: https://bugzilla.libsdl.org/show_bug.cgi?id=2838
gabomdq@8104
     1
/*
gabomdq@8104
     2
  Simple DirectMedia Layer
slouken@8149
     3
  Copyright (C) 1997-2014 Sam Lantinga <slouken@libsdl.org>
gabomdq@8104
     4
gabomdq@8104
     5
  This software is provided 'as-is', without any express or implied
gabomdq@8104
     6
  warranty.  In no event will the authors be held liable for any damages
gabomdq@8104
     7
  arising from the use of this software.
gabomdq@8104
     8
gabomdq@8104
     9
  Permission is granted to anyone to use this software for any purpose,
gabomdq@8104
    10
  including commercial applications, and to alter it and redistribute it
gabomdq@8104
    11
  freely, subject to the following restrictions:
gabomdq@8104
    12
gabomdq@8104
    13
  1. The origin of this software must not be misrepresented; you must not
gabomdq@8104
    14
     claim that you wrote the original software. If you use this software
gabomdq@8104
    15
     in a product, an acknowledgment in the product documentation would be
gabomdq@8104
    16
     appreciated but is not required.
gabomdq@8104
    17
  2. Altered source versions must be plainly marked as such, and must not be
gabomdq@8104
    18
     misrepresented as being the original software.
gabomdq@8104
    19
  3. This notice may not be removed or altered from any source distribution.
gabomdq@8104
    20
*/
gabomdq@8104
    21
gabomdq@8104
    22
/* *INDENT-OFF* */
gabomdq@8104
    23
gabomdq@8104
    24
SDL_WAYLAND_MODULE(WAYLAND_CLIENT)
gabomdq@8104
    25
SDL_WAYLAND_SYM(void, wl_proxy_marshal, (struct wl_proxy *, uint32_t, ...))
gabomdq@8104
    26
SDL_WAYLAND_SYM(struct wl_proxy *, wl_proxy_create, (struct wl_proxy *, const struct wl_interface *))
gabomdq@8104
    27
SDL_WAYLAND_SYM(void, wl_proxy_destroy, (struct wl_proxy *))
gabomdq@8104
    28
SDL_WAYLAND_SYM(int, wl_proxy_add_listener, (struct wl_proxy *, void (**)(void), void *))
gabomdq@8104
    29
SDL_WAYLAND_SYM(void, wl_proxy_set_user_data, (struct wl_proxy *, void *))
gabomdq@8104
    30
SDL_WAYLAND_SYM(void *, wl_proxy_get_user_data, (struct wl_proxy *))
gabomdq@8104
    31
SDL_WAYLAND_SYM(uint32_t, wl_proxy_get_id, (struct wl_proxy *))
gabomdq@8104
    32
SDL_WAYLAND_SYM(const char *, wl_proxy_get_class, (struct wl_proxy *))
gabomdq@8104
    33
SDL_WAYLAND_SYM(void, wl_proxy_set_queue, (struct wl_proxy *, struct wl_event_queue *))
gabomdq@8104
    34
SDL_WAYLAND_SYM(struct wl_display *, wl_display_connect, (const char *))
gabomdq@8104
    35
SDL_WAYLAND_SYM(struct wl_display *, wl_display_connect_to_fd, (int))
gabomdq@8104
    36
SDL_WAYLAND_SYM(void, wl_display_disconnect, (struct wl_display *))
gabomdq@8104
    37
SDL_WAYLAND_SYM(int, wl_display_get_fd, (struct wl_display *))
gabomdq@8104
    38
SDL_WAYLAND_SYM(int, wl_display_dispatch, (struct wl_display *))
gabomdq@8104
    39
SDL_WAYLAND_SYM(int, wl_display_dispatch_queue, (struct wl_display *, struct wl_event_queue *))
gabomdq@8104
    40
SDL_WAYLAND_SYM(int, wl_display_dispatch_queue_pending, (struct wl_display *, struct wl_event_queue *))
gabomdq@8104
    41
SDL_WAYLAND_SYM(int, wl_display_dispatch_pending, (struct wl_display *))
gabomdq@8104
    42
SDL_WAYLAND_SYM(int, wl_display_get_error, (struct wl_display *))
gabomdq@8104
    43
SDL_WAYLAND_SYM(int, wl_display_flush, (struct wl_display *))
gabomdq@8104
    44
SDL_WAYLAND_SYM(int, wl_display_roundtrip, (struct wl_display *))
gabomdq@8104
    45
SDL_WAYLAND_SYM(struct wl_event_queue *, wl_display_create_queue, (struct wl_display *))
gabomdq@8104
    46
SDL_WAYLAND_SYM(void, wl_log_set_handler_client, (wl_log_func_t))
gabomdq@8104
    47
SDL_WAYLAND_SYM(void, wl_list_init, (struct wl_list *))
gabomdq@8104
    48
SDL_WAYLAND_SYM(void, wl_list_insert, (struct wl_list *, struct wl_list *) )
gabomdq@8104
    49
SDL_WAYLAND_SYM(void, wl_list_remove, (struct wl_list *))
gabomdq@8104
    50
SDL_WAYLAND_SYM(int, wl_list_length, (const struct wl_list *))
gabomdq@8104
    51
SDL_WAYLAND_SYM(int, wl_list_empty, (const struct wl_list *))
gabomdq@8104
    52
SDL_WAYLAND_SYM(void, wl_list_insert_list, (struct wl_list *, struct wl_list *))
gabomdq@8104
    53
gabomdq@8113
    54
/* These functions are available in Wayland >= 1.4 */
gabomdq@8113
    55
SDL_WAYLAND_MODULE(WAYLAND_CLIENT_1_4)
gabomdq@8114
    56
SDL_WAYLAND_SYM(struct wl_proxy *, wl_proxy_marshal_constructor, (struct wl_proxy *, uint32_t opcode, const struct wl_interface *interface, ...))
gabomdq@8113
    57
gabomdq@8104
    58
SDL_WAYLAND_INTERFACE(wl_seat_interface)
gabomdq@8104
    59
SDL_WAYLAND_INTERFACE(wl_surface_interface)
gabomdq@8104
    60
SDL_WAYLAND_INTERFACE(wl_shm_pool_interface)
gabomdq@8104
    61
SDL_WAYLAND_INTERFACE(wl_buffer_interface)
gabomdq@8104
    62
SDL_WAYLAND_INTERFACE(wl_registry_interface)
gabomdq@8104
    63
SDL_WAYLAND_INTERFACE(wl_shell_surface_interface)
gabomdq@8104
    64
SDL_WAYLAND_INTERFACE(wl_region_interface)
gabomdq@8104
    65
SDL_WAYLAND_INTERFACE(wl_pointer_interface)
gabomdq@8104
    66
SDL_WAYLAND_INTERFACE(wl_keyboard_interface)
gabomdq@8104
    67
SDL_WAYLAND_INTERFACE(wl_compositor_interface)
gabomdq@8104
    68
SDL_WAYLAND_INTERFACE(wl_output_interface)
gabomdq@8104
    69
SDL_WAYLAND_INTERFACE(wl_shell_interface)
gabomdq@8104
    70
SDL_WAYLAND_INTERFACE(wl_shm_interface)
gabomdq@8104
    71
gabomdq@8104
    72
SDL_WAYLAND_MODULE(WAYLAND_EGL)
gabomdq@8104
    73
SDL_WAYLAND_SYM(struct wl_egl_window *, wl_egl_window_create, (struct wl_surface *, int, int))
gabomdq@8104
    74
SDL_WAYLAND_SYM(void, wl_egl_window_destroy, (struct wl_egl_window *))
gabomdq@8104
    75
SDL_WAYLAND_SYM(void, wl_egl_window_resize, (struct wl_egl_window *, int, int, int, int))
gabomdq@8104
    76
SDL_WAYLAND_SYM(void, wl_egl_window_get_attached_size, (struct wl_egl_window *, int *, int *))
gabomdq@8104
    77
gabomdq@8104
    78
SDL_WAYLAND_MODULE(WAYLAND_CURSOR)
gabomdq@8104
    79
SDL_WAYLAND_SYM(struct wl_cursor_theme *, wl_cursor_theme_load, (const char *, int , struct wl_shm *))
gabomdq@8104
    80
SDL_WAYLAND_SYM(void, wl_cursor_theme_destroy, (struct wl_cursor_theme *))
gabomdq@8104
    81
SDL_WAYLAND_SYM(struct wl_cursor *, wl_cursor_theme_get_cursor, (struct wl_cursor_theme *, const char *))
gabomdq@8104
    82
SDL_WAYLAND_SYM(struct wl_buffer *, wl_cursor_image_get_buffer, (struct wl_cursor_image *))
gabomdq@8104
    83
SDL_WAYLAND_SYM(int, wl_cursor_frame, (struct wl_cursor *, uint32_t))
gabomdq@8104
    84
gabomdq@8104
    85
SDL_WAYLAND_MODULE(WAYLAND_XKB)
gabomdq@8104
    86
SDL_WAYLAND_SYM(int, xkb_state_key_get_syms, (struct xkb_state *, xkb_keycode_t, const xkb_keysym_t **))
gabomdq@8104
    87
SDL_WAYLAND_SYM(int, xkb_keysym_to_utf8, (xkb_keysym_t, char *, size_t) )
gabomdq@8104
    88
SDL_WAYLAND_SYM(struct xkb_keymap *, xkb_keymap_new_from_string, (struct xkb_context *, const char *, enum xkb_keymap_format, enum xkb_keymap_compile_flags))
gabomdq@8104
    89
SDL_WAYLAND_SYM(struct xkb_state *, xkb_state_new, (struct xkb_keymap *) )
gabomdq@8104
    90
SDL_WAYLAND_SYM(void, xkb_keymap_unref, (struct xkb_keymap *) )
gabomdq@8104
    91
SDL_WAYLAND_SYM(void, xkb_state_unref, (struct xkb_state *) )
gabomdq@8104
    92
SDL_WAYLAND_SYM(void, xkb_context_unref, (struct xkb_context *) )
gabomdq@8104
    93
SDL_WAYLAND_SYM(struct xkb_context *, xkb_context_new, (enum xkb_context_flags flags) )
gabomdq@8104
    94
SDL_WAYLAND_SYM(enum xkb_state_component, xkb_state_update_mask, (struct xkb_state *state,\
gabomdq@8104
    95
                      xkb_mod_mask_t depressed_mods,\
gabomdq@8104
    96
                      xkb_mod_mask_t latched_mods,\
gabomdq@8104
    97
                      xkb_mod_mask_t locked_mods,\
gabomdq@8104
    98
                      xkb_layout_index_t depressed_layout,\
gabomdq@8104
    99
                      xkb_layout_index_t latched_layout,\
gabomdq@8104
   100
                      xkb_layout_index_t locked_layout) )
gabomdq@8104
   101
gabomdq@8104
   102
gabomdq@8104
   103
/* *INDENT-ON* */
gabomdq@8104
   104
gabomdq@8104
   105
/* vi: set ts=4 sw=4 expandtab: */
slouken@8149
   106
//SDL_WAYLAND_SYM(ret, fn, params)