Restuctured cokebank
[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.c - 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 typedef struct sUser {
14          int    UnixID;
15          int    Balance;
16          int    Flags;
17 }       tUser;
18
19 // === IMPORTS ===
20 extern int      Bank_GetMinAllowedBalance(int ID);
21 extern int      Bank_GetUserBalance(int ID);
22 extern int      Bank_AlterUserBalance(int ID, int Delta);
23 extern char     *Bank_GetUserName(int ID);
24 extern int      Bank_GetUserByName(const char *Username);
25 extern int      Bank_AddUser(const char *Username);
26 extern FILE     *gBank_File;
27 extern tUser    *gaBank_Users;
28 extern int      giBank_NumUsers;
29
30 #endif

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