X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/9b75c67ad810fb5b256e59d387e143dfdb1a0071..84e4df4d2b7ad959ed50c298b82185481e25aad2:/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..09f9b970 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,8 @@ confLoginCipher, confData }; +typedef void (* SIMPLE_CALLBACK)(bool result, const std::string & reason, void * data); + namespace AUTH_BY { @@ -93,7 +97,7 @@ typedef void (* CALLBACK)(bool result, const std::string & reason, const INFO & namespace CHECK_USER { -typedef int (* CALLBACK)(bool result, const std::string & reason, void * data); +typedef SIMPLE_CALLBACK CALLBACK; } // namespace CHECK_USER @@ -151,14 +155,51 @@ typedef void (* CALLBACK)(bool result, const std::string & reason, const INFO & namespace CHG_USER { -typedef void (* CALLBACK)(bool result, const std::string & reason, void * data); +typedef SIMPLE_CALLBACK CALLBACK; } namespace SEND_MESSAGE { -typedef void (* CALLBACK)(bool result, const std::string & reason, void * data); +typedef SIMPLE_CALLBACK CALLBACK; + +} + +namespace GET_ADMIN +{ + +typedef ADMIN_CONF INFO; +typedef void (* CALLBACK)(bool result, const std::string & reason, const INFO & info, void * data); + +} + +namespace GET_ADMINS +{ + +typedef std::vector INFO; +typedef void (* CALLBACK)(bool result, const std::string & reason, const INFO & info, void * data); + +} + +namespace ADD_ADMIN +{ + +typedef SIMPLE_CALLBACK CALLBACK; + +} + +namespace DEL_ADMIN +{ + +typedef SIMPLE_CALLBACK CALLBACK; + +} + +namespace CHG_ADMIN +{ + +typedef SIMPLE_CALLBACK CALLBACK; }