NetSurf
dispatch.h
Go to the documentation of this file.
1/*
2 * Copyright 2011 Daniel Silverstone <dsilvers@digital-scurf.org>
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#ifndef NETSURF_MONKEY_DISPATCH_H
20#define NETSURF_MONKEY_DISPATCH_H 1
21
22typedef void (*handle_command_fn)(int argc, char **argv);
23
25
26void monkey_process_command(void);
27
28void monkey_free_handlers(void);
29
30#endif /* NETSURF_MONKEY_DISPATCH_H */
void monkey_process_command(void)
Definition: dispatch.c:64
nserror monkey_register_handler(const char *cmd, handle_command_fn fn)
Definition: dispatch.c:39
void monkey_free_handlers(void)
Definition: dispatch.c:53
void(* handle_command_fn)(int argc, char **argv)
Definition: dispatch.h:22
nserror
Enumeration of error codes.
Definition: errors.h:29