It's been so long, I don't know what I did
[tpg/opendispense2.git] / server / src / cokebank.c
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  * TODO: Make this a Dynamic Library and load it at runtime
11  */
12 #include <stdlib.h>
13 #include <stdio.h>
14 #include "common.h"
15
16 // === PROTOTYPES ===
17 void    Init_Cokebank(void);
18  int    AlterBalance(int User, int Delta);
19  int    GetBalance(int User);
20 char    *GetUserName(int User);
21  int    GetUserID(const char *Username); 
22
23 // === CODE ===
24 /**
25  * \brief Load the cokebank database
26  */
27 void Init_Cokebank(void)
28 {
29         
30 }
31
32 /**
33  * \brief Alters a user's balance by \a Delta
34  */
35 int AlterBalance(int User, int Delta)
36 {
37         return 0;
38 }
39
40 /**
41  * \brief Get the balance of the passed user
42  */
43 int GetBalance(int User)
44 {
45         return 0;
46 }
47
48 /**
49  * \brief Return the name the passed user
50  */
51 char *GetUserName(int User)
52 {
53         return NULL;
54 }
55
56 /**
57  * \brief Get the User ID of the named user
58  */
59 int GetUserID(const char *Username)
60 {
61         return -1;
62 }
63

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