X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=server%2Fsrc%2Fcommon.h;h=f310e9a580de26333cdad22af7360e002d94ae3d;hb=7c5c2dd3c8cf3f88daf1a12beacd607ce176a8dc;hp=3e47fb7914326075571116cbaab0350d04977fff;hpb=a1dce35d211aa41688b589292d4bfa338e5c953c;p=tpg%2Fopendispense2.git diff --git a/server/src/common.h b/server/src/common.h index 3e47fb7..f310e9a 100644 --- a/server/src/common.h +++ b/server/src/common.h @@ -12,6 +12,10 @@ // === CONSTANTS === #define DEFAULT_CONFIG_FILE "/etc/opendispense/main.cfg" +// === HELPER MACROS === +#define _EXPSTR(x) #x +#define EXPSTR(x) _EXPSTR(x) + // === STRUCTURES === typedef struct sItem tItem; struct sItem @@ -54,5 +58,6 @@ extern void Log_Info(const char *Format, ...); extern int AlterBalance(int User, int Ammount); extern int GetBalance(int User); extern char *GetUserName(int User); +extern int GetUserID(const char *Username); #endif