equal
deleted
inserted
replaced
465 return list; |
465 return list; |
466 } |
466 } |
467 |
467 |
468 /****************************************************************************/ |
468 /****************************************************************************/ |
469 |
469 |
470 Command::DomainList Command::selectedDomains(MasterDevice &m) |
470 Command::DomainList Command::selectedDomains(MasterDevice &m, |
471 { |
471 const ec_ioctl_master_t &io) |
472 ec_ioctl_master_t master; |
472 { |
473 DomainList list; |
473 DomainList list; |
474 |
474 |
475 m.getMaster(&master); |
475 PositionParser pp(io.domain_count); |
476 |
|
477 PositionParser pp(master.domain_count); |
|
478 NumberListParser::List domList = pp.parse(domains.c_str()); |
476 NumberListParser::List domList = pp.parse(domains.c_str()); |
479 NumberListParser::List::const_iterator di; |
477 NumberListParser::List::const_iterator di; |
480 |
478 |
481 for (di = domList.begin(); di != domList.end(); di++) { |
479 for (di = domList.begin(); di != domList.end(); di++) { |
482 if (*di < master.domain_count) { |
480 if (*di < io.domain_count) { |
483 ec_ioctl_domain_t d; |
481 ec_ioctl_domain_t d; |
484 m.getDomain(&d, *di); |
482 m.getDomain(&d, *di); |
485 list.push_back(d); |
483 list.push_back(d); |
486 } |
484 } |
487 } |
485 } |