summaryrefslogtreecommitdiff
path: root/apps/plugins/databox/databox.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/databox/databox.h')
-rw-r--r--apps/plugins/databox/databox.h58
1 files changed, 58 insertions, 0 deletions
diff --git a/apps/plugins/databox/databox.h b/apps/plugins/databox/databox.h
new file mode 100644
index 0000000000..ffbaf1d35d
--- /dev/null
+++ b/apps/plugins/databox/databox.h
@@ -0,0 +1,58 @@
1/***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
9 *
10 * Copyright (C) 2005 by Michiel van der Kolk
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#ifndef DATABOX_H
20#define DATABOX_H
21#include <stdio.h>
22#include <stdlib.h>
23#include <plugin.h>
24#include <database.h>
25
26#include "edittoken.h"
27#include "editparser.h"
28
29extern struct plugin_api* rb;
30
31struct print {
32 struct font *fontfixed;
33 int font_w,font_h;
34 int line;
35 int position;
36};
37
38struct editor {
39 struct token *token; /* tokenstream */
40 int currentindex; /* index of the token to change.(+1, 1=0 2=1 3=2 etc.) */
41 int tokencount; /* total amount of tokens */
42 int editingmode; /* defined in databox.h */
43 int valid; /* is the current tokenstream valid ? */
44};
45
46struct editing {
47 int selection_candidates[30]; /* possible options for this selecting */
48 struct token old_token; /* only set when selecting, stores old token */
49 int currentselection; /* current selection index */
50 int selectionmax;
51 int selecting; /* boolean */
52};
53
54extern struct print printing;
55extern struct editor editor;
56extern struct editing editing;
57
58#endif