]> git.sesse.net Git - vlc/commitdiff
XCB: constify
authorRémi Denis-Courmont <remi@remlab.net>
Sun, 27 Sep 2009 12:06:16 +0000 (15:06 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Sun, 27 Sep 2009 12:06:16 +0000 (15:06 +0300)
modules/video_output/xcb/events.c

index af3b202fae092b3dc795199e4396e3d4567d26ed..3a9b67dbffa5a71a5093e9cc7d1431aaacfda700 100644 (file)
 
 /* FIXME we assume direct mapping between XCB and VLC */
 static void HandleButtonPress (vout_display_t *vd,
-                               xcb_button_press_event_t *ev)
+                               const xcb_button_press_event_t *ev)
 {
     vout_display_SendEventMousePressed (vd, ev->detail - 1);
 }
 
 static void HandleButtonRelease (vout_display_t *vd,
-                                 xcb_button_release_event_t *ev)
+                                 const xcb_button_release_event_t *ev)
 {
     vout_display_SendEventMouseReleased (vd, ev->detail - 1);
 }
 
 static void HandleMotionNotify (vout_display_t *vd,
-                                xcb_motion_notify_event_t *ev)
+                                const xcb_motion_notify_event_t *ev)
 {
     vout_display_place_t place;
 
@@ -75,7 +75,8 @@ static void HandleMotionNotify (vout_display_t *vd,
 }
 
 static void
-HandleParentStructure (vout_display_t *vd, xcb_configure_notify_event_t *ev)
+HandleParentStructure (vout_display_t *vd,
+                       const xcb_configure_notify_event_t *ev)
 {
     if (ev->width  != vd->cfg->display.width ||
         ev->height != vd->cfg->display.height)