Squashed commit of the following:
commit
11e56a92ba84f1a3dfb8c7a5a370a889207fe9fc
Author: Oleksii Shumeiko <oshumeik@cisco.com>
Date: Tue Oct 20 16:14:22 2020 +0300
module: fix modules that accept their configuration as a list
The following modules accept their configuration as a list:
FileConnectorModule
TcpConnectorModule
SideChannelModule
commit
683ba5fc7849a3e92991634e4a3f5e34180fb069
Author: Oleksii Shumeiko <oshumeik@cisco.com>
Date: Wed Oct 21 14:29:36 2020 +0300
framework: fix ConnectorConfig dtor to be virtual
//-------------------------------------------------------------------------
FileConnectorModule::FileConnectorModule() :
- Module(FILE_CONNECTOR_NAME, FILE_CONNECTOR_HELP, file_connector_params)
+ Module(FILE_CONNECTOR_NAME, FILE_CONNECTOR_HELP, file_connector_params, true)
{
config = nullptr;
config_set = new FileConnectorConfig::FileConnectorConfigSet;
//-------------------------------------------------------------------------
TcpConnectorModule::TcpConnectorModule() :
- Module(TCP_CONNECTOR_NAME, TCP_CONNECTOR_HELP, tcp_connector_params)
+ Module(TCP_CONNECTOR_NAME, TCP_CONNECTOR_HELP, tcp_connector_params, true)
{
config = nullptr;
config_set = new TcpConnectorConfig::TcpConnectorConfigSet;
typedef std::vector<ConnectorConfig*> ConfigSet;
Connector::Direction direction;
std::string connector_name;
+
+ virtual ~ConnectorConfig() = default;
};
class SO_PUBLIC ConnectorCommon
}
SideChannelModule::SideChannelModule() :
- Module(SIDECHANNEL_NAME, SIDECHANNEL_HELP, sc_params){}
+ Module(SIDECHANNEL_NAME, SIDECHANNEL_HELP, sc_params, true){}
ProfileStats* SideChannelModule::get_profile() const
{ return &sc_perf_stats; }