MCPcopy Create free account
hub / github.com/DreamSourceLab/DSView / get_protocol_index_by_id

Method get_protocol_index_by_id

DSView/pv/dock/protocoldock.cpp:279–291  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

277}
278
279int 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
293void ProtocolDock::on_add_protocol()
294{

Callers 2

on_add_protocolMethod · 0.95
add_protocol_by_idMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected