X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=server%2Fsrc%2Fcokebank.c;h=00d7d4f1d20def7c1e101fa97873f8548ac12139;hb=a189b749e46348379d2271eb7c51ca1f7334cbda;hp=4f7e8cd5ceeebaac1d7f3dc323d08b600c0f9216;hpb=0411e351ae868dee5d00049d866defdf62108598;p=tpg%2Fopendispense2.git diff --git a/server/src/cokebank.c b/server/src/cokebank.c index 4f7e8cd..00d7d4f 100644 --- a/server/src/cokebank.c +++ b/server/src/cokebank.c @@ -6,12 +6,32 @@ * * This file is licenced under the 3-clause BSD Licence. See the file COPYING * for full details. + * + * TODO: Make this a Dynamic Library and load it at runtime */ #include #include #include "common.h" +// === PROTOTYPES === +void Init_Cokebank(void); + int AlterBalance(int User, int Delta); + int GetBalance(int User); +char *GetUserName(int User); + int GetUserID(const char *Username); + // === CODE === +/** + * \brief Load the cokebank database + */ +void Init_Cokebank(void) +{ + +} + +/** + * \brief Alters a user's balance by \a Delta + */ int AlterBalance(int User, int Delta) { return 0; @@ -38,6 +58,6 @@ char *GetUserName(int User) */ int GetUserID(const char *Username) { - return 0; + return -1; }