X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/9ff682964a02109507959c858c2571e1e6780ee8..82ede2a92a721d1c8f0e3fd109a2594f2096306e:/projects/stargazer/plugins/other/smux/smux.h?ds=inline diff --git a/projects/stargazer/plugins/other/smux/smux.h b/projects/stargazer/plugins/other/smux/smux.h index 08e23c38..7ab603df 100644 --- a/projects/stargazer/plugins/other/smux/smux.h +++ b/projects/stargazer/plugins/other/smux/smux.h @@ -12,8 +12,6 @@ #include "stg/os_int.h" #include "stg/plugin.h" #include "stg/module_settings.h" -#include "stg/users.h" -#include "stg/tariffs.h" #include "sensors.h" #include "tables.h" @@ -24,6 +22,10 @@ extern "C" PLUGIN * GetPlugin(); class USER; class SETTINGS; class SMUX; +class USERS; +class TARIFFS; +class SERVICES; +class CORPORATIONS; typedef bool (SMUX::*SMUXPacketHandler)(const SMUX_PDUs_t * pdus); typedef bool (SMUX::*PDUsHandler)(const PDUs_t * pdus); @@ -56,7 +58,9 @@ public: void SetUsers(USERS * u) { users = u; } void SetTariffs(TARIFFS * t) { tariffs = t; } - void SetAdmins(ADMINS *) {} + void SetAdmins(ADMINS * a) { admins = a; } + void SetServices(SERVICES * s) { services = s; } + void SetCorporations(CORPORATIONS * c) { corporations = c; } void SetTraffcounter(TRAFFCOUNTER *) {} void SetStore(STORE *) {} void SetStgSettings(const SETTINGS *) {} @@ -93,6 +97,9 @@ private: USERS * users; TARIFFS * tariffs; + ADMINS * admins; + SERVICES * services; + CORPORATIONS * corporations; mutable std::string errorStr; SMUX_SETTINGS smuxSettings;