summaryrefslogtreecommitdiff
path: root/sigrokdecode.h
diff options
context:
space:
mode:
authorBert Vermeulen <bert@biot.com>2012-01-15 03:43:01 +0100
committerBert Vermeulen <bert@biot.com>2012-01-15 04:03:42 +0100
commitf8e458577f72a5b13fa83b6cd3675a7eefc83072 (patch)
tree533cfca0385210e8640991252d70778b16168b16 /sigrokdecode.h
parent8892c76856f22acf6eafc66c6a5f86ab7cb8bddb (diff)
downloadlibsigrokdecode-f8e458577f72a5b13fa83b6cd3675a7eefc83072.tar.gz
libsigrokdecode-f8e458577f72a5b13fa83b6cd3675a7eefc83072.zip
move srd_Decoder to sigrokdecode.h, and rename it in line with srd_logic
Diffstat (limited to 'sigrokdecode.h')
-rw-r--r--sigrokdecode.h25
1 files changed, 15 insertions, 10 deletions
diff --git a/sigrokdecode.h b/sigrokdecode.h
index 3c69314..71d0ae4 100644
--- a/sigrokdecode.h
+++ b/sigrokdecode.h
@@ -138,15 +138,6 @@ struct srd_pd_output {
char *proto_id;
};
-typedef struct {
- PyObject_HEAD
- struct srd_decoder_instance *di;
- unsigned int itercnt;
- uint8_t *inbuf;
- uint64_t inbuflen;
- PyObject *sample;
-} srd_logic;
-
struct srd_proto_data {
uint64_t start_sample;
uint64_t end_sample;
@@ -161,8 +152,22 @@ struct srd_pd_callback {
};
-/*--- controller.c ----------------------------------------------------------*/
+/* custom python types */
+typedef struct {
+ PyObject_HEAD
+} srd_Decoder;
+typedef struct {
+ PyObject_HEAD
+ struct srd_decoder_instance *di;
+ unsigned int itercnt;
+ uint8_t *inbuf;
+ uint64_t inbuflen;
+ PyObject *sample;
+} srd_logic;
+
+
+/*--- controller.c ----------------------------------------------------------*/
int srd_init(void);
int srd_exit(void);
int set_modulepath(void);