diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2015-09-03 19:57:04 +0100 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2015-09-03 19:57:04 +0100 |
commit | cdaae7b30e22373b99117438a15e062e8749688d (patch) | |
tree | a45eeaf68ce050d47be199508acb07663f81a42f /amiga/ctxmenu.h | |
parent | 944248ce3205881df9268d2c3f9f0cb52fc2f075 (diff) | |
download | netsurf-cdaae7b30e22373b99117438a15e062e8749688d.tar.gz netsurf-cdaae7b30e22373b99117438a15e062e8749688d.tar.bz2 |
Add a couple of context menu items for links for testing.
Diffstat (limited to 'amiga/ctxmenu.h')
-rw-r--r-- | amiga/ctxmenu.h | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/amiga/ctxmenu.h b/amiga/ctxmenu.h index e23c723f1..678208647 100644 --- a/amiga/ctxmenu.h +++ b/amiga/ctxmenu.h @@ -26,7 +26,8 @@ struct Hook; /** - * Initialise context menus code + * Initialise context menus code (allocate label text, etc) + * Must be called *after* NetSurf's screen pointer is obtained. */ void ami_ctxmenu_init(void); @@ -38,8 +39,20 @@ void ami_ctxmenu_free(void); /** * Get a Hook for WA_ContextMenuHook * + * \param data ptr for the hook to use (struct gui_window_2 *) * \returns pointer to a struct Hook */ -struct Hook *ami_ctxmenu_get_hook(void); -#endif +struct Hook *ami_ctxmenu_get_hook(APTR data); +/** + * Release a Hook for WA_ContextMenuHook + * + * \param hook ptr to hook + */ +void ami_ctxmenu_release_hook(struct Hook *hook); +#else +inline void ami_ctxmenu_init(void) {} +inline void ami_ctxmenu_free(void) {} +inline struct Hook *ami_ctxmenu_get_hook(APTR data) {return NULL;} +inline void ami_ctxmenu_release_hook(struct Hook *hook) {} +#endif |