22 lines
492 B
C
22 lines
492 B
C
#ifndef MENU_STACK_H
|
|
#define MENU_STACK_H
|
|
|
|
#include "menu_types.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
MenuErrCode menu_stack_init(MenuStack* stack);
|
|
MenuErrCode menu_stack_push(MenuStack* stack, MenuNodeId id);
|
|
MenuErrCode menu_stack_pop(MenuStack* stack, MenuNodeId* id);
|
|
MenuErrCode menu_stack_peek(const MenuStack* stack, MenuNodeId* id);
|
|
bool menu_stack_is_empty(const MenuStack* stack);
|
|
void menu_stack_clear(MenuStack* stack);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif // MENU_STACK_H
|