if (!(sl = g_slist_find_custom(di->decoder->probes, probe_id,
(GCompareFunc)compare_probe_id))) {
/* Fall back on optional probes. */
- if (!(sl = g_slist_find_custom(di->decoder->extra_probes,
+ if (!(sl = g_slist_find_custom(di->decoder->opt_probes,
probe_id, (GCompareFunc)compare_probe_id))) {
srd_err("Protocol decoder %s has no probe '%s'.",
di->decoder->name, probe_id);
* order in which the decoder class defined them.
*/
di->dec_num_probes = g_slist_length(di->decoder->probes) +
- g_slist_length(di->decoder->extra_probes);
+ g_slist_length(di->decoder->opt_probes);
if (di->dec_num_probes) {
if (!(di->dec_probemap = g_try_malloc(sizeof(int) * di->dec_num_probes))) {
srd_err("Failed to malloc probe map.");
goto err_out;
/* Check and import optional probes. */
- if (get_probes(d, "extra_probes", &d->extra_probes) != SRD_OK)
+ if (get_probes(d, "optional_probes", &d->opt_probes) != SRD_OK)
goto err_out;
/* Store required fields in newly allocated strings. */
srd_instance_free_all(NULL);
free_probes(dec->probes);
- free_probes(dec->extra_probes);
+ free_probes(dec->opt_probes);
g_free(dec->id);
g_free(dec->name);
g_free(dec->longname);