Command cmd = static_cast<Command>(command);
tizen_base::Bundle b(serialized);
+ // TODO: filters_ is changed to multimap from map.
+ // multiple filters can be found, but only the first one will be used for now.
auto it = filters_.find(cmd);
if (it == filters_.end()) {
LOG(ERROR) << "UnKnown command";
Command cmd = static_cast<Command>(command);
tizen_base::Bundle b(serialized);
- auto it = broker->filters_.find(cmd);
- if (it == broker->filters_.end())
- return;
-
- tizen_base::Bundle result = it->second->GetHandler()->OnRequest(cmd, b);
+ auto itlow = broker->filters_.lower_bound(cmd);
+ auto ithigh = broker->filters_.upper_bound(cmd);
+ for (auto it = itlow; it != ithigh; ++it)
+ tizen_base::Bundle result =
+ it->second->GetHandler()->OnRequest(cmd, b);
},
this, nullptr);
tizen_base::Bundle b(serialized);
g_object_unref(reply);
+ // TODO: filters_ is changed to multimap from map.
+ // multiple filters can be found, but only the first one will be used
+ // for now.
auto it = broker->filters_.find(param->first);
if (it == broker->filters_.end())
return;