83480b719d6d7d8ae5c4cedfb23215e3f030f118
[tpg/opendispense2.git] / src / cokebank_basic / common.h
1 /*
2  * OpenDispense 2 
3  * UCC (University [of WA] Computer Club) Electronic Accounting System
4  *
5  * cokebank_basic/common.h - Coke-Bank management
6  *
7  * This file is licenced under the 3-clause BSD Licence. See the file COPYING
8  * for full details.
9  */
10 #ifndef _COKEBANK_COMMON_H_
11 #define _COKEBANK_COMMON_H_
12
13 #include "../cokebank.h"
14
15 typedef struct sUser {
16          int    UnixID;
17          int    Balance;
18          int    Flags;
19 }       tUser;
20
21 // === IMPORTS ===
22 extern int      Bank_GetMinAllowedBalance(int ID);
23 extern int      Bank_GetUserBalance(int ID);
24 extern int      Bank_AlterUserBalance(int ID, int Delta);
25 extern char     *Bank_GetUserName(int ID);
26 extern int      Bank_GetUserFlags(int ID);
27 extern int      Bank_SetUserFlags(int ID, int Mask, int Value);
28 extern int      Bank_GetUserByName(const char *Username);
29 extern int      Bank_AddUser(const char *Username);
30 extern FILE     *gBank_File;
31 extern tUser    *gaBank_Users;
32 extern int      giBank_NumUsers;
33
34 #endif

UCC git Repository :: git.ucc.asn.au