diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2012-01-10 20:44:22 +0100 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2012-01-10 21:00:14 +0100 |
commit | 94d43b37bd34263f5ed9f7135aac5fe7413c7f07 (patch) | |
tree | 5edf11ef2b00343a10f4897cb34d378a9dfdc084 /sigrokdecode.h | |
parent | 6b741b128c9838d2c417e56a6e8b5d377467a3ff (diff) | |
download | libsigrokdecode-94d43b37bd34263f5ed9f7135aac5fe7413c7f07.tar.gz libsigrokdecode-94d43b37bd34263f5ed9f7135aac5fe7413c7f07.zip |
srd: Finish consistency rename to ANN/PROTO.
Diffstat (limited to 'sigrokdecode.h')
-rw-r--r-- | sigrokdecode.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sigrokdecode.h b/sigrokdecode.h index cf52264..a4b5c2c 100644 --- a/sigrokdecode.h +++ b/sigrokdecode.h @@ -64,8 +64,8 @@ extern "C" { #define SRD_LOG_SPEW 5 /**< Output very noisy debug messages. */ enum { - SRD_OUTPUT_ANNOTATION, - SRD_OUTPUT_PROTOCOL, + SRD_OUTPUT_ANN, + SRD_OUTPUT_PROTO, SRD_OUTPUT_BINARY, /* When adding an output type, don't forget to expose it to PDs in: * controller.c:PyInit_sigrokdecode() @@ -135,7 +135,7 @@ struct srd_pd_output { int pdo_id; int output_type; struct srd_decoder *decoder; - char *protocol_id; + char *proto_id; }; typedef struct { @@ -147,17 +147,17 @@ typedef struct { PyObject *sample; } srd_logic; -struct srd_protocol_data { +struct srd_proto_data { uint64_t start_sample; uint64_t end_sample; struct srd_pd_output *pdo; - int annotation_format; + int ann_format; void *data; }; struct srd_pd_callback { int output_type; - void (*callback)(struct srd_protocol_data *); + void (*callback)(struct srd_proto_data *); }; |