]> sigrok.org Git - libsigrokdecode.git/blobdiff - type_decoder.c
Easier access to sequences of strings, not just lists.
[libsigrokdecode.git] / type_decoder.c
index 38fa1ae836d3bc5696327f4695f7507987b936f8..6140fd0b21e63112b54259fcb56a6bf3dc618b4e 100644 (file)
@@ -78,7 +78,7 @@ static int convert_annotation(struct srd_decoder_inst *di, PyObject *obj,
                        "second element was not a list.", di->decoder->name);
                return SRD_ERR_PYTHON;
        }
-       if (py_strlist_to_char(py_tmp, &ann_text) != SRD_OK) {
+       if (py_strseq_to_char(py_tmp, &ann_text) != SRD_OK) {
                srd_err("Protocol decoder %s submitted annotation list, but "
                        "second element was malformed.", di->decoder->name);
                return SRD_ERR_PYTHON;