729d586221ef45506258be63ddd8a1f92c5844e3
[tpg/opendispense2.git] / src / cokebank.h
1 /*
2  * OpenDispense 2 
3  * UCC (University [of WA] Computer Club) Electronic Accounting System
4  *
5  * cokebank.h - Coke-Bank common definitions
6  *
7  * This file is licenced under the 3-clause BSD Licence. See the file COPYING
8  * for full details.
9  */
10 #ifndef _COKEBANK_H_
11 #define _COKEBANK_H_
12
13 #define COKEBANK_SALES_ACCT     ">sales"        //!< Sales made into
14 #define COKEBANK_DEBT_ACCT      ">liability"    //!< Credit taken out of
15
16 enum eCokebank_Flags {
17         USER_FLAG_TYPEMASK = 0x03,
18         USER_TYPE_NORMAL = 0x00,
19         USER_TYPE_COKE   = 0x01,
20         USER_TYPE_WHEEL  = 0x02,
21         USER_TYPE_GOD    = 0x03,
22         
23         USER_FLAG_DISABLED = 0x80
24 };
25
26 // --- Cokebank Functions ---
27 extern int      Transfer(int SourceUser, int DestUser, int Ammount, const char *Reason);
28 extern int      GetFlags(int User);
29 extern int      GetBalance(int User);
30 extern char     *GetUserName(int User);
31 extern int      GetUserID(const char *Username);
32 extern int      GetMaxID(void);
33
34 #endif

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