Fix recent-engines menu
[xboard.git] / menus.h
diff --git a/menus.h b/menus.h
index 9ed3fc9..cacb22c 100644 (file)
--- a/menus.h
+++ b/menus.h
 typedef void MenuProc P((void));
 
 typedef struct {
-    char *name;
-    MenuProc *proc;
-} MenuListItem;
-
-typedef struct {
     String string;
     String ref;
     MenuProc *proc;
+    void *handle;
 } MenuItem;
 
 typedef struct {
     String name;
     String ref;
     MenuItem *mi;
-    int textWidth;
-    Widget subMenu;
 } Menu;
 
 typedef struct {
@@ -77,10 +71,9 @@ typedef struct {
     Boolean value;
 } Enables;
 
-extern int nrOfMenuItems;
-extern MenuListItem menuItemList[];
 extern Menu menuBar[];
 
+void AppendEnginesToMenu P((char *list));
 void LoadGameProc P((void));
 void LoadNextGameProc P((void));
 void LoadPrevGameProc P((void));
@@ -171,9 +164,9 @@ void EngineOutputProc P((void));
 void EvalGraphProc P((void));
 
 void CreateMainMenus P((Menu *mb));
-void AppendMenuItem P((char *text, char *name, MenuProc *action));
+void AppendMenuItem P((char *text, int n));
 void CreateMenuButton P((char *name, Menu *mb));
-int  MenuToNumber P((char *menuName));
+MenuItem *MenuNameToItem P((char *menuName));
 void SetMenuEnables P((Enables *enab));
 void EnableButtonBar P((int state));
 char *ModeToWidgetName P((GameMode mode));