Updated protocol def
[tpg/opendispense2.git] / src / cokebank_basic / main.c
index 6bbc3f2..b8aba3f 100644 (file)
@@ -60,6 +60,7 @@ int Transfer(int SourceUser, int DestUser, int Ammount, const char *Reason)
 {
         int    srcBal = Bank_GetUserBalance(SourceUser);
         int    dstBal = Bank_GetUserBalance(DestUser);
+       
        if( srcBal - Ammount < Bank_GetMinAllowedBalance(SourceUser) )
                return 1;
        if( dstBal + Ammount < Bank_GetMinAllowedBalance(DestUser) )
@@ -71,6 +72,11 @@ int Transfer(int SourceUser, int DestUser, int Ammount, const char *Reason)
        return 0;
 }
 
+int GetFlags(int User)
+{
+       return Bank_GetUserFlags(User);
+}
+
 /**
  * \brief Get the balance of the passed user
  */

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