Module: wine Branch: master Commit: b55d7aae1077f7628c16b97f924b6ce9b350e5d2 URL: http://source.winehq.org/git/wine.git/?a=commit;h=b55d7aae1077f7628c16b97f92...
Author: Ken Thomases ken@codeweavers.com Date: Wed Apr 3 18:56:25 2013 -0500
winemac: Constify some macdrv_event pointer parameters.
---
dlls/winemac.drv/event.c | 4 ++-- dlls/winemac.drv/macdrv.h | 2 +- dlls/winemac.drv/macdrv_cocoa.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/dlls/winemac.drv/event.c b/dlls/winemac.drv/event.c index 4f4d247..6f35d9d 100644 --- a/dlls/winemac.drv/event.c +++ b/dlls/winemac.drv/event.c @@ -111,7 +111,7 @@ static macdrv_event_mask get_event_mask(DWORD mask) * * Handler for QUERY_EVENT queries. */ -static void macdrv_query_event(HWND hwnd, macdrv_event *event) +static void macdrv_query_event(HWND hwnd, const macdrv_event *event) { BOOL success = FALSE; macdrv_query *query = event->query_event.query; @@ -148,7 +148,7 @@ static void macdrv_query_event(HWND hwnd, macdrv_event *event) /*********************************************************************** * macdrv_handle_event */ -void macdrv_handle_event(macdrv_event *event) +void macdrv_handle_event(const macdrv_event *event) { HWND hwnd = macdrv_get_window_hwnd(event->window); const macdrv_event *prev; diff --git a/dlls/winemac.drv/macdrv.h b/dlls/winemac.drv/macdrv.h index f8c45ab..f905359 100644 --- a/dlls/winemac.drv/macdrv.h +++ b/dlls/winemac.drv/macdrv.h @@ -142,7 +142,7 @@ extern struct window_surface *create_surface(macdrv_window window, const RECT *r extern void set_window_surface(macdrv_window window, struct window_surface *window_surface) DECLSPEC_HIDDEN; extern void set_surface_use_alpha(struct window_surface *window_surface, BOOL use_alpha) DECLSPEC_HIDDEN;
-extern void macdrv_handle_event(macdrv_event *event) DECLSPEC_HIDDEN; +extern void macdrv_handle_event(const macdrv_event *event) DECLSPEC_HIDDEN;
extern void macdrv_window_close_requested(HWND hwnd) DECLSPEC_HIDDEN; extern void macdrv_window_frame_changed(HWND hwnd, CGRect frame) DECLSPEC_HIDDEN; diff --git a/dlls/winemac.drv/macdrv_cocoa.h b/dlls/winemac.drv/macdrv_cocoa.h index 2d74969..67da3a3 100644 --- a/dlls/winemac.drv/macdrv_cocoa.h +++ b/dlls/winemac.drv/macdrv_cocoa.h @@ -266,7 +266,7 @@ static inline macdrv_event_mask event_mask_for_type(int type) return ((macdrv_event_mask)1 << type); }
-typedef void (*macdrv_event_handler)(macdrv_event *event); +typedef void (*macdrv_event_handler)(const macdrv_event *event);
extern macdrv_event_queue macdrv_create_event_queue(macdrv_event_handler handler) DECLSPEC_HIDDEN; extern void macdrv_destroy_event_queue(macdrv_event_queue queue) DECLSPEC_HIDDEN;