]> sigrok.org Git - libsigrokdecode.git/blobdiff - libsigrokdecode.h
Make srd_inst_decode() return the actual decoder state, not SRD_OK
[libsigrokdecode.git] / libsigrokdecode.h
index a26bce9a402ba720ac5e8c1141bccdd131b50966..deba470149306de3b30289affa6b7e38c53ee843 100644 (file)
@@ -277,6 +277,9 @@ struct srd_decoder_inst {
        /** Requests termination of wait() and decode(). */
        gboolean want_wait_terminate;
 
+       /** Indicates the current state of the decoder stack. */
+       int decoder_state;
+
        GCond got_new_samples_cond;
        GCond handled_all_samples_cond;
        GMutex data_mutex;