git.ucc.asn.au
/
tpg
/
opendispense2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added zero-cost testing hack
[tpg/opendispense2.git]
/
src
/
cokebank_basic
/
common.h
diff --git
a/src/cokebank_basic/common.h
b/src/cokebank_basic/common.h
index
e6e37c6
..
877b45b
100644
(file)
--- a/
src/cokebank_basic/common.h
+++ b/
src/cokebank_basic/common.h
@@
-2,7
+2,7
@@
* OpenDispense 2
* UCC (University [of WA] Computer Club) Electronic Accounting System
*
* OpenDispense 2
* UCC (University [of WA] Computer Club) Electronic Accounting System
*
- * cokebank
.c
- Coke-Bank management
+ * cokebank
_basic/common.h
- Coke-Bank management
*
* This file is licenced under the 3-clause BSD Licence. See the file COPYING
* for full details.
*
* This file is licenced under the 3-clause BSD Licence. See the file COPYING
* for full details.
@@
-10,10
+10,36
@@
#ifndef _COKEBANK_COMMON_H_
#define _COKEBANK_COMMON_H_
#ifndef _COKEBANK_COMMON_H_
#define _COKEBANK_COMMON_H_
+#include "../cokebank.h"
+
+typedef struct sFileUser {
+ int UnixID;
+ int Balance;
+ int Flags;
+} tFileUser;
+
typedef struct sUser {
int UnixID;
typedef struct sUser {
int UnixID;
+ const char *Name;
int Balance;
int Flags;
} tUser;
int Balance;
int Flags;
} tUser;
+#if 0
+typedef struct sUser
+{
+ char *Username;
+ int UID;
+ int Pin;
+ int Balance;
+ int Flags;
+ time_t LastUsed;
+} tUser;
+typedef struct sAltLogin
+{
+ tUser *User;
+ char CardID[];
+} tAltLogin;
+#endif
+
#endif
#endif
UCC
git Repository :: git.ucc.asn.au