X-Git-Url: https://sigrok.org/gitweb/?p=libsigrokdecode.git;a=blobdiff_plain;f=libsigrokdecode.h;h=deba470149306de3b30289affa6b7e38c53ee843;hp=ee610c939d3398ded1e068953fb3edec0c95eab7;hb=d4d8ac2a005a091f23bf89cff2ff6fbfc8fcd739;hpb=9553e9622bb26dfbe6296ef6f330b1cf0f5b40e6;ds=sidebyside diff --git a/libsigrokdecode.h b/libsigrokdecode.h index ee610c9..deba470 100644 --- a/libsigrokdecode.h +++ b/libsigrokdecode.h @@ -71,6 +71,7 @@ enum srd_error_code { SRD_ERR_BUG = -4, /**< Errors hinting at internal bugs */ SRD_ERR_PYTHON = -5, /**< Python C API error */ SRD_ERR_DECODERS_DIR = -6, /**< Protocol decoder path invalid */ + SRD_ERR_TERM_REQ = -7, /**< Termination requested */ /* * Note: When adding entries here, don't forget to also update the @@ -276,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;