#ifndef MENU_H_ #define MENU_H_ #include #include #include // Struct for static menu items such as on the main menu. Has the name of the menu item and a function to run when it is selected. typedef struct { String name; void (*function)(); } MenuItem; void listNodes(Node* nodes, const int &numItems); void listContainers(Container* containers, const int &numItems); void listVMs(VM* vms, const int &numItems); void listDisks(Disk* disks, const int &numItems); void listPools(Pool* pools, const int &numItems); void mainMenu(); void manageContainerMenu(); void manageVMMenu(); typedef void (*MenuPrintCallback)(void*); extern int selectedItem; extern int selectedPage; #endif