| 277 | } |
| 278 | |
| 279 | int ProtocolDock::get_protocol_index_by_id(QString id) |
| 280 | { |
| 281 | int dex = 0; |
| 282 | for (auto info : _decoderInfoList){ |
| 283 | srd_decoder *dec = (srd_decoder *)(info->_data_handle); |
| 284 | QString proid(dec->id); |
| 285 | if (id == proid){ |
| 286 | return dex; |
| 287 | } |
| 288 | ++dex; |
| 289 | } |
| 290 | return -1; |
| 291 | } |
| 292 | |
| 293 | void ProtocolDock::on_add_protocol() |
| 294 | { |
no outgoing calls
no test coverage detected