Changed Line Structure for config and person files, added credits_left to person, fixed read_person

This commit is contained in:
2015-09-22 21:32:18 +02:00
parent ac39f31527
commit 4b854998c8
6 changed files with 62 additions and 111 deletions

View File

@@ -36,6 +36,7 @@ typedef struct{
char name[NAME_LEN + 1];
char rfid_uuid[13];
uint8_t finger_uuid;
uint8_t credits_left;
int drinks_taken[NUM_OF_DRINKS];
}Person;
@@ -43,7 +44,6 @@ typedef struct{
Beerbox* read_beerbox(Beerbox *box);
Beerbox* add_drink(Beerbox *box);
Person read_person(Beerbox *box, char *filename);
void print_person(Beerbox *box, Person *aperson);
int update_pers_file(Beerbox *box, Person *aperson);