Commit b55d7aae authored by Ken Thomases's avatar Ken Thomases Committed by Alexandre Julliard

winemac: Constify some macdrv_event pointer parameters.

parent 5dac8a90
...@@ -111,7 +111,7 @@ static macdrv_event_mask get_event_mask(DWORD mask) ...@@ -111,7 +111,7 @@ static macdrv_event_mask get_event_mask(DWORD mask)
* *
* Handler for QUERY_EVENT queries. * 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; BOOL success = FALSE;
macdrv_query *query = event->query_event.query; macdrv_query *query = event->query_event.query;
...@@ -148,7 +148,7 @@ static void macdrv_query_event(HWND hwnd, macdrv_event *event) ...@@ -148,7 +148,7 @@ static void macdrv_query_event(HWND hwnd, macdrv_event *event)
/*********************************************************************** /***********************************************************************
* macdrv_handle_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); HWND hwnd = macdrv_get_window_hwnd(event->window);
const macdrv_event *prev; const macdrv_event *prev;
......
...@@ -142,7 +142,7 @@ extern struct window_surface *create_surface(macdrv_window window, const RECT *r ...@@ -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_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 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_close_requested(HWND hwnd) DECLSPEC_HIDDEN;
extern void macdrv_window_frame_changed(HWND hwnd, CGRect frame) DECLSPEC_HIDDEN; extern void macdrv_window_frame_changed(HWND hwnd, CGRect frame) DECLSPEC_HIDDEN;
......
...@@ -266,7 +266,7 @@ static inline macdrv_event_mask event_mask_for_type(int type) ...@@ -266,7 +266,7 @@ static inline macdrv_event_mask event_mask_for_type(int type)
return ((macdrv_event_mask)1 << 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 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; extern void macdrv_destroy_event_queue(macdrv_event_queue queue) DECLSPEC_HIDDEN;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment