]> 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 f46aadb5e80c1647c7456f7eca19a2eb03b8efbf..4c0e59273b57c9cac236041c1be01044e03f04a5 100644 (file)
@@ -39,6 +39,7 @@
 #define  ENC_MSG_LEN    (8)
 
 struct ADMIN_CONF;
+struct TARIFF_DATA;
 
 namespace STG
 {
@@ -99,6 +100,13 @@ typedef void (* CALLBACK)(bool result, const std::string & reason, const INFO &
 
 } // namespace SERVER_INFO
 
+namespace RAW_XML
+{
+
+typedef void (* CALLBACK)(bool result, const std::string & reason, const std::string & response, void * data);
+
+}
+
 namespace GET_USER
 {
 
@@ -166,6 +174,22 @@ typedef void (* CALLBACK)(bool result, const std::string & reason, const INFO &
 
 }
 
+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);
+
+}
+
 } // namespace STG
 
 #endif