| 134 | } |
| 135 | |
| 136 | bool Decoder::have_required_probes() |
| 137 | { |
| 138 | dsv_info("decoder:%p", this); |
| 139 | |
| 140 | for (GSList *l = _decoder->channels; l; l = l->next) { |
| 141 | const srd_channel *const pdch = (const srd_channel*)l->data; |
| 142 | dsv_info("base decoder:%p", (void*)pdch); |
| 143 | } |
| 144 | |
| 145 | for (auto it = _probes.begin(); it != _probes.end(); ++it){ |
| 146 | const srd_channel *const pdch = (const srd_channel*)(*it).first; |
| 147 | dsv_info("got decoder:%p", (void*)pdch); |
| 148 | } |
| 149 | |
| 150 | for (GSList *l = _decoder->channels; l; l = l->next) { |
| 151 | const srd_channel *const pdch = (const srd_channel*)l->data; |
| 152 | assert(pdch); |
| 153 | if (_probes.find(pdch) == _probes.end()) |
| 154 | return false; |
| 155 | } |
| 156 | |
| 157 | return true; |
| 158 | } |
| 159 | |
| 160 | srd_decoder_inst* Decoder::create_decoder_inst(srd_session *session) |
| 161 | { |
no test coverage detected