summaryrefslogtreecommitdiff
path: root/monkey/dispatch.h
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@netsurf-browser.org>2011-03-12 17:27:18 +0000
committerDaniel Silverstone <dsilvers@netsurf-browser.org>2011-03-12 17:27:18 +0000
commitbdb05fa08abe1781827a3c095f26d7d0ac4dbe82 (patch)
tree450fea3b379e1d169cf4a6b721f63a6f5fd47b42 /monkey/dispatch.h
parentd72f9d28627119bf1926f4aa59b6b211385910b2 (diff)
downloadnetsurf-bdb05fa08abe1781827a3c095f26d7d0ac4dbe82.tar.gz
netsurf-bdb05fa08abe1781827a3c095f26d7d0ac4dbe82.tar.bz2
Give Monkey a hearing aid, add 'WINDOW NEW' 'WINDOW GO' and 'WINDOW DESTROY' commands, along with 'QUIT'
svn path=/trunk/netsurf/; revision=11974
Diffstat (limited to 'monkey/dispatch.h')
-rw-r--r--monkey/dispatch.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/monkey/dispatch.h b/monkey/dispatch.h
new file mode 100644
index 000000000..fe8f4e2f8
--- /dev/null
+++ b/monkey/dispatch.h
@@ -0,0 +1,28 @@
+/*
+ * Copyright 2011 Daniel Silverstone <dsilvers@digital-scurf.org>
+ *
+ * This file is part of NetSurf, http://www.netsurf-browser.org/
+ *
+ * NetSurf is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; version 2 of the License.
+ *
+ * NetSurf is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef NETSURF_MONKEY_DISPATCH_H
+#define NETSURF_MONKEY_DISPATCH_H 1
+
+typedef void (*handle_command_fn)(int argc, char **argv);
+
+void monkey_register_handler(const char *cmd, handle_command_fn fn);
+
+void monkey_process_command(void);
+
+#endif /* NETSURF_MONKEY_DISPATCH_H */