]> git.stg.codes - stg.git/blobdiff - stglibs/srvconf.lib/include/stg/servconf_types.h
Use single simple parser for one-tag answers.
[stg.git] / stglibs / srvconf.lib / include / stg / servconf_types.h
index 09f9b9702eb6419441114e49deb411ab0fcef8c8..f46aadb5e80c1647c7456f7eca19a2eb03b8efbf 100644 (file)
@@ -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,13 +99,6 @@ typedef void (* CALLBACK)(bool result, const std::string & reason, const INFO &
 
 } // namespace SERVER_INFO
 
-namespace CHECK_USER
-{
-
-typedef SIMPLE_CALLBACK CALLBACK;
-
-} // namespace CHECK_USER
-
 namespace GET_USER
 {
 
@@ -152,20 +150,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 +166,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