summaryrefslogtreecommitdiff
path: root/module_sigrokdecode.c
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2012-01-10 21:05:09 +0100
committerUwe Hermann <uwe@hermann-uwe.de>2012-01-10 21:05:09 +0100
commite97b6ef569f73e387b2597dfa144c01838c0e27c (patch)
tree3c106735b15718ab96704f06b9fb51a431d6701b /module_sigrokdecode.c
parent94d43b37bd34263f5ed9f7135aac5fe7413c7f07 (diff)
downloadlibsigrokdecode-e97b6ef569f73e387b2597dfa144c01838c0e27c.tar.gz
libsigrokdecode-e97b6ef569f73e387b2597dfa144c01838c0e27c.zip
srd: annotation -> annotations.
In the PDs (Python code), the 'annotation' variable/attribute is a list of annotation formats. Use the plural 'annotations' as we do for other lists such as 'inputs', 'outputs', 'probes', 'options', and so on.
Diffstat (limited to 'module_sigrokdecode.c')
-rw-r--r--module_sigrokdecode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/module_sigrokdecode.c b/module_sigrokdecode.c
index a3872ab..d2ffb07 100644
--- a/module_sigrokdecode.c
+++ b/module_sigrokdecode.c
@@ -56,7 +56,7 @@ static int convert_pyobj(struct srd_decoder_instance *di, PyObject *obj,
}
ann_id = PyLong_AsLong(py_tmp);
- if (!(pdo = g_slist_nth_data(di->decoder->annotation, ann_id))) {
+ if (!(pdo = g_slist_nth_data(di->decoder->annotations, ann_id))) {
srd_err("Protocol decoder %s submitted data to non-existent annotation format %d",
di->decoder->name, ann_id);
return SRD_ERR_PYTHON;