X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=src%2Fcokebank_basic%2Fcommon.h;h=877b45bf168a07ea056c2578c96a04344a0572eb;hb=f14393c85d4c66f34e6d92f8894e170163da1e37;hp=e6e37c69771f19a2d3e5077f111e3d3037bd2300;hpb=650ed689f2d8c30fe9c448fbec0e58037cc2ce25;p=tpg%2Fopendispense2.git diff --git a/src/cokebank_basic/common.h b/src/cokebank_basic/common.h index e6e37c6..877b45b 100644 --- a/src/cokebank_basic/common.h +++ b/src/cokebank_basic/common.h @@ -2,7 +2,7 @@ * OpenDispense 2 * UCC (University [of WA] Computer Club) Electronic Accounting System * - * cokebank.c - Coke-Bank management + * cokebank_basic/common.h - Coke-Bank management * * This file is licenced under the 3-clause BSD Licence. See the file COPYING * for full details. @@ -10,10 +10,36 @@ #ifndef _COKEBANK_COMMON_H_ #define _COKEBANK_COMMON_H_ +#include "../cokebank.h" + +typedef struct sFileUser { + int UnixID; + int Balance; + int Flags; +} tFileUser; + typedef struct sUser { int UnixID; + const char *Name; int Balance; int Flags; } tUser; +#if 0 +typedef struct sUser +{ + char *Username; + int UID; + int Pin; + int Balance; + int Flags; + time_t LastUsed; +} tUser; +typedef struct sAltLogin +{ + tUser *User; + char CardID[]; +} tAltLogin; +#endif + #endif