winemac: Constify some macdrv_event pointer parameters.
This commit is contained in:
parent
5dac8a90cc
commit
b55d7aae10
|
@ -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;
|
||||
|
|
|
@ -142,7 +142,7 @@ static inline RECT rect_from_cgrect(CGRect cgrect)
|
|||
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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue