src/video/wayland/SDL_waylandtouch.c
changeset 8104 2e4f1bd21196
parent 8082 5b83ad3f01ac
child 8149 681eb46b8ac4
equal deleted inserted replaced
8103:d4a88c49247e 8104:2e4f1bd21196
    19   3. This notice may not be removed or altered from any source distribution.
    19   3. This notice may not be removed or altered from any source distribution.
    20 */
    20 */
    21 
    21 
    22 /* Contributed by Thomas Perl <thomas.perl@jollamobile.com> */
    22 /* Contributed by Thomas Perl <thomas.perl@jollamobile.com> */
    23 
    23 
    24 #include "SDL_config.h"
    24 #include "../../SDL_internal.h"
    25 
    25 
    26 #ifdef SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH
    26 #ifdef SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH
    27 
    27 
    28 #include "SDL_waylandtouch.h"
    28 #include "SDL_waylandtouch.h"
    29 #include "SDL_log.h"
    29 #include "SDL_log.h"
   116         struct qt_touch_extension *qt_touch_extension,
   116         struct qt_touch_extension *qt_touch_extension,
   117         uint32_t flags)
   117         uint32_t flags)
   118 {
   118 {
   119 }
   119 }
   120 
   120 
       
   121 
   121 /* wayland-qt-touch-extension.c BEGINS */
   122 /* wayland-qt-touch-extension.c BEGINS */
   122 
   123 
   123 static const struct qt_touch_extension_listener touch_listener = {
   124 static const struct qt_touch_extension_listener touch_listener = {
   124     touch_handle_touch,
   125     touch_handle_touch,
   125     touch_handle_configure,
   126     touch_handle_configure,
   181 };
   182 };
   182 /* wayland-qt-windowmanager.c ENDS */
   183 /* wayland-qt-windowmanager.c ENDS */
   183 
   184 
   184 /* wayland-qt-surface-extension.c BEGINS */
   185 /* wayland-qt-surface-extension.c BEGINS */
   185 extern const struct wl_interface qt_extended_surface_interface;
   186 extern const struct wl_interface qt_extended_surface_interface;
       
   187 #ifndef SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC
   186 extern const struct wl_interface wl_surface_interface;
   188 extern const struct wl_interface wl_surface_interface;
       
   189 #endif
   187 
   190 
   188 static const struct wl_interface *qt_surface_extension_types[] = {
   191 static const struct wl_interface *qt_surface_extension_types[] = {
   189     NULL,
   192     NULL,
   190     NULL,
   193     NULL,
   191     &qt_extended_surface_interface,
   194     &qt_extended_surface_interface,
       
   195 #ifdef SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC
       
   196     /* FIXME: Set this dynamically to (*WAYLAND_wl_surface_interface) ? 
       
   197      * The value comes from auto generated code and does 
       
   198      * not appear to actually be used anywhere
       
   199      */
       
   200     NULL, 
       
   201 #else
   192     &wl_surface_interface,
   202     &wl_surface_interface,
       
   203 #endif    
   193 };
   204 };
   194 
   205 
   195 static const struct wl_message qt_surface_extension_requests[] = {
   206 static const struct wl_message qt_surface_extension_requests[] = {
   196     { "get_extended_surface", "no", qt_surface_extension_types + 2 },
   207     { "get_extended_surface", "no", qt_surface_extension_types + 2 },
   197 };
   208 };