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

Method have_required_probes

DSView/pv/data/decode/decoder.cpp:136–158  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134}
135
136bool 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
160srd_decoder_inst* Decoder::create_decoder_inst(srd_session *session)
161{

Callers 1

check_required_probesMethod · 0.80

Calls 1

endMethod · 0.45

Tested by

no test coverage detected