X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/9b75c67ad810fb5b256e59d387e143dfdb1a0071..d8ed3c9a80357e890fe4a927b92437e8f88b6b7c:/stglibs/srvconf.lib/include/stg/servconf_types.h diff --git a/stglibs/srvconf.lib/include/stg/servconf_types.h b/stglibs/srvconf.lib/include/stg/servconf_types.h index 1af9d5ab..86df8e95 100644 --- a/stglibs/srvconf.lib/include/stg/servconf_types.h +++ b/stglibs/srvconf.lib/include/stg/servconf_types.h @@ -38,6 +38,8 @@ #define ENC_MSG_LEN (8) +struct ADMIN_CONF; + namespace STG { @@ -65,6 +67,13 @@ confLoginCipher, confData }; +namespace SIMPLE +{ + +typedef void (* CALLBACK)(bool result, const std::string & reason, void * data); + +} // namespace SIMPLE + namespace AUTH_BY { @@ -90,12 +99,12 @@ typedef void (* CALLBACK)(bool result, const std::string & reason, const INFO & } // namespace SERVER_INFO -namespace CHECK_USER +namespace RAW_XML { -typedef int (* CALLBACK)(bool result, const std::string & reason, void * data); +typedef void (* CALLBACK)(bool result, const std::string & reason, const std::string & response, void * data); -} // namespace CHECK_USER +} namespace GET_USER { @@ -148,17 +157,19 @@ typedef void (* CALLBACK)(bool result, const std::string & reason, const INFO & } // namespace GET_USERS -namespace CHG_USER +namespace GET_ADMIN { -typedef void (* CALLBACK)(bool result, const std::string & reason, void * data); +typedef ADMIN_CONF INFO; +typedef void (* CALLBACK)(bool result, const std::string & reason, const INFO & info, void * data); } -namespace SEND_MESSAGE +namespace GET_ADMINS { -typedef void (* CALLBACK)(bool result, const std::string & reason, void * data); +typedef std::vector INFO; +typedef void (* CALLBACK)(bool result, const std::string & reason, const INFO & info, void * data); }