]> git.stg.codes - stg.git/blobdiff - stglibs/srvconf.lib/include/stg/servconf_types.h
Moved SERVER_INFO parser from global scope.
[stg.git] / stglibs / srvconf.lib / include / stg / servconf_types.h
index 7ffc5811f5d1e91ad8c6653b96b453f2c79363b2..1743204481a054a4e6c4c6b4fe987078ebffcf77 100644 (file)
@@ -21,6 +21,8 @@
 #ifndef __STG_STGLIBS_SRVCONF_TYPES_H__
 #define __STG_STGLIBS_SRVCONF_TYPES_H__
 
+#include "stg/const.h" // DIR_NUM
+
 #include <string>
 #include <vector>
 
@@ -68,6 +70,23 @@ typedef std::vector<std::string> INFO;
 typedef void (* CALLBACK)(bool result, const std::string & reason, const INFO & info, void * data);
 
 } // namespace AUTH_BY
+
+namespace SERVER_INFO
+{
+
+struct INFO
+{
+    std::string version;
+    int         tariffNum;
+    int         tariffType;
+    int         usersNum;
+    std::string uname;
+    int         dirNum;
+    std::string dirName[DIR_NUM];
+};
+typedef void (* CALLBACK)(bool result, const std::string & reason, const INFO & info, void * data);
+
+} // namespace SERVER_INFO
 } // namespace STG
 
 #endif