Changed Line Structure for config and person files, added credits_left to person, fixed read_person
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user