X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/97f1f905311bcb76c3b500e3e49c1b9f49dff491..2d0dedb8abc45c661e35e729b5ff71724d4d749a:/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..98add644 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,11 @@ #define ENC_MSG_LEN (8) +struct ADMIN_CONF; +struct TARIFF_DATA; +struct SERVICE_CONF; +struct CORP_CONF; + namespace STG { @@ -64,6 +70,13 @@ confLoginCipher, confData }; +namespace SIMPLE +{ + +typedef void (* CALLBACK)(bool result, const std::string & reason, void * data); + +} // namespace SIMPLE + namespace AUTH_BY { @@ -89,12 +102,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 +160,67 @@ 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); + +} + +namespace GET_TARIFF +{ + +typedef TARIFF_DATA INFO; +typedef void (* CALLBACK)(bool result, const std::string & reason, const INFO & info, void * data); + +} + +namespace GET_TARIFFS +{ + +typedef std::vector INFO; +typedef void (* CALLBACK)(bool result, const std::string & reason, const INFO & info, void * data); + +} + +namespace GET_SERVICE +{ + +typedef SERVICE_CONF INFO; +typedef void (* CALLBACK)(bool result, const std::string & reason, const INFO & info, void * data); + +} + +namespace GET_SERVICES +{ + +typedef std::vector INFO; +typedef void (* CALLBACK)(bool result, const std::string & reason, const INFO & info, void * data); + +} + +namespace GET_CORP +{ + +typedef CORP_CONF INFO; +typedef void (* CALLBACK)(bool result, const std::string & reason, const INFO & info, void * data); + +} + +namespace GET_CORPORATIONS +{ + +typedef std::vector INFO; +typedef void (* CALLBACK)(bool result, const std::string & reason, const INFO & info, void * data); }