[vlc-devel] commit: XCB: constify ( Rémi Denis-Courmont )

git version control git at videolan.org
Sun Sep 27 14:32:01 CEST 2009


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Sep 27 15:06:16 2009 +0300| [904882f2e17c8257700af7842698a8161b10131a] | committer: Rémi Denis-Courmont 

XCB: constify

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=904882f2e17c8257700af7842698a8161b10131a
---

 modules/video_output/xcb/events.c |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/modules/video_output/xcb/events.c b/modules/video_output/xcb/events.c
index af3b202..3a9b67d 100644
--- a/modules/video_output/xcb/events.c
+++ b/modules/video_output/xcb/events.c
@@ -41,19 +41,19 @@
 
 /* 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)




More information about the vlc-devel mailing list