X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/cdd6c43fceeb5a37867ae902bb71429abad7fa64..4035038a041a93a0d6e34d0a4af88479f84dc08d:/stglibs/srvconf.lib/servconf.h?ds=sidebyside diff --git a/stglibs/srvconf.lib/servconf.h b/stglibs/srvconf.lib/servconf.h index 874b6ab1..67c2f248 100644 --- a/stglibs/srvconf.lib/servconf.h +++ b/stglibs/srvconf.lib/servconf.h @@ -32,9 +32,9 @@ #include #include -#include "os_int.h" +#include "stg/os_int.h" +#include "stg/const.h" #include "netunit.h" -#include "stg_const.h" void Start(void *data, const char *el, const char **attr); void End(void *data, const char *el); @@ -72,6 +72,7 @@ struct USERDATA std::string password; double cash; double credit; + time_t creditExpire; double lastCash; double prepaidTraff; int down; @@ -203,7 +204,6 @@ private: RecvServerInfoDataCb_t RecvServerInfoDataCb; void * serverInfoDataCb; - USERDATA user; int depth; bool error; SERVERINFO serverInfo; @@ -250,8 +250,8 @@ public: int GetServerInfo(); int CheckUser(const char * login, const char * password); - char * GetStrError(); - int GetError(); + const std::string & GetStrError() const; + int GetError(); int Start(const char *el, const char **attr); void End(const char *el); @@ -267,11 +267,10 @@ private: NETTRANSACT nt; int parseDepth; - USERDATA ud; - char errorMsg[MAX_ERR_STR_LEN]; - int error; - XML_Parser parser; + std::string errorMsg; + int error; + XML_Parser parser; RecvUserDataCb_t RecvUserDataCb; RecvUserDataCb_t RecvGetUserDataCb;