summaryrefslogtreecommitdiff
path: root/amiga/ctxmenu.h
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2015-09-03 00:24:04 +0100
committerChris Young <chris@unsatisfactorysoftware.co.uk>2015-09-03 00:24:04 +0100
commit944248ce3205881df9268d2c3f9f0cb52fc2f075 (patch)
treeea06263d09b12229020d3384b5416d9c20f3952f /amiga/ctxmenu.h
parent52d182e71e3098148b98e7ae24b7740305960634 (diff)
downloadnetsurf-944248ce3205881df9268d2c3f9f0cb52fc2f075.tar.gz
netsurf-944248ce3205881df9268d2c3f9f0cb52fc2f075.tar.bz2
Rough outline for Intuition-based context menu
Diffstat (limited to 'amiga/ctxmenu.h')
-rw-r--r--amiga/ctxmenu.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/amiga/ctxmenu.h b/amiga/ctxmenu.h
new file mode 100644
index 000000000..e23c723f1
--- /dev/null
+++ b/amiga/ctxmenu.h
@@ -0,0 +1,45 @@
+/*
+ * Copyright 2015 Chris Young <chris@unsatisfactorysoftware.co.uk>
+ *
+ * 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/>.
+ */
+
+/** \file
+ * Interface to Intuition-based context menu operations
+ */
+
+#ifndef AMIGA_CTXMENU_H
+#define AMIGA_CTXMENU_H 1
+
+struct Hook;
+
+/**
+ * Initialise context menus code
+ */
+void ami_ctxmenu_init(void);
+
+/**
+ * Cleanup context menus code
+ */
+void ami_ctxmenu_free(void);
+
+/**
+ * Get a Hook for WA_ContextMenuHook
+ *
+ * \returns pointer to a struct Hook
+ */
+struct Hook *ami_ctxmenu_get_hook(void);
+#endif
+