X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/2da962edada912d8081f7e15db0ac887b98b179e..3f044094a85b8542286107bd6a9da921fc990681:/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 09f9b970..86df8e95 100644 --- a/stglibs/srvconf.lib/include/stg/servconf_types.h +++ b/stglibs/srvconf.lib/include/stg/servconf_types.h @@ -67,7 +67,12 @@ confLoginCipher, confData }; -typedef void (* SIMPLE_CALLBACK)(bool result, const std::string & reason, void * data); +namespace SIMPLE +{ + +typedef void (* CALLBACK)(bool result, const std::string & reason, void * data); + +} // namespace SIMPLE namespace AUTH_BY { @@ -94,12 +99,12 @@ typedef void (* CALLBACK)(bool result, const std::string & reason, const INFO & } // namespace SERVER_INFO -namespace CHECK_USER +namespace RAW_XML { -typedef SIMPLE_CALLBACK CALLBACK; +typedef void (* CALLBACK)(bool result, const std::string & reason, const std::string & response, void * data); -} // namespace CHECK_USER +} namespace GET_USER { @@ -152,20 +157,6 @@ typedef void (* CALLBACK)(bool result, const std::string & reason, const INFO & } // namespace GET_USERS -namespace CHG_USER -{ - -typedef SIMPLE_CALLBACK CALLBACK; - -} - -namespace SEND_MESSAGE -{ - -typedef SIMPLE_CALLBACK CALLBACK; - -} - namespace GET_ADMIN { @@ -182,27 +173,6 @@ typedef void (* CALLBACK)(bool result, const std::string & reason, const INFO & } -namespace ADD_ADMIN -{ - -typedef SIMPLE_CALLBACK CALLBACK; - -} - -namespace DEL_ADMIN -{ - -typedef SIMPLE_CALLBACK CALLBACK; - -} - -namespace CHG_ADMIN -{ - -typedef SIMPLE_CALLBACK CALLBACK; - -} - } // namespace STG #endif