NetSurf
message.h
Go to the documentation of this file.
1/*
2 * Copyright 2006 Richard Wilson <info@tinct.net>
3 *
4 * This file is part of NetSurf, http://www.netsurf-browser.org/
5 *
6 * NetSurf is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; version 2 of the License.
9 *
10 * NetSurf is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19/** \file
20 * Automated RISC OS message routing (interface).
21 */
22
23
24#ifndef _NETSURF_RISCOS_MESSAGE_H_
25#define _NETSURF_RISCOS_MESSAGE_H_
26
27#include <stdbool.h>
28#include "oslib/wimp.h"
29
30bool ro_message_send_message(wimp_event_no event, wimp_message *message,
31 wimp_t task, void (*callback)(wimp_message *message));
32bool ro_message_send_message_to_window(wimp_event_no event, wimp_message *message,
33 wimp_w to_w, wimp_i to_i, void (*callback)(wimp_message *message),
34 wimp_t *to_t);
35bool ro_message_register_handler(wimp_message *message,
36 unsigned int message_code,
37 void (*callback)(wimp_message *message));
38bool ro_message_register_route(unsigned int message_code,
39 void (*callback)(wimp_message *message));
40bool ro_message_handle_message(wimp_event_no event, wimp_message *message);
41
42#endif
bool ro_message_handle_message(wimp_event_no event, wimp_message *message)
Attempts to route a message.
Definition: message.c:192
bool ro_message_register_handler(wimp_message *message, unsigned int message_code, void(*callback)(wimp_message *message))
Registers a return route for a message.
Definition: message.c:134
bool ro_message_send_message(wimp_event_no event, wimp_message *message, wimp_t task, void(*callback)(wimp_message *message))
Sends a message and registers a return route for a bounce.
Definition: message.c:57
bool ro_message_register_route(unsigned int message_code, void(*callback)(wimp_message *message))
Registers a route for a message code.
Definition: message.c:157
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)
Sends a message and registers a return route for a bounce.
Definition: message.c:94