summaryrefslogtreecommitdiff
path: root/apps/plugins/lib/oldmenuapi.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/lib/oldmenuapi.h')
-rw-r--r--apps/plugins/lib/oldmenuapi.h58
1 files changed, 0 insertions, 58 deletions
diff --git a/apps/plugins/lib/oldmenuapi.h b/apps/plugins/lib/oldmenuapi.h
deleted file mode 100644
index 7f877997cf..0000000000
--- a/apps/plugins/lib/oldmenuapi.h
+++ /dev/null
@@ -1,58 +0,0 @@
1/***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
9 *
10 * Copyright (C) 2002 Robert E. Hak
11 *
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
16 *
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
19 *
20 ****************************************************************************/
21
22
23/* This API is for existing plugins and shouldn't be used by new ones.
24 This provides a simpler menu system for plugins, but does not allow for
25 translatable or talkable strings in the menus. */
26#ifndef __OLDMENUAPI_H__
27#define __OLDMENUAPI_H__
28
29#include <stdbool.h>
30
31struct menu_item {
32 unsigned char *desc; /* string or ID */
33 bool (*function) (void); /* return true if USB was connected */
34};
35
36int menu_init(const struct menu_item* mitems,
37 int count, int (*callback)(int, int),
38 const char *button1, const char *button2, const char *button3);
39void menu_exit(int menu);
40
41void put_cursorxy(int x, int y, bool on);
42
43 /* Returns below define, or number of selected menu item*/
44int menu_show(int m);
45
46bool menu_run(int menu);
47int menu_cursor(int menu);
48char* menu_description(int menu, int position);
49void menu_delete(int menu, int position);
50int menu_count(int menu);
51bool menu_moveup(int menu);
52bool menu_movedown(int menu);
53void menu_draw(int menu);
54void menu_insert(int menu, int position, char *desc, bool (*function) (void));
55void menu_set_cursor(int menu, int position);
56void menu_talk_selected(int m);
57
58#endif /* End __OLDMENUAPI_H__ */