From: Uwe Hermann Date: Sat, 3 May 2014 21:45:55 +0000 (+0200) Subject: Make the srd_Decoder type private. X-Git-Tag: libsigrokdecode-0.3.0~17 X-Git-Url: https://sigrok.org/gitweb/?p=libsigrokdecode.git;a=commitdiff_plain;h=17475b09ef9504f91a28b0873b53cec329513077 Make the srd_Decoder type private. It's not public API and is not used (nor should it be used) by any frontends. --- 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",