From c2f0ec28fee314ababddf19d1a98853b9fcff634 Mon Sep 17 00:00:00 2001
From: John Hodge <tpg@mutabah.net>
Date: Mon, 12 Jul 2010 10:35:25 +0800
Subject: [PATCH] Cleaning up cokebank code

---
 server/src/cokebank.c | 20 ++++++++++++++++++++
 server/src/main.c     |  2 +-
 2 files changed, 21 insertions(+), 1 deletion(-)

diff --git a/server/src/cokebank.c b/server/src/cokebank.c
index 4f7e8cd..bbf4244 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 <stdlib.h>
 #include <stdio.h>
 #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;
diff --git a/server/src/main.c b/server/src/main.c
index 0d4f234..e99a7fc 100644
--- a/server/src/main.c
+++ b/server/src/main.c
@@ -49,7 +49,7 @@ int main(int argc, char *argv[])
 		}
 	}
 	
-	//Init_Cokebank();
+	Init_Cokebank();
 	
 	//Load_Itemlist();
 	
-- 
GitLab