blob: aea81f5e4e169c6dddfc7900ff9401118c92375c [file] [log] [blame]
Daniel Stenberg1c0c8612002-05-17 12:22:24 +00001/***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
9 *
10 * Copyright (C) 2002 Robert E. Hak
11 *
12 * All files in this archive are subject to the GNU General Public License.
13 * See the file COPYING in the source tree root for full license agreement.
14 *
15 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
16 * KIND, either express or implied.
17 *
18 ****************************************************************************/
19
20#ifndef __MENU_H__
21#define __MENU_H__
22
Daniel Stenberg91f743f2002-06-14 10:39:11 +000023#include <stdbool.h>
24
Björn Stenbergb21a3bd2002-05-21 14:25:45 +000025struct menu_items {
26 int id;
27 char *desc;
Daniel Stenberg1c0c8612002-05-17 12:22:24 +000028 void (*function) (void);
29};
30
Björn Stenberg2ac05722002-05-26 17:03:17 +000031int menu_init(struct menu_items* items, int count);
32void menu_exit(int menu);
33void menu_run(int menu);
Daniel Stenberg1c0c8612002-05-17 12:22:24 +000034
Daniel Stenberg91f743f2002-06-14 10:39:11 +000035void put_cursorxy(int x, int y, bool on);
36
Daniel Stenberg1c0c8612002-05-17 12:22:24 +000037#endif /* End __MENU_H__ */