@@ -861,7 +861,7 @@ void DServer::restart(string &d_name)
861861
862862 vector<PollObj *> &p_obj = dev_to_del->get_poll_obj_list ();
863863 vector<Pol> dev_pol;
864- vector<EventPar> eve;
864+ DeviceEventSubscriptionState eve;
865865
866866 for (i = 0 ;i < p_obj.size ();i++)
867867 {
@@ -1172,7 +1172,7 @@ void ServRestartThread::run(void *ptr)
11721172// Memorize event parameters and devices interface
11731173//
11741174
1175- map<string,vector<EventPar> > map_events;
1175+ EventSubscriptionState map_events;
11761176 map<string,DevIntr> map_dev_inter;
11771177
11781178 dev->mem_event_par (map_events);
@@ -1956,14 +1956,14 @@ void DServer::mcast_event_for_att(string &dev_name,string &att_name,vector<strin
19561956//
19571957// ------------------------------------------------------------------------------------------------------------------
19581958
1959- void DServer::mem_event_par (map<string,vector<EventPar> > & _map)
1959+ void DServer::mem_event_par (EventSubscriptionState& _map)
19601960{
19611961 for (size_t i = 0 ;i < class_list.size ();i++)
19621962 {
19631963 vector<DeviceImpl *> &dev_list = class_list[i]->get_device_list ();
19641964 for (size_t j = 0 ;j < dev_list.size ();j++)
19651965 {
1966- vector<EventPar> eve;
1966+ DeviceEventSubscriptionState eve;
19671967 dev_list[j]->get_device_attr ()->get_event_param (eve);
19681968 dev_list[j]->get_event_param (eve);
19691969
@@ -1989,15 +1989,15 @@ void DServer::mem_event_par(map<string,vector<EventPar> > &_map)
19891989//
19901990// ------------------------------------------------------------------------------------------------------------------
19911991
1992- void DServer::apply_event_par (map<string,vector<EventPar> > & _map)
1992+ void DServer::apply_event_par (EventSubscriptionState& _map)
19931993{
19941994 for (size_t i = 0 ;i < class_list.size ();i++)
19951995 {
19961996 vector<DeviceImpl *> &dev_list = class_list[i]->get_device_list ();
19971997 for (size_t j = 0 ;j < dev_list.size ();j++)
19981998 {
19991999 string &dev_name = dev_list[j]->get_name ();
2000- map<string,vector<EventPar> > ::iterator ite;
2000+ EventSubscriptionState ::iterator ite;
20012001 ite = _map.find (dev_name);
20022002
20032003 if (ite != _map.end ())
0 commit comments