]> sigrok.org Git - libsigrok.git/blobdiff - output/text/text.h
Replace 'probe' with 'channel' in most places.
[libsigrok.git] / output / text / text.h
index f3ada90dc23ae3af3ae7b91865aa7740e683c087..a7414db39c8eb36069f08569f826ce4e1d6152cd 100644 (file)
@@ -31,12 +31,12 @@ enum outputmode {
 };
 
 struct context {
-       unsigned int num_enabled_probes;
+       unsigned int num_enabled_channels;
        int samples_per_line;
        unsigned int unitsize;
        int line_offset;
        int linebuf_len;
-       char *probelist[SR_MAX_NUM_PROBES + 1];
+       GSList *channelnames;
        uint8_t *linebuf;
        int spl_cnt;
        uint8_t *linevalues;
@@ -48,6 +48,7 @@ struct context {
 
 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);