From 695783e33b9c100b1ce28ef71a59a00f52cc374f Mon Sep 17 00:00:00 2001 From: Chris Young Date: Tue, 3 Jan 2017 19:27:40 +0000 Subject: re-structure menu code to make it useable elsewhere in the frontend --- frontends/amiga/menu.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) mode change 100755 => 100644 frontends/amiga/menu.h (limited to 'frontends/amiga/menu.h') diff --git a/frontends/amiga/menu.h b/frontends/amiga/menu.h old mode 100755 new mode 100644 index ac74f38a2..1f6f245da --- a/frontends/amiga/menu.h +++ b/frontends/amiga/menu.h @@ -24,6 +24,7 @@ #include struct hlcache_handle; +struct ami_menu_data; /** Maximum number of hotlist items (somewhat arbitrary value) */ #define AMI_HOTLIST_ITEMS 60 @@ -132,13 +133,18 @@ enum { struct gui_window; struct gui_window_2; -void ami_free_menulabs(struct gui_window_2 *gwin); +void ami_free_menulabs(struct ami_menu_data **md); //specific to browser windows +void ami_menu_free_labs(struct ami_menu_data **md, int max); // generic ver struct Menu *ami_menu_create(struct gui_window_2 *gwin); void ami_menu_refresh(struct gui_window_2 *gwin); void ami_menu_update_checked(struct gui_window_2 *gwin); void ami_menu_update_disabled(struct gui_window *g, struct hlcache_handle *c); void ami_menu_free_glyphs(void); void ami_menu_free(struct gui_window_2 *gwin); +void ami_menu_alloc_item(struct ami_menu_data **md, int num, UBYTE type, + const char *restrict label, char key, const char *restrict icon, + void *restrict func, void *restrict hookdata, UWORD flags); +struct Menu *ami_menu_layout(struct ami_menu_data **md, int max); /** * Sets that an item linked to a toggle menu item has been changed. -- cgit v1.2.3