From 17475b09ef9504f91a28b0873b53cec329513077 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Sat, 3 May 2014 23:45:55 +0200 Subject: [PATCH] Make the srd_Decoder type private. It's not public API and is not used (nor should it be used) by any frontends. --- libsigrokdecode.h | 4 ---- type_decoder.c | 4 ++++ 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libsigrokdecode.h b/libsigrokdecode.h index db06d43..f043036 100644 --- a/libsigrokdecode.h +++ b/libsigrokdecode.h @@ -269,10 +269,6 @@ struct srd_pd_callback { /* Custom Python types: */ -typedef struct { - PyObject_HEAD -} srd_Decoder; - typedef struct { PyObject_HEAD struct srd_decoder_inst *di; diff --git a/type_decoder.c b/type_decoder.c index f64f849..11c8ec0 100644 --- a/type_decoder.c +++ b/type_decoder.c @@ -22,6 +22,10 @@ #include "config.h" #include +typedef struct { + PyObject_HEAD +} srd_Decoder; + /* This is only used for nicer srd_dbg() output. */ static const char *OUTPUT_TYPES[] = { "OUTPUT_ANN", -- 2.30.2