X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/97f1f905311bcb76c3b500e3e49c1b9f49dff491..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 6aef40cf..86df8e95 100644 --- a/stglibs/srvconf.lib/include/stg/servconf_types.h +++ b/stglibs/srvconf.lib/include/stg/servconf_types.h @@ -26,6 +26,7 @@ #include #include +#include #define STG_HEADER "SG04" #define OK_HEADER "OKHD" @@ -37,6 +38,8 @@ #define ENC_MSG_LEN (8) +struct ADMIN_CONF; + namespace STG { @@ -64,6 +67,13 @@ confLoginCipher, confData }; +namespace SIMPLE +{ + +typedef void (* CALLBACK)(bool result, const std::string & reason, void * data); + +} // namespace SIMPLE + namespace AUTH_BY { @@ -89,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 { @@ -147,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); }