diff options
author | Bert Vermeulen <bert@biot.com> | 2013-11-07 22:38:47 +0100 |
---|---|---|
committer | Bert Vermeulen <bert@biot.com> | 2013-11-14 22:12:59 +0100 |
commit | 0b9224604aa166775a6693efba215a33ce594b70 (patch) | |
tree | 648e7e639667799b324291b19885b562a377357e /libsigrokdecode.h.in | |
parent | 4f75f1c1dfdec362514884ac4335c080b48b3d78 (diff) | |
download | libsigrokdecode-0b9224604aa166775a6693efba215a33ce594b70.tar.gz libsigrokdecode-0b9224604aa166775a6693efba215a33ce594b70.zip |
Split annotation-specific output to another struct
struct srd_proto_data was supposed to be independent of the output
type, but a field specific to annotations snuck in there.
Diffstat (limited to 'libsigrokdecode.h.in')
-rw-r--r-- | libsigrokdecode.h.in | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libsigrokdecode.h.in b/libsigrokdecode.h.in index cec6def..3beff35 100644 --- a/libsigrokdecode.h.in +++ b/libsigrokdecode.h.in @@ -255,9 +255,12 @@ struct srd_proto_data { uint64_t start_sample; uint64_t end_sample; struct srd_pd_output *pdo; - int ann_format; void *data; }; +struct srd_proto_data_annotation { + int ann_format; + char **ann_text; +}; typedef void (*srd_pd_output_callback_t)(struct srd_proto_data *pdata, void *cb_data); |