]> git.stg.codes - stg.git/blobdiff - projects/stargazer/plugins/other/smux/smux.h
Allow to start mod_rscript without subnets file
[stg.git] / projects / stargazer / plugins / other / smux / smux.h
index a92326085253a66fd90d4a01e15f52c306cba801..adeb50af0e7cdb256d5c883303cda2ae42cc32ec 100644 (file)
@@ -65,7 +65,7 @@ public:
                    smux(rvalue.smux), userPtr(rvalue.userPtr) {}
     void     Notify(const std::string &, const std::string &);
 
-    USER_PTR GetUserPtr() { return userPtr; }
+    USER_PTR GetUserPtr() const { return userPtr; }
 
 private:
     CHG_AFTER_NOTIFIER & operator=(const CHG_AFTER_NOTIFIER & rvalue);
@@ -122,8 +122,8 @@ public:
 
     const std::string & GetStrError() const { return errorStr; }
     const std::string GetVersion() const { return "Stg SMUX Plugin 1.1"; }
-    uint16_t GetStartPosition() const { return 100; }
-    uint16_t GetStopPosition() const { return 100; }
+    uint16_t GetStartPosition() const { return 10; }
+    uint16_t GetStopPosition() const { return 10; }
 
     bool UpdateTables();
 
@@ -182,6 +182,12 @@ private:
 };
 //-----------------------------------------------------------------------------
 
+inline
+void CHG_AFTER_NOTIFIER::Notify(const std::string &, const std::string &)
+{
+smux.UpdateTables();
+}
+
 inline
 void ADD_DEL_TARIFF_NOTIFIER::Notify(const TARIFF_DATA &)
 {