]> git.stg.codes - stg.git/blobdiff - stglibs/srvconf.lib/include/stg/servconf_types.h
Added tariff parsers/serializers.
[stg.git] / stglibs / srvconf.lib / include / stg / servconf_types.h
index 6aef40cf117e8a845c2f791faf96b793e26ed8d1..4c0e59273b57c9cac236041c1be01044e03f04a5 100644 (file)
@@ -26,6 +26,7 @@
 
 #include <string>
 #include <vector>
+#include <ctime>
 
 #define  STG_HEADER     "SG04"
 #define  OK_HEADER      "OKHD"
@@ -37,6 +38,9 @@
 
 #define  ENC_MSG_LEN    (8)
 
+struct ADMIN_CONF;
+struct TARIFF_DATA;
+
 namespace STG
 {
 
@@ -64,6 +68,13 @@ confLoginCipher,
 confData
 };
 
+namespace SIMPLE
+{
+
+typedef void (* CALLBACK)(bool result, const std::string & reason, void * data);
+
+} // namespace SIMPLE
+
 namespace AUTH_BY
 {
 
@@ -89,12 +100,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 +158,35 @@ 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<GET_ADMIN::INFO> 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<GET_TARIFF::INFO> INFO;
+typedef void (* CALLBACK)(bool result, const std::string & reason, const INFO & info, void * data);
 
 }