X-Git-Url: https://sigrok.org/gitweb/?p=libsigrokdecode.git;a=blobdiff_plain;f=libsigrokdecode.h;h=ae96d950e5f009f79bb4dd7d845ceb5e4faa0dea;hp=a4d28d40b943db1a73da1e3e50a89643994a583f;hb=cdb49509e85443129f2d60180eb818813030901e;hpb=21dfd91d99836bdc6c0da939b601dd8a52358f21 diff --git a/libsigrokdecode.h b/libsigrokdecode.h index a4d28d4..ae96d95 100644 --- a/libsigrokdecode.h +++ b/libsigrokdecode.h @@ -15,8 +15,7 @@ * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * along with this program; if not, see . */ #ifndef LIBSIGROKDECODE_LIBSIGROKDECODE_H @@ -236,10 +235,10 @@ struct srd_decoder_inst { GArray *match_array; /** Absolute start sample number. */ - uint64_t start_samplenum; + uint64_t abs_start_samplenum; /** Absolute end sample number. */ - uint64_t end_samplenum; + uint64_t abs_end_samplenum; /** Pointer to the buffer/chunk of input samples. */ const uint8_t *inbuf; @@ -248,7 +247,7 @@ struct srd_decoder_inst { uint64_t inbuflen; /** Absolute current samplenumber. */ - uint64_t cur_samplenum; + uint64_t abs_cur_samplenum; /** Array of "old" (previous sample) pin values. */ GArray *old_pins_array; @@ -262,6 +261,9 @@ struct srd_decoder_inst { /** Indicates whether the worker thread has handled all samples. */ gboolean handled_all_samples; + /** Requests termination of wait() and decode(). */ + gboolean want_wait_terminate; + GCond got_new_samples_cond; GCond handled_all_samples_cond; GMutex data_mutex; @@ -313,7 +315,7 @@ SRD_API int srd_session_start(struct srd_session *sess); SRD_API int srd_session_metadata_set(struct srd_session *sess, int key, GVariant *data); SRD_API int srd_session_send(struct srd_session *sess, - uint64_t start_samplenum, uint64_t end_samplenum, + uint64_t abs_start_samplenum, uint64_t abs_end_samplenum, const uint8_t *inbuf, uint64_t inbuflen, uint64_t unitsize); SRD_API int srd_session_destroy(struct srd_session *sess); SRD_API int srd_pd_output_callback_add(struct srd_session *sess, @@ -361,6 +363,8 @@ SRD_API int srd_lib_version_current_get(void); SRD_API int srd_lib_version_revision_get(void); SRD_API int srd_lib_version_age_get(void); SRD_API const char *srd_lib_version_string_get(void); +SRD_API GSList *srd_buildinfo_libs_get(void); +SRD_API char *srd_buildinfo_host_get(void); #include "version.h"