2006-01-08 18:15:17 +03:00
|
|
|
/*
|
|
|
|
* This file is part of NetSurf, http://netsurf.sourceforge.net/
|
|
|
|
* Licensed under the GNU General Public License,
|
|
|
|
* http://www.opensource.org/licenses/gpl-license
|
|
|
|
* Copyright 2006 Richard Wilson <info@tinct.net>
|
|
|
|
*/
|
|
|
|
|
|
|
|
/** \file
|
|
|
|
* Automated RISC OS message routing (interface).
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef _NETSURF_RISCOS_MESSAGE_H_
|
|
|
|
#define _NETSURF_RISCOS_MESSAGE_H_
|
|
|
|
|
|
|
|
#include "oslib/wimp.h"
|
|
|
|
|
|
|
|
bool ro_message_send_message(wimp_event_no event, wimp_message *message,
|
2006-01-09 03:12:09 +03:00
|
|
|
wimp_t task, void (*callback)(wimp_message *message));
|
2006-02-16 02:09:55 +03:00
|
|
|
bool ro_message_send_message_to_window(wimp_event_no event, wimp_message *message,
|
|
|
|
wimp_w to_w, wimp_i to_i, void (*callback)(wimp_message *message),
|
|
|
|
wimp_t *to_t);
|
2006-01-08 18:15:17 +03:00
|
|
|
bool ro_message_register_handler(wimp_message *message,
|
|
|
|
unsigned int message_code,
|
2006-01-09 03:12:09 +03:00
|
|
|
void (*callback)(wimp_message *message));
|
2006-01-08 23:02:26 +03:00
|
|
|
bool ro_message_register_route(unsigned int message_code,
|
2006-01-09 03:12:09 +03:00
|
|
|
void (*callback)(wimp_message *message));
|
2006-01-08 18:15:17 +03:00
|
|
|
bool ro_message_handle_message(wimp_event_no event, wimp_message *message);
|
|
|
|
|
|
|
|
#endif
|