X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=output%2Ftext%2Ftext.h;h=8e96318d5481356c92667ec093157c513b94ca6f;hb=33c40990fd099c3230fdac51f84a1be7ce2e88e7;hp=3469e62ec1a09fc37651f7b93411fe6f24ba7f65;hpb=054e67090641e0a56a7e55789a3882ca138a0b11;p=libsigrok.git diff --git a/output/text/text.h b/output/text/text.h index 3469e62e..8e96318d 100644 --- a/output/text/text.h +++ b/output/text/text.h @@ -1,5 +1,5 @@ /* - * This file is part of the sigrok project. + * This file is part of the libsigrok project. * * Copyright (C) 2010-2012 Bert Vermeulen * @@ -36,18 +36,19 @@ struct context { unsigned int unitsize; int line_offset; int linebuf_len; - char *probelist[SR_MAX_NUM_PROBES + 1]; + GSList *probenames; uint8_t *linebuf; int spl_cnt; uint8_t *linevalues; char *header; int mark_trigger; - uint64_t prevsample; + uint8_t *prevsample; enum outputmode mode; }; SR_PRIV void flush_linebufs(struct context *ctx, uint8_t *outbuf); SR_PRIV int init(struct sr_output *o, int default_spl, enum outputmode mode); +SR_PRIV int text_cleanup(struct sr_output *o); SR_PRIV int event(struct sr_output *o, int event_type, uint8_t **data_out, uint64_t *length_out);