#ifndef CONFIG_H_
#define CONFIG_H_
-#define MAX_ITEMS 16
+#define MAX_ITEMS 32
+#define MAX_ITEM_NAME_LENGTH 9
#define MAX_CREDIT_ITEMS 75
+#define CREDITS_PER_PAGE 10
/* Eingenommes Geld in Cent */
extern unsigned long int money;
/* Datenstruktur der verkauften Einträge */
struct status_t {
- char item_name[10];
+ char item_name[MAX_ITEM_NAME_LENGTH+1];
/* Wieviel kostet der Eintrag (in Cent)? */
unsigned int price;
/* Wie oft wurde er verkauft */
struct status_array_t {
BYTE num_items;
+ unsigned int transaction_id;
struct status_t status[MAX_ITEMS];
};
/* Datenstruktur für die Guthaben */
+#define NICKNAME_MAX_LEN 10
struct credits_t {
- char nickname[11];
+ char nickname[NICKNAME_MAX_LEN + 1];
/* Guthaben (in Cent) */
unsigned int credit;
};